Exemplo n.º 1
0
Arquivo: do.php Projeto: TopGrd/newxb
         $eval .= "')\",";
         $eval .= $i * 100;
         $eval .= ");";
     }
     $errors = "";
     foreach ($info["error"] as $v) {
         $errors .= $v . "\\n";
     }
     $s = "lang.extracted+' " . $info["dir"] . " '+lang.folder+' '+lang.and+' " . $info["file"] . " '+lang.file+lang.br";
     $s .= "+lang.orig_file+lang.size+' " . dealsize($info["orig_size"]) . " '+lang.extract+lang.file+lang.size+' " . dealsize($info["size"]) . "'";
     $s .= $errors ? "+lang.br+lang.error+':'+lang.br+'{$errors}'" : "";
     exitme($eval . "notice({$s})", "eval");
 } else {
     if ($action == "zippack" && $user["zippack"]) {
         $sfile = urldecode1($_POST["sfile"]);
         $sdir = urldecode1($_POST["sdir"]);
         if (!is_writeable($path)) {
             exitme("notice(lang.cannot_write)", "eval");
         }
         if (strtolower(substr($key, -4)) != ".zip") {
             $key .= ".zip";
         }
         if (@file_put_contents($path . $key, zippack($path, $sdir, $sfile))) {
             exitme("notice('{$key} '+lang.compress+lang.success);reloaddata();", "eval");
         } else {
             exitme("notice('{$key} '+lang.compress+lang.fail)", "eval");
         }
     } else {
         if ($action == "property") {
             if (!is_dir($path)) {
                 exitme("notice(lang.not_found)", "eval");
Exemplo n.º 2
0
*#########################################
* PHPCMS File Manager
* Copyright (c) 2004-2006 phpcms.cn
* Author: Longbill ( http://www.longbill.cn )
* longbill.cn@gmail.com
*#########################################
*/
include_once "func.php";
include_once "config.php";
header("Content-type:TEXT/HTML;Charset=GB2312");
$url = $_GET["url"];
if (!$url) {
    die;
}
if ($allowurlencode) {
    header("location:" . urlencode1(urldecode1($_GET["url"])));
    die;
} else {
    ?>
<html><head>
<title>跳转</title>
<meta http-equiv="refresh" content="0; url=<?php 
    echo $url;
    ?>
" />
</head>
<body>正在为您转到相应的网页,如果您的浏览器没有自动跳转,请点击<a href="<?php 
    echo $url;
    ?>
">这里</a></body>
</html>