if (!isset($_GET['dm'])) {
         break;
     }
     $ddm = trim($_GET['dm']);
     $ddm = fzr($ddm);
     $qciue = QCBDUser($Iusername, 1, $ddm, 1);
     $email = $qciue['email'];
     SetBelive($email, $ddm, 2);
     break;
 case "dobel":
     if (!isset($_GET['dm'])) {
         break;
     }
     $ddm = trim($_GET['dm']);
     $ddm = fzr($ddm);
     $qciue = QCBDUser($Iusername, 1, $ddm, 1);
     $email = $qciue['email'];
     SetBelive($email, $ddm, 1, 1, 1);
     break;
 case "del":
     if (!isset($_GET['id'])) {
         break;
     }
     $Muid = intval($_GET['id']);
     if (isset($_SESSION['BtsuDel'])) {
         if ($_SESSION['BtsuDel'] == 'allo') {
             DelUbIU($Muid, $Iusername);
         }
     }
     break;
 case "delx":
function handdl($username, $password, $fs = 1, $rid = 2)
{
    $username = addslashes($username);
    if (isEmail($username)) {
        $dlfs = '2';
    } else {
        $dlfs = '0';
    }
    if ($fs == 1) {
        $res = uc_user_login($username, $password, $dlfs, 0);
        if ($res['0'] <= 0) {
            //RES
            if ($res['0'] == -1) {
                if ($rid != 1) {
                    return "FALSE";
                } else {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = '用户不存在,或者被删除';
                    return $remsg;
                }
            } elseif ($res['0'] == -2) {
                if ($rid != 1) {
                    return "FALSE";
                } else {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = '密码错';
                    return $remsg;
                }
            } else {
                if ($rid != 1) {
                    return "FALSE";
                } else {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = '未定义';
                    return $remsg;
                }
            }
            //RES
        } else {
            $uid = $res['0'];
            $username = $res['1'];
            $uemail = $res['3'];
            echo uc_user_synlogin($uid);
            if ($rid != 1) {
                return 'TRUE';
            } else {
                $remsg['jg'] = "TRUE";
                $remsg['uid'] = $uid;
                $remsg['username'] = $username;
                $remsg['email'] = $uemail;
                $remsg['txt'] = '登陆成功';
                return $remsg;
            }
        }
    } else {
        if ($fs == 2) {
            if ($dlfs == '2') {
                include "../BTSUHAND/dorun/Run_Mysql.php";
                $sqluc = mysql_query("SELECT `uid`,`username` FROM `pre_ucenter_members` WHERE `email`='" . $username . "' ", $linka);
                if (empty($sqluc)) {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = '用户不存在';
                    return $remsg;
                }
                $infouc = mysql_fetch_object($sqluc);
                if ($infouc == "") {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = '用户不存在';
                    return $remsg;
                }
                if (!isset($infouc->uid)) {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = '用户不存在';
                    return $remsg;
                }
                $username = $infouc->username;
            }
            if ($data = uc_get_user($username)) {
                //list($uid, $username, $email) = $data;
                $uid = $data['0'];
                echo uc_user_synlogin($uid);
                if ($rid != 1) {
                    return "TRUE";
                } else {
                    $remsg['jg'] = "TRUE";
                    $remsg['uid'] = $uid;
                    $remsg['username'] = $username;
                    $remsg['email'] = 'cant';
                    $remsg['txt'] = '登陆成功';
                    return $remsg;
                }
            } else {
                if ($rid != 1) {
                    return "FALSE";
                } else {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = '用户不存在';
                    return $remsg;
                }
            }
        } else {
            if ($fs == 3) {
                if ($dlfs == '2') {
                    $umsgi = QCBDUser($username, 4, 'none');
                    $username = $umsgi['Iusername'];
                }
                if ($data = uc_get_user($username)) {
                    //list($uid, $username, $email) = $data;
                    $uid = $data['0'];
                    echo uc_user_synlogin($uid);
                    if ($rid != 1) {
                        return $uid;
                    } else {
                        $remsg['jg'] = "TRUE";
                        $remsg['uid'] = $uid;
                        $remsg['username'] = $username;
                        $remsg['email'] = $uemail;
                        $remsg['txt'] = '登陆成功';
                        return $remsg;
                    }
                } else {
                    if ($rid != 1) {
                        return "FALSE";
                    } else {
                        $remsg['jg'] = "FALSE";
                        $remsg['username'] = $username;
                        $remsg['txt'] = '用户不存在';
                        return $remsg;
                    }
                }
            } else {
                if ($rid != 1) {
                    return "FALSE";
                } else {
                    $remsg['jg'] = "FALSE";
                    $remsg['username'] = $username;
                    $remsg['txt'] = 'Faild!';
                    return $remsg;
                }
            }
        }
    }
}
Example #3
0
     $_SESSION['BtsUbiallow'] = 'buok';
     if ($ubelths != '1') {
         $qciue = QCBDUser($username, 1, $Udm, 1);
         $email = $qciue['email'];
         $_SESSION['BtsUserpwemail'] = $email;
         $tmod = 'BIlogin';
         include 'intem.php';
         exit;
     }
 } else {
     $ubelths = '1';
 }
 if ($ubelths == '1') {
     if (isset($_POST['wisbeliveb'])) {
         if ($_POST['wisbeliveb'] == 'yes') {
             $qciue = QCBDUser($username, 1, $Udm, 1);
             $email = $qciue['email'];
             SetBelive($email, $Udm, 1, 1, 1);
         }
     }
 }
 include "{$WHandlogin}";
 if (!isset($btsuee)) {
     $btsuee = '0';
 }
 if ($btsuee == '1') {
     $tmod = 'BUError';
     if (!isset($btsuerrormsg)) {
         $btsuerrormsg = '非法请求或未知错误!请联系系统管理员!';
     }
     include 'intem.php';