Location: PHPKode > projects > PHPExplorer > modules/pub/upload.php
<?
require_once("include.php");

if(!$fup||!$fup_name){
 header("Location: $pathp/modules/pub/index.php?dir=$dir");
 exit();
}

if((dirsize($anonymous)+$fup_size)/1000000>$maxt||$fup_size>($maxfs*1000000)){
  die("<html><script>alert('Le fichier dépasse la taille maximum autorisée');window.location.href='$pathp/modules/pub/index.php?dir=$dir';</script></html>");
}

 copy($fup,$anonymous.$dir.$fup_name);
 @unlink($fup);

 die("<html><script>alert('Le fichier \"$fup_name\" a été uploadé !');window.location.href='$pathp/modules/pub/index.php?dir=$dir';</Script></html>");

?>
Return current item: PHPExplorer