\n"; echo "返回目录\n"; if (isset($_GET['url'])) { echo "本地上传\n"; } else { echo "远程上传\n"; } echo "\n"; echo "
\n"; echo "
\n"; echo "\n"; if (isset($_GET['url'])) echo "\n"; echo "数量->\n"; echo "\n"; echo "
\n"; echo "
\n"; if (isset($_GET['url'])) { if (isset($_POST['fupload'])) if (is_array($_POST['fupload'])) if (count($_POST['fupload']) > 0) { $o = 0; $i = 0; echo "
上传文件信息报告
\n"; while ($i < count($_POST['fupload'])) { if (!preg_match("/^[a-z0-9]+\:\/\/.+/si", $_POST['fupload'][$i])) { $i++; continue; } preg_match("/[^\/\?&\s\:\\\]+$/i", $_POST['fupload'][$i], $fname); $fname = $fname[0] != "" ? $fname[0] : time() . ".file"; if (!($fp = fopen(trim($_POST['fupload'][$i]), "rb"))) { echo "
\n"; echo "{$fname}(Error !)\n"; echo "
\n"; } elseif (!($fp2 = fopen($fpath = "$getcwd/$fname", "wb"))) { echo "
\n"; echo "{$fname}(Error !)\n"; echo "
\n"; } else { while (!feof($fp)) { fwrite($fp2, fread($fp, 4096)); } fclose($fp); fclose($fp2); if (filesize($fpath) > 0) { echo "
\n"; echo "{$fname}(Yes !)\n"; echo "
\n"; } else { unlink($fpath); echo "
\n"; echo "{$fname}(Error !)\n"; echo "
\n"; } } $o++; $i++; } if ($o < 1) echo "郁闷,没有任何文件被上传!\n"; } echo "
输入您的上传地址
\n"; echo "
\n"; if (!isset($_GET['uploadnum'])) { echo "
\n"; echo "地址[+]\n"; echo "
\n"; } else { $i = 0; $uploadnum = (int)trim($_GET['uploadnum']); if ($uploadnum < 1) $uploadnum = 1; while ($i < $uploadnum) { echo "
\n"; echo "地址[" . ($i + 1) . "]\n"; echo "
\n"; $i++; } } echo "
\n"; echo "(有效 地址)\n"; echo "
\n"; echo "
\n"; } else { if (isset($_FILES['fupload'])) if (count($_FILES['fupload']) > 0) { $o = 0; $i = 0; echo "
上传文件信息报告
\n"; while ($i < count($_FILES['fupload']['size'])) { if ($_FILES['fupload']['size'][$i] < 1) { $i++; continue; } if (!move_uploaded_file($_FILES['fupload']['tmp_name'][$i], $getcwd . "/" . $_FILES['fupload']['name'][$i])) { echo "
\n"; echo "{$_FILES['fupload']['name'][$i]}(Error !)\n"; echo "
\n"; } else { echo "
\n"; echo "{$_FILES['fupload']['name'][$i]}(" . ___filesize($_FILES['fupload']['size'][$i]) . ")\n"; echo "
\n"; } $o++; $i++; } if ($o < 1) echo "郁闷,没有任何文件被上传!\n"; } echo "
选择您的上传文件
\n"; echo "
\n"; if (!isset($_GET['uploadnum'])) { echo "
\n"; echo "文件[+]\n"; echo "
\n"; } else { $i = 0; $uploadnum = (int)trim($_GET['uploadnum']); if ($uploadnum < 1) $uploadnum = 1; while ($i < $uploadnum) { echo "
\n"; echo "文件[" . ($i + 1) . "]\n"; echo "
\n"; $i++; } } echo "
\n"; echo "(有效 文件)\n"; echo "
\n"; echo "
\n"; } xhtml_footer(); ?>