0) { if (!isset($_SESSION['flist'])) $_SESSION['flist'] = array(); $_SESSION['flist'] = array_filter(array_unique(array_merge($_SESSION['flist'], array_map('urldecode', $_POST['flist'])))); usort($_SESSION['flist'], "___sortcmp"); } header("Location: ./flist.php?getcwd=" . urlencode($getcwd)); exit; } elseif ($type == "unzipdir") { if (isset($_SESSION['ffpath'])) if (!is_dir($_SESSION['ffpath'])) { header("Location: ./unzip.php?path=" . urlencode($_SESSION['ffpath']) . "&unzipdir=" . urlencode($getcwd)); exit; } header("Location: ./404.php"); exit; } elseif ($type == "unpackdir") { if (isset($_SESSION['ffpath'])) if (!is_dir($_SESSION['ffpath'])) { header("Location: ./file.php?path=" . urlencode($_SESSION['ffpath']) . "&unpackdir=" . urlencode($getcwd)); exit; } header("Location: ./404.php"); exit; } elseif ($type == "shell_exec") { header("Location: ./shell.php?getcwd=" . urlencode($getcwd)); exit; } if (isset($_POST['flist'])) { if (!is_array($_POST['flist'])) { $_SESSION['flist'] = array(); } else { $_SESSION['flist'] = array_map('urldecode', $_POST['flist']); } } elseif (!isset($_SESSION['flist'])) { $_SESSION['flist'] = array(); } switch ($type) { case "move" : xhtml_head("批量移动"); 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"; echo "
\n"; echo "
文件清单(选择列表)
\n"; for ($i = 0; $i < count($_SESSION['flist']); $i++) { echo "
[$i] - {$_SESSION['flist'][$i]}
\n"; } } xhtml_footer(); break; case "copy" : xhtml_head("批量复制"); 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"; echo "
\n"; echo "
文件清单(选择列表)
\n"; for ($i = 0; $i < count($_SESSION['flist']); $i++) { echo "
[$i] - {$_SESSION['flist'][$i]}
\n"; } } xhtml_footer(); break; case "pkzip" : xhtml_head("压缩文件"); if (count($_SESSION['flist']) < 1) { echo "
\n"; echo "[返回]抱歉,没有文件列表!\n"; echo "
\n"; } else { if (($zpath = ___realpath($getcwd)) == "/") { $zpath = $zpath .= "archive.zip"; } else { $zpath = $zpath .= "/archive.zip"; } echo "
\n"; echo "存放目录(归档路径)\n"; echo "
\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
文件清单(选择列表)
\n"; for ($i = 0; $i < count($_SESSION['flist']); $i++) { echo "
[$i] - {$_SESSION['flist'][$i]}
\n"; } } xhtml_footer(); break; case "chmod" : xhtml_head("批量改权"); 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
\n"; echo "目录权限:\n"; echo "
\n文件权限:\n"; echo "\n"; echo "
\n\n"; echo "
\n"; echo "
\n"; echo "
文件清单(选择列表)
\n"; for ($i = 0; $i < count($_SESSION['flist']); $i++) { echo "
[$i] - {$_SESSION['flist'][$i]}
\n"; } } xhtml_footer(); break; case "delete"; xhtml_head("批量删除"); if (count($_SESSION['flist']) < 1) { echo "
\n"; echo "[返回]抱歉,没有文件列表!\n"; echo "
\n"; } else { echo "
\n"; echo "[返回]\n"; echo "此操作不可逆,确认删除?\n"; echo "
\n"; echo "
文件清单(选择列表)
\n"; for ($i = 0; $i < count($_SESSION['flist']); $i++) { echo "
[$i] - {$_SESSION['flist'][$i]}
\n"; } } xhtml_footer(); break; case "sendfile" : xhtml_head("文件发送"); 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"; echo "
\n"; echo "
文件清单(选择列表)
\n"; for ($i = 0; $i < count($_SESSION['flist']); $i++) { echo "
[$i] - {$_SESSION['flist'][$i]}
\n"; } } xhtml_footer(); break; default : header("Location: ./404.php"); exit; } ?>