İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Download yönetim help me

P

Pco

Misafir
Arkadaslar interneten 1 script indirdim ama çalıstıramıyorum nedenini bende anlamadım bana yardım edermisiniz. Ben nasıl yapıyorum

script bu aşagıda gordugunuz.

///////////////////////////////////////////////////////////////////////////

$ADMIN[defaulturl] = "http://phpscriptcenter.com";

$okaysites = array("http://phpscriptcenter.com","http://www.phpscriptcenter.com");

$ADMIN[url_1] = "http://www.phpscriptcenter.com/download.php3?product=";
$ADMIN[url_2] = "http://downloads.com";
$ADMIN[url_3] = "http://downloads.com/new";

//////////////////////////////////////////////////////

$reffer = $HTTP_REFERER;
if($reffer) {
$yes = 0;
while(list($domain, $subarray) = each($okaysites)) {
if (ereg("$reffer",$subarray)) {
$yes = 1;
}
}
$theu = "url"."_"."$site";
if ($ADMIN[$theu] AND $yes == 1) {
header("Location: $ADMIN[$theu]/$file");
} else {
header("Location: $ADMIN[defaulturl]");
}
} else {
header("Location: $ADMIN[defaulturl]");
}

?>
///////////////////////////////////////////////////////////////////////////



Buda readme dosyası



It only takes 3 easy steps to setup this script

1, Open download.php and edit these 3 varibles

$ADMIN[defaulturl] = It will redirect people to this url if they are trying to link to your downloads off there site
@okaysites = sites which can download files off your site
$ADMIN[url_1] = A location to a download folder with some downloads in it

(to add more download locations just put on a new line in the script)
$ADMIN[url_4] = "http://site.com";
$ADMIN[url_5] = "http://site.com";
$ADMIN[url_6] = "http://site.com";
and keep going up a number for as many as you want

2, Upload the script to your website

3, Now just link to the download you want by doing http://yoursite.com/download.php?site=1&file=thefile.zip
On that link it has ( site=1 ) that means it calls the download location ( $url_1 )
just change it to what you want so it calls the correct folder




Please link back to our site and help keep this script free
<A HREF="http://www.phpscriptcenter.com">PHP Script CENTER</A>


evet benim bundan anladıgım :

$ADMIN[url_1] Buraya download edilecek dosyanın url sini yazıyoruz. ( www.siteadı.com/file.rar )
$ADMIN[defaulturl] Burayı tam bilmiyorum ama sitemizi yazıcaz ?
ve
@okaysites buraya kendi sitemizi yazıcaz dosyalar hangi siteden download edilecegini belirmek için ?

daha sonra boyle bişi yaptım işte

ardından

http://siteadı.com/download.php?site=1&file=dosya.rar

şeklinde indirmem lazım deil mi? ama indiremiyom ftp ye download.php yukluyorum ama sayfa yonleniyor olmuyor.

Ornek olarak benim sitemi alalım

dosya burda : www.cypruslove.net/ircd.rar

Bunu nasıl indirecekler ?
 
P

Pco

Misafir
Abi be olmadı :S

///////////////////////////////////////////////////////////////////////////

$ADMIN[defaulturl] = "http://cypruslove.net";

$okaysites = array("http://cypruslove.net","http://www.cypruslove.net");

$ADMIN[url_1] = "http://www.cypruslove.net/dosya/";
$ADMIN[url_2] = "http://www.cypruslove.net/";
$ADMIN[url_3] = "http://downloads.com/new";

//////////////////////////////////////////////////////

$reffer = $HTTP_REFERER;
if($reffer) {
$yes = 0;
while(list($domain, $subarray) = each($okaysites)) {
if (ereg("$reffer",$subarray)) {
$yes = 1;
}
}
$theu = "url"."_"."$site";
if ($ADMIN[$theu] AND $yes == 1) {
header("Location: $ADMIN[$theu]/$file");
} else {
header("Location: $ADMIN[defaulturl]");
}
} else {
header("Location: $ADMIN[defaulturl]");
}

?>

Bunu yazdım ve www.cypruslove.net/dosya/ircd.rar atlı dosya mevcut sitede

http://www.cypruslove.net/download.php?site=1&file=ircd.rar deyince ana sayfaya baglanıyor. olmadı :(

sorun nerde
teşekurler
 
P

Pco

Misafir
sayfa yonleniyor :S

Buna ebnzer bir şeyde olabilir arkadaslar. var mı bileniniz yardım edicek
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst