function login() { $this->_fix_failedlogins(); if(MEMBER_ID < 1) { $this->Messager("请先在前台进行<a href='index.php?mod=account&code=login'><b>登录</b></a>",null); } $loginperm = $this->_logincheck(); if(!$loginperm) { $this->Messager("累计 5 次错误尝试,15 分钟内您将不能登录。",null); } $this->Title="用户登录"; if ($this->CookieHandler->GetVar('referer')=='') { $this->CookieHandler->Setvar('referer',referer()); } $action="admin.php?mod=login&code=dologin"; $question_select=FormHandler::Select('question',ConfigHandler::get('member','question_list'),0); $role_type_select=FormHandler::Radio('role_type',ConfigHandler::get('member','role_type_list'),'normal'); ob_clean(); include(handler('template')->file("@admin/login")); }
function ModifyRewrite() { $this->CheckAdminPrivs('rewrite'); $mode_list=array ( ''=>array('name'=>"不启用静态化",'value'=>""), 'stand'=>array('name'=>"标准Rewrite模式",'value'=>"stand"), 'apache_path'=>array('name'=>"路径模式",'value'=>"apache_path"), ); $config_file=CONFIG_PATH.'rewrite.php'; include($config_file); $mode_select=FormHandler::Select('mode',$mode_list,$_rewrite['mode']); $mod_list=array( "首页" =>"index", "列表" =>"list", "用户页" => "me", ); $mod_alias=$_rewrite['value_replace_list']['mod']; include handler('template')->file('@admin/setting_rewrite'); }
function Login() { if ( (MEMBER_ID != 0 and false == $this->IsAdmin) || MEMBER_ID > 0) { $this->Messager("您已经使用用户名 " . MEMBER_NAME . " 登录系统,无需再次登录!", null); } $loginperm = $this->_logincheck(); if ( ! $loginperm ) { $this->Messager("累计 5 次错误尝试,15 分钟内您将不能登录。", null); } $this->Title = "用户登录"; $action = "?mod=account&code=login&op=done"; $question_select = FormHandler::Select("question", ConfigHandler::get("member", "question_list"), 0); $role_type_select = FormHandler::Radio("role_type", ConfigHandler::get("member", "role_type_list"), "normal"); account()->loginReferer($_SERVER['HTTP_REFERER']); include ($this->TemplateHandler->Template("account_login")); }