--- html/index.php.orig Mon Oct 10 00:08:03 2005 +++ html/index.php Mon Oct 10 00:08:54 2005 @@ -365,6 +381,7 @@ :
+ Upload More? --- html/multiup.php.orig Thu Sep 29 09:57:15 2005 +++ html/multiup.php Thu Sep 29 10:49:42 2005 @@ -0,0 +1,136 @@ +'; var_dump($_FILES); echo ''; + foreach($_FILES['upload_files']['size'] as $id => $size) { + if ($size == 0) + { + //no or empty file, skip it + continue; + } + $file_name = stripslashes($_FILES['upload_files']['name'][$id]); + $file_name = str_replace(array("'",","), "", $file_name); + $file_name = cleanFileName($file_name); + $ext_msg = ""; + + if($_FILES['upload_files']['size'][$id] <= $cfg["max_upload"] && + $_FILES['upload_files']['size'][$id] > $cfg["min_upload"]) + { + if (ereg(getFileFilter($cfg["file_types_array"]), $file_name)) + { + //FILE IS BEING UPLOADED + if (is_file($cfg["torrent_file_path"].$file_name)) + { + // Error + $messages .= "Error with (".$file_name."), the file already exists on the server.
[Refresh]
"; + $ext_msg = "DUPLICATE :: "; + } + else + { + if(move_uploaded_file($_FILES['upload_files']['tmp_name'][$id], $cfg["torrent_file_path"].$file_name)) + { + chmod($cfg["torrent_file_path"].$file_name, 0644); + AuditAction($cfg["constants"]["file_upload"], $file_name); + } + else + { + $messages .= "ERROR: File not uploaded, file could not be found or could not be moved:
".$cfg["torrent_file_path"] . $file_name."

"; + } + } + } + else + { + $messages .= "ERROR: The type of file you are uploading is not allowed.
"; + } + } + else + { + $messages .= "ERROR: File not uploaded, check file size limit.
"; + } + + if($messages != "") + { + // there was an error + AuditAction($cfg["constants"]["error"], $cfg["constants"]["file_upload"]." :: ".$ext_msg.$file_name); + } + else + { + header("location: index.php"); + } + } // End File Upload +} + +displayHead("Upload Multiple Torrents"); +?> + + + + + + +


+ + + + + + +
+ " cellpadding="4" cellspacing="0" width="100%"> + + + +
"> + + + + + + + + + + + + + +
+ :
+ +
+ +
+
+
+