ctl_forgot() public method

public ctl_forgot ( )
Example #1
0
include_once BG_PATH_INC . "is_install.inc.php";
//验证是否已安装
include_once BG_PATH_CONTROL . "user/ctl/reg.class.php";
//载入注册控制器
$ctl_reg = new CONTROL_REG();
switch ($GLOBALS["act_get"]) {
    case "confirm":
        $arr_regRow = $ctl_reg->ctl_confirm();
        //激活
        if ($arr_regRow["alert"] != "y010102") {
            header("Location: " . BG_URL_USER . "ctl.php?mod=reg&act_get=form&alert=" . $arr_regRow["alert"]);
            exit;
        }
        break;
    case "forgot":
        $arr_regRow = $ctl_reg->ctl_forgot();
        //忘记密码
        if ($arr_regRow["alert"] != "y010102") {
            header("Location: " . BG_URL_USER . "ctl.php?mod=reg&act_get=form&alert=" . $arr_regRow["alert"]);
            exit;
        }
        break;
    case "mailbox":
        $arr_regRow = $ctl_reg->ctl_mailbox();
        //更换邮箱
        if ($arr_regRow["alert"] != "y010102") {
            header("Location: " . BG_URL_USER . "ctl.php?mod=reg&act_get=form&alert=" . $arr_regRow["alert"]);
            exit;
        }
        break;
    default: