Esempio n. 1
0
 function common()
 {
     global $_G;
     if (empty($_POST['regsubmit'])) {
         $_G['mobile_version'] = intval($_GET['version']);
     }
     require_once libfile('class/member');
     $ctl_obj = new register_ctl();
     $ctl_obj->setting = $_G['setting'];
     $ctl_obj->template = 'mobile:register';
     $ctl_obj->on_register();
     if (empty($_POST['regsubmit'])) {
         exit;
     }
 }
Esempio n. 2
0
if ($_GET['action'] == 'login') {
    // debug 已有账号,绑定我的账号走此分支
    $ctl_obj = new logging_ctl();
    $_G['setting']['seccodestatus'] = 0;
    $ctl_obj->connect_guest = $connect_guest;
    $ctl_obj->extrafile = libfile('member/connect_logging', 'module');
    $ctl_obj->template = 'member/login';
    $ctl_obj->on_login();
} else {
    // debug 完善我的资料,即添加个新的论坛账号走此分支
    $_G['qc']['connect_auth_hash'] = $_GET['con_auth_hash'];
    if (!$_G['qc']['connect_auth_hash']) {
        $_G['qc']['connect_auth_hash'] = $_G['cookie']['con_auth_hash'];
    }
    $conopenid = authcode($_G['qc']['connect_auth_hash']);
    $ctl_obj = new register_ctl();
    $ctl_obj->setting = $_G['setting'];
    if ($_G['setting']['regconnect']) {
        $ctl_obj->setting['regstatus'] = $ctl_obj->setting['regstatus'] ? $ctl_obj->setting['regstatus'] : 1;
    }
    $_G['setting']['regclosed'] = $_G['setting']['regconnect'] && !$_G['setting']['regstatus'];
    loadcache('connect_blacklist');
    if (in_array($conopenid, $_G['cache']['connect_blacklist'])) {
        showmessage('qqconnect:connect_uin_in_blacklist', $referer, array('changeqqurl' => $_G['connect']['discuz_change_qq_url']));
    }
    $_G['qc']['uinlimit'] = $_G['setting']['connect']['register_uinlimit'] && C::t('#qqconnect#connect_memberbindlog')->count_uid_by_openid_type($conopenid, '1') >= $_G['setting']['connect']['register_uinlimit'];
    if ($_G['qc']['uinlimit']) {
        $_G['setting']['regconnect'] = false;
    }
    if (!$_G['setting']['regconnect']) {
        $ctl_obj->showregisterform = 0;