public function common()
 {
     global $_G;
     if (self::$securityStatus != TRUE) {
         return false;
     }
     if ($_G['uid']) {
         $lastCookieReportTime = $this->_decodeReportTime($_G['cookie']['security_cookiereport']);
         if ($lastCookieReportTime < strtotime('today')) {
             $this->_reportLoginUser(array('uid' => $_G['uid']));
         }
     }
     if ($_G['adminid'] > 0) {
         self::$isAdminGroup = 1;
     }
     return true;
 }
 public function common()
 {
     global $_G;
     if (self::$securityStatus != TRUE) {
         return false;
     }
     if ($_G['uid']) {
         $lastCookieReportTime = $this->_decodeReportTime($_G['cookie']['security_cookiereport']);
         if ($lastCookieReportTime < strtotime('today')) {
             $this->_reportLoginUser(array('uid' => $_G['uid']));
         }
     }
     if ($_G['adminid'] > 0) {
         self::$isAdminGroup = 1;
     }
     if ($_G['setting']['connect']['allow'] && $_G['setting']['security_qqlogin_alone']) {
         $_G['setting']['regstatus'] = 0;
         $_G['setting']['regconnect'] = 1;
     }
     if ($_G['setting']['connect']['allow'] && $_G['setting']['security_safelogin'] && (!$_G['uid'] && $_G['connectguest'] || $_G['uid'] && !$_G['member']['conisbind']) && CURMODULE == 'post') {
         $msg = '<p>' . lang('plugin/security', 'safelogintips') . '</p><p class="mtm"><a href="connect.php?mod=config" target="_blank"><img src="' . IMGDIR . '/qq_bind_small.gif" class="qq_bind" align="absmiddle" /></a></p>';
         if ($_G['inajax']) {
             if (!$_GET['ajaxtarget']) {
                 $_GET['handlekey'] = 'safelogin';
             }
             if (!$_G['uid'] && $_G['connectguest']) {
                 showmessage('qqconnect:connectguest_message_complete_or_bind');
             } else {
                 showmessage($msg, 'connect.php?mod=config', array(), array('alert' => 'info', 'showdialog' => true, 'striptags' => false, 'locationtime' => 0));
             }
         } else {
             if (!$_G['uid'] && $_G['connectguest']) {
                 dheader('location: ' . $_G['siteurl'] . 'member.php?mod=connect&ac=bind');
             } else {
                 showmessage($msg, '', array(), array('alert' => 'info', 'showdialog' => true, 'msgtype' => 2, 'striptags' => false));
             }
         }
     }
     if ($_G['setting']['connect']['allow'] && $_G['setting']['security_qqlogin_alone'] && CURMODULE == 'logging' && $_GET['action'] == 'login' && submitcheck('loginsubmit', 1)) {
         showmessage('security:qqloginaloneopened');
     }
     return true;
 }