ctl_logon() public method

*============登录界面============ 无返回
public ctl_logon ( )
Example #1
0
//初始化登录
switch ($GLOBALS["act_post"]) {
    case "login":
        //登录
        $arr_logonRow = $ctl_logon->ctl_login();
        if ($arr_logonRow["alert"] != "y020201") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=logon&act_get=logon&forward=" . $arr_logonRow["forward"] . "&alert=" . $arr_logonRow["alert"]);
        } else {
            $_str_forward = base64_decode($arr_logonRow["forward"]);
            if (stristr($_str_forward, "logon")) {
                $_str_forward = BG_URL_ADMIN . "ctl.php";
            }
            header("Location: " . $_str_forward);
        }
        exit;
        break;
    default:
        switch ($GLOBALS["act_get"]) {
            case "logout":
                //登出
                $arr_logonRow = $ctl_logon->ctl_logout();
                header("Location: " . base64_decode($arr_logonRow["forward"]));
                exit;
                break;
            default:
                //登录界面
                $arr_logonRow = $ctl_logon->ctl_logon();
                break;
        }
        break;
}