login.php
来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 96 行
PHP
96 行
<?php/*+--------------------------------------------------------------------------| Invision Power Board v2.1.5| =============================================| by Matthew Mecham| (c) 2001 - 2005 Invision Power Services, Inc.| | =============================================| Web: | Time: Wed, 01 Mar 2006 19:11:27 GMT| Release: | Licence Info: +---------------------------------------------------------------------------| > $Date: 2006-02-02 17:23:13 +0000 (Thu, 02 Feb 2006) $| > $Revision: 133 $| > $Author: bfarber $+---------------------------------------------------------------------------|| > Help Control functions| > Module written by Matt Mecham| > Date started: 2nd April 2002|| > Module Version Number: 1.0.0| > DBA Checked: Mon 24th May 2004+--------------------------------------------------------------------------*/if ( ! defined( 'IN_ACP' ) ){ print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit();}class ad_login{ # Global var $ipsclass; # HTML var $html; function auto_run() { //----------------------------------------- // Kill globals - globals bad, Homer good. //----------------------------------------- $tmp_in = array_merge( $_GET, $_POST, $_COOKIE ); foreach ( $tmp_in as $k => $v ) { unset($$k); } //----------------------------------------- // What to do? //----------------------------------------- switch($this->ipsclass->input['code']) { case 'login': $this->login_form(); break; case 'logout': break; case 'login-complete': $this->login_complete(); break; default: $this->login_form(); break; } } /*-------------------------------------------------------------------------*/ // Complete the log in /*-------------------------------------------------------------------------*/ function login_complete() { //----------------------------------------- // We must have submitted the form // time to check some details. //----------------------------------------- $this->ipsclass->input['username'] = str_replace( '|', '|', $this->ipsclass->input['username'] ); if ( empty($this->ipsclass->input['username']) ) { $this->login_form("鎮ㄥ繀椤诲厛杈撳叆鐢ㄦ埛鍚
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?