Buenas Noches, Les Expongo Mi Problema, Primero No Se La Gran Cosa De Php Voy Aprendiendo, Segundo Quiero Subir Un Archivo Por Url A Mi Hosting (Para Eso Esta Diseñado El Script) Logra Subir Solo El Archivo Pero Con Peso De "0"Kb. No Entiendo Por Que Espero Me Ayuden Les Dejo Aqui En Resumen El Codigo.
Y El Link A Subir Es ww w.OcultamosPorSpam/ates/atesregular215_installer.exe
Index.php
Código PHP:
<?
ignore_user_abort();
include("configuration.php");
include("conf-htmlheader.htm");
include("axrotate.php");
$trheute=$heute+1;
if($trheute>$maximum_free_downloads) { echo"You
already used your <b>$maximum_free_downloads</b> free
files for today!<br><br>Think about donating an
account!<br><br>";include("conf-htmlfooter.htm");die; }
else {
if($link=="") {
echo"Ingresa Tu Link:
<form method=post onsubmit=\"this.x.value='ESPERA...';this.x.disabled=true\" ><input style=background:#dddddd; type=text
name=link
size=50>
<input type=submit name=x value=GET4FREE></form><br><br>";
}
else {
$filename= "atesregular215_installer.exe";
if($tott==1) { } else {
$link="$link";
if($filename=="") { echo"Link crippled. Please check!"; }
if(eregi(".php",$filename)) { $filename="$filename.txt"; }
if(file_exists("files/files$tiam/$filename")) { } else {
echo"Downloading $filename<br><span id=info></span><br>";
$begtime=time();$filex=fopen("$link", "r");
$clog=fopen("files/files$tiam/$filename","a");
if (!$filex) { echo "<p>No Se Puede Subir El Archivo Intentalo De Nuevo!<br><br>";die; }
while (!feof ($filex)) {$line = fread ($filex,1024);fwrite($clog,"$line");
$kbf=$kbf+1; $kbx=$kbx+1;if($kbx==100) {
$kbx=0;$nowtime=time();$dura=$nowtime-$begtime+1;$kbs=round($kbf/$dura);
echo"<script>document.getElementById(\"info\").innerHTML = '<b>$kbf KB @ $kbs KB/s</b>';</script>";}}
fclose($filex);
$tiamx=$tiam;
fclose($clog);mkdir("tmp/$_SERVER[REMOTE_ADDR].$filename",0777);}
$tiam=time();$tiam=substr($tiam,0,7);$tiam=md5($tiam);
rename("files/files$tiamx","files/files$tiam");
echo"Fetched <b><a href=\"files/files$tiam/$filename\">$filename</a></b>.
Click <b><a href=\"files/files$tiam/$filename\">here</a></b> to download it.
<br><br>";
}
}
}
include("conf-htmlfooter.htm");
configuration.php
Código PHP:
<?
$show_file_list="yes"; # Mostrar Archivos Si O No?
$maximum_free_downloads="3";
$maximum_space_usage_in_mb="1000";
$design="124";
$design=rand(100,124); # random design
import_request_variables("gp", "");$totax=0;$vhandle=opendir("ax");while ($fileev = readdir($vhandle)) {if(eregi("---",$fileev)) { $totax=$totax+1; }}closedir($vhandle);$tiam=time();$tiam=substr($tiam,0,7);$tiam=md5($tiam);$xhandle=opendir("files");while ($flei = readdir($xhandle)) {if(eregi("^files",$flei)) { rename("files/$flei","files/files$tiam"); }}closedir($xhandle);$handle=opendir("files/files$tiam");while ($filee = readdir($handle)) {if(is_dir("files/files$tiam/$filee")) { } else { $timey=filemtime("files/files$tiam/$filee");$siz=filesize("files/files$tiam/$filee");$siz=$siz/1024/1024;$siz=explode(".",$siz);$siz=$siz[0];if($filee=="index.html") { }else{$filelist[$filee]=$siz;}$delist[$timey]=$filee;$totsiz=$siz+$totsiz; }}closedir($handle);if($totsiz>$maximum_space_usage_in_mb) {ksort($delist);foreach ($delist as $key => $value){$teim=time();if($teim-$key>1500) {unlink("files/files$tiam/$value");$numm=$numm+1;if($numm==3) {break;}}}}$heute=0;if(is_dir("tmp/vip$_SERVER[REMOTE_ADDR]")) { $vip="1"; } else {$xhandle=opendir("tmp");while ($buin = readdir($xhandle)) {if(eregi("$_SERVER[REMOTE_ADDR]",$buin)) { $heute=$heute+1; }}closedir($xhandle);}error_reporting(0);$time=time();$xhandle=opendir("tmp");while ($buin = readdir($xhandle)) {if($buin==".") {$buin="fu"; }if($buin=="..") {$buin="fu"; }$xd=filemtime("tmp/$buin");$altr=$time-$xd;if($altr>90000) {if(is_dir("tmp/$buin")) { rmdir("tmp/$buin"); }else { unlink("tmp/$buin"); }}}closedir($xhandle);error_reporting(1); ?>
Muchas Gracias, Espero Puedan Ayudarme