\n";
echo "返回目录错误提示\n";
echo "\n";
echo "
\n";
echo "此文件暂时不能被系统操作!";
echo "
\n";
xhtml_footer();
exit;
}
xhtml_head("爱特ZIP工具");
if (isset($_POST['z']) && is_array($_POST['z']) && isset($_POST['undir']) && is_dir(trim($_POST['undir']))) {
echo "\n";
echo "
返回目录解压结果\n";
echo "
\n";
$pk = new pclzip($path);
$dir = trim($_POST['undir']);
$arr = array_map('urldecode', $_POST['z']);
if (($zip = $pk->extract(PCLZIP_OPT_PATH, $dir, PCLZIP_OPT_BY_NAME, $arr)) == false) {
echo "\n";
echo "无法成功解压您的文件!";
echo "\n
\n";
} else {
echo "\n";
echo "本次共操作 " . count($zip) . " 个档案!";
echo "\n
\n";
foreach ($zip as $zf) {
echo "\n";
if ($zf['folder']) {
echo "[目录]";
} else {
echo "[文件]";
}
echo ___convert($zf['filename'], "UTF-8") . "(" . $zf['status'] . ")\n
\n";
echo "
\n";
}
}
} else {
echo "\n";
echo "
返回目录文件列表\n";
echo "
\n";
echo "\n";
}
xhtml_footer();
?>