\n'; exit(); } } if ($this -> core -> var['inajax']) { ajaxshowheader(); ajaxshowfooter(); } if ($this -> cpaccess == -3) { include template ('common/adminlogineer'); echo '

' . lang('login_cp_noaccess') . '

'; } elseif ($this -> cpaccess == -1) { include template ('common/adminlogineer'); $ltime = $this -> sessionlife - (TIMESTAMP - $this -> adminsession['dateline']); echo '

' . lang('login_cplock', array('ltime' => $ltime)) . '

'; } elseif ($this -> cpaccess == -4) { include template ('common/adminlogineer'); $ltime = $this -> sessionlife - (TIMESTAMP - $this -> adminsession['dateline']); echo '

' . lang('login_user_lock') . '

'; } else { html_login_form(); } html_login_footer(); function html_login_footer($halt = true) { $version = CORE_VERSION; $release = CORE_RELEASE; $halt && exit(); } function html_login_form() { global $_G; $uid = getglobal('uid'); $isguest = !getglobal('uid'); $lang1 = lang(); $maintitle=lang('title_admincp'); $loginuser = $isguest ? '
' : '
' . $_G['member']['username'] . '
' . $_G['member']['email'] . '
'; $loginuser2 = $isguest ? '
' : '
' . $_G['member']['username'] . '
' . $_G['member']['email'] . '
'; $sid = getglobal('sid'); $avatarstatus=getglobal('avatarstatus','member'); if(!$uid ){ $sitelogo=$_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png'; $avastar=''; }else{ $avastar = avatar_block($uid); } $extra = BASESCRIPT . '?' . $_SERVER['QUERY_STRING']; include template ('common/adminlogin'); } ?>