echo "上次修改:" . gmdate("Y-m-d H:i:s", $data['mtime'] + TIME) . "<br />\n"; echo "上次改变:" . gmdate("Y-m-d H:i:s", $data['ctime'] + TIME) . "<br />\n"; echo "</div>\n"; echo "<div class=\"like\">\n"; echo "爱特解压<a href=\"./index.php?new&path=" . urlencode(dirname($path)) . "&multiple=unpackdir&getcwd=" . urlencode($path) . "\">目标目录</a>\n"; echo "</div>\n"; echo "<div class=\"love\">\n"; echo "<form action=\"unpack.php\" method=\"GET\">\n"; echo "<input type=\"hidden\" name=\"path\" value=\"{$path}\" />"; if (!isset($_GET['unpackdir'])) { echo "目标:<input type=\"text\" name=\"unpackdir\" value=\"" . dirname($path) . "\" /><br />\n"; } else { echo "目标:<input type=\"text\" name=\"unpackdir\" value=\"" . trim($_GET['unpackdir']) . "\" /><br />\n"; } echo "类型:<input type=\"radio\" name=\"type\" value=\"gz\" />GZ<input type=\"radio\" name=\"type\" value=\"bz2\" />BZ2<input type=\"radio\" name=\"type\" value=\"zip\" checked />ZIP<input type=\"radio\" name=\"type\" value=\"tar\" />TAR<br />\n"; if (___superexec('pwd') != "") { echo "[+]高级:<input type=\"radio\" name=\"type\" value=\"7za\" />7ZA(众多格式支持)<br />\n"; echo "[+]特殊:<input type=\"radio\" name=\"type\" value=\"rar\" />RAR(调用软件解压)<br />\n"; echo "[+]密码:<input type=\"text\" name=\"password\" /><br />\n"; } echo "<input type=\"submit\" value=\"释放到指定的目录\" />(有效 目录)\n"; echo "</form>\n"; echo "</div>\n"; if (function_exists("mb_convert_encoding") && function_exists("mb_list_encodings")) { $sencode = mb_list_encodings(); usort($sencode, "___sortcmp"); echo "<div class=\"like\">\n爱特编码转换工具\n</div>\n"; echo "<div class=\"love\">\n"; echo "<form action=\"mbconv.php\" method=\"GET\">\n"; echo "<input type=\"hidden\" name=\"path\" value=\"{$path}\" />\n"; echo "输入编码:<select name=\"ic\">\n";
chmod($tmp, 0700); !is_executable($tmp) ? $bin = false : ($bin = $tmp); } else { $bin = false; } } } } if (___superexec('rar') != "") { $bin = "rar"; } elseif (___superexec('unrar') != "") { $bin = "unrar"; } if (___superexec($bin) == "") { echo "程序无法正常完成工作!"; } else { $a = addslashes($path); $b = addslashes($unpackdir); $c = isset($_GET['password']) ? addslashes(trim($_GET['password'])) : null; if ($c == null) { echo nl2br(___codepre(___convert(___superexec("{$bin} x -y '{$a}' '{$b}' 2>&1"), "UTF-8"))); } else { echo nl2br(___codepre(___convert(___superexec("{$bin} x -y '-p{$c}' '{$a}' '{$b}' 2>&1"), "UTF-8"))); } } break; default: echo "暂时不支持的压缩类型!"; } echo "</div>\n"; xhtml_footer();