[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/login.php,v $ 14 | $Revision: 1.11 $ 15 | $Date: 2007/01/18 00:53:10 $ 16 | $Author: mrpete $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 require_once ("class2.php"); 21 $HEADER = ""; 22 require_once(HEADERF); 23 $use_imagecode = ($pref['logcode'] && extension_loaded("gd")); 24 if ($use_imagecode) { 25 require_once(e_HANDLER."secure_img_handler.php"); 26 $sec_img = new secure_image; 27 } 28 29 if (!USER) { 30 require_once(e_HANDLER."form_handler.php"); 31 $rs = new form; 32 $text = ""; 33 34 $LOGIN_TABLE_LOGINMESSAGE = LOGINMESSAGE; 35 $LOGIN_TABLE_USERNAME = "<input class='tbox' type='text' name='username' size='40' maxlength='100' />"; 36 $LOGIN_TABLE_PASSWORD = "<input class='tbox' type='password' name='userpass' size='40' maxlength='100' />"; 37 if ($use_imagecode) 38 { 39 $LOGIN_TABLE_SECIMG_LAN = LAN_LOGIN_13; 40 $LOGIN_TABLE_SECIMG_HIDDEN = "<input type='hidden' name='rand_num' value='".$sec_img->random_number."' />"; 41 $LOGIN_TABLE_SECIMG_SECIMG = $sec_img->r_image(); 42 $LOGIN_TABLE_SECIMG_TEXTBOC = "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />"; 43 } 44 $LOGIN_TABLE_AUTOLOGIN = "<input type='checkbox' name='autologin' value='1' />"; 45 $LOGIN_TABLE_AUTOLOGIN_LAN = LAN_LOGIN_8; 46 $LOGIN_TABLE_SUBMIT = "<input class='button' type='submit' name='userlogin' value=\"".LAN_LOGIN_9."\" />"; 47 48 if (!$LOGIN_TABLE) 49 { 50 if (file_exists(THEME."login_template.php")) 51 { 52 require_once(THEME."login_template.php"); 53 } 54 else 55 { 56 require_once(e_BASE.$THEMES_DIRECTORY."templates/login_template.php"); 57 } 58 } 59 $text = preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE); 60 echo preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_HEADER); 61 62 $login_message = LAN_LOGIN_3." | ".SITENAME; 63 $ns->tablerender($login_message, $text, 'login_page'); 64 65 if ($pref['user_reg']) 66 { 67 $LOGIN_TABLE_FOOTER_USERREG = "<a href='".e_SIGNUP."'>".LAN_LOGIN_11."</a>"; 68 } 69 echo preg_replace("/\{([^ ]*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_FOOTER); 70 71 } 72 else 73 { 74 echo "<script type='text/javascript'>document.location.href='".e_BASE."index.php'</script>\n"; 75 exit; 76 } 77 78 echo "</body></html>"; 79 80 $sql->db_Close(); 81 82 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |