0) { $_SESSION['flist'] = array_filter(array_unique(array_merge($_SESSION['flist'], $_POST['addpath']))); usort($_SESSION['flist'], "___sortcmp"); } } if (isset($_GET['clean'])) if (($clean = trim($_GET['clean'])) != "") { switch ($clean) { case "all" : $_SESSION['flist'] = array(); header("Location: flist.php?getcwd=" . urlencode($getcwd)); break; case "array" : if (isset($_POST['fclean'])) if (is_array($_POST['fclean'])) if (count($_POST['fclean']) > 0) { foreach ($_POST['fclean'] as $tmp) { unset($_SESSION['flist'][(int)trim($tmp)]); } usort($_SESSION['flist'], "___sortcmp"); } header("Location: flist.php?getcwd=" . urlencode($getcwd)); break; default : if (isset($_SESSION['flist'][(int)$clean])) { unset($_SESSION['flist'][(int)$clean]); usort($_SESSION['flist'], "___sortcmp"); } header("Location: flist.php?getcwd=" . urlencode($getcwd)); exit; } } xhtml_head("文件清单"); echo "
添加自定义的路径(/file||url://)
\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "添加->\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; if (!isset($_GET['addnum'])) { echo "
\n"; echo "路径[+]\n"; echo "
\n"; } else { $i = 0; $addnum = (int)trim($_GET['addnum']); if ($addnum < 1) $addnum = 1; while ($i < $addnum) { echo "
\n"; echo "路径[" . ($i + 1) . "]
\n"; echo "
\n"; $i++; } } echo "
\n"; echo "(有效 路径)\n"; echo "
\n"; echo "
\n"; if (count($_SESSION['flist']) < 1) { echo "
\n"; echo "[返回目录]抱歉,没有文件列表查看!\n"; echo "
\n"; } else { echo "
\n"; echo "[返回目录]\n"; echo "文件清单(清空列表)\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "(全选|消选)\n"; echo "
\n"; $select = isset($_GET['cs']) ? "checked " : null; for ($i = 0; $i < count($_SESSION['flist']); $i++) { echo "
\n"; echo "\n"; echo "[清除]\n"; echo "[$i] - {$_SESSION['flist'][$i]}\n"; echo "
\n"; } echo "
\n"; } xhtml_footer(); ?>