ctl_form() public method

public ctl_form ( )
Example #1
0
//验证是否已登录
include_once BG_PATH_CONTROL . "admin/ctl/user.class.php";
//载入用户控制器
$ctl_user = new CONTROL_USER();
//初始化用户
switch ($GLOBALS["act_get"]) {
    case "import":
        $arr_userRow = $ctl_user->ctl_import();
        //导入
        if ($arr_userRow["alert"] != "y010305") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_userRow["alert"]);
            exit;
        }
        break;
    case "form":
        $arr_userRow = $ctl_user->ctl_form();
        //导入
        if ($arr_userRow["alert"] != "y010102") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_userRow["alert"]);
            exit;
        }
        break;
    default:
        $arr_userRow = $ctl_user->ctl_list();
        //列出
        if ($arr_userRow["alert"] != "y010302") {
            header("Location: " . BG_URL_ADMIN . "ctl.php?mod=alert&act_get=show&alert=" . $arr_userRow["alert"]);
            exit;
        }
        break;
}