Beispiel #1
0
switch ($strStep) {
    case "step1":
        if (kekezu::submitcheck($formhash)) {
            if (strtolower(CHARSET) == 'gbk') {
                $account = kekezu::utftogbk($account);
            }
            $user_login_obj = new keke_user_login_class();
            $user_login_obj->account_init($account);
            $accout_type = $user_login_obj->get_login_type();
            switch ($accout_type) {
                case 'mobile':
                    $tips['errors']['account'] = '账号不存在';
                    kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
                    break;
                case 'email':
                    $arrUserInfo = keke_user_class::getUserInfoByEmail($account);
                    break;
                case 'username':
                    $arrUserInfo = keke_user_class::getUserInfoByUsername($account);
                    break;
            }
            if (!$arrUserInfo) {
                $tips['errors']['account'] = '账号不存在';
                kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
            }
            if ($getPasswordCode) {
                $strCodeCheck = kekezu::check_secode($getPasswordCode);
                if ($strCodeCheck != 1) {
                    $tips['errors']['code'] = $strCodeCheck;
                    kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
                }