Exemplo n.º 1
0
        session_destroy();
        Error("管理员账号或密码不正确...", "admin.php?act=login");
    }
}
if ($_SESSION["admin"]["user"] && $_SESSION["admin"]["pass"]) {
    #[这里是弹出窗口的设置]
    $incfile = $STR->safe(rawurldecode($_GET["incfile"]));
    if ($incfile) {
        $site_title = "欢迎进入弹窗页";
        $iframe_height = intval($_GET["iframe_height"]);
        $inputname = $STR->safe($_GET["inputname"]);
        $subtype = intval($_GET["subtype"]);
        if (!$iframe_height) {
            $iframe_height = 124;
        }
        $TPL->p("open.index.sys");
        exit;
    }
    if (!$sysfile && !$incfile) {
        $TPL->p("frame");
        exit;
        #[中止]
    }
    include_once SYSTEM_ROOT . "/data/system.php";
    #[设置时间]
    if (function_exists("date_default_timezone_set")) {
        if (!$system["timezone"]) {
            $system["timezone"] = "8";
        }
        date_default_timezone_set("Etc/GMT" . intval($system["timezone"]));
        $system_time = $systemTime = $system_now = time() + $system["timerevise"];