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 "