| [ Index ] |
PHP Cross Reference of e107 v1.0.1 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | Steve Dunstan 2001-2002 7 | Copyright (C) 2008-2010 e107 Inc (e107.org) 8 | 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $URL: https://e107.svn.sourceforge.net/svnroot/e107/trunk/e107_0.7/login.php $ 14 | $Revision: 12296 $ 15 | $Id: login.php 12296 2011-06-29 05:39:14Z e107coders $ 16 | $Author: e107coders $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 // Experimental e-token 21 if(isset($_POST['userlogin']) && !isset($_POST['e-token'])) 22 { 23 // set e-token so it can be processed by class2 24 $_POST['e-token'] = ''; 25 } 26 27 require_once ("class2.php"); 28 29 if (USER || e_LOGIN !='login.php') // Disable page if user logged in, or some custom e_LOGIN value is used. 30 { 31 header('location:'.e_BASE.'index.php'); 32 exit(); 33 } 34 35 $HEADER = ""; 36 require_once(HEADERF); 37 $use_imagecode = ($pref['logcode'] && extension_loaded("gd")); 38 if ($use_imagecode) 39 { 40 require_once(e_HANDLER."secure_img_handler.php"); 41 $sec_img = new secure_image; 42 } 43 44 if (!USER) 45 { 46 require_once(e_HANDLER."form_handler.php"); 47 $rs = new form; 48 $text = ""; 49 50 $LOGIN_TABLE_LOGINMESSAGE = LOGINMESSAGE; 51 $LOGIN_TABLE_USERNAME = "<input class='tbox' type='text' name='username' size='40' maxlength='100' />"; 52 $LOGIN_TABLE_PASSWORD = "<input class='tbox' type='password' name='userpass' size='40' maxlength='100' />"; 53 if ($use_imagecode) 54 { 55 $LOGIN_TABLE_SECIMG_LAN = LAN_LOGIN_13; 56 $LOGIN_TABLE_SECIMG_HIDDEN = "<input type='hidden' name='rand_num' value='".$sec_img->random_number."' />"; 57 $LOGIN_TABLE_SECIMG_SECIMG = $sec_img->r_image(); 58 $LOGIN_TABLE_SECIMG_TEXTBOC = "<input class='tbox' type='text' name='code_verify' size='15' maxlength='20' />"; 59 } 60 $LOGIN_TABLE_AUTOLOGIN = "<input type='checkbox' name='autologin' value='1' />"; 61 $LOGIN_TABLE_AUTOLOGIN_LAN = LAN_LOGIN_8; 62 $LOGIN_TABLE_SUBMIT = "<input class='button' type='submit' name='userlogin' value=\"".LAN_LOGIN_9."\" /><input type='hidden' name='e-token' value='".e_TOKEN."' />"; 63 64 $login_message = LAN_LOGIN_3." | ".SITENAME; 65 if (!isset($LOGIN_TABLE) || !$LOGIN_TABLE) 66 { 67 if (file_exists(THEME.'login_template.php')) 68 { 69 require_once(THEME.'login_template.php'); 70 } 71 else 72 { 73 require_once(e_BASE.$THEMES_DIRECTORY."templates/login_template.php"); 74 } 75 } 76 // $text = preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE); 77 $tVars = false; 78 $text = $tp->simpleParse($LOGIN_TABLE, $tVars, false); 79 80 // echo preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_HEADER); 81 echo $tp->simpleParse($LOGIN_TABLE_HEADER, $tVars, false); 82 83 $ns->tablerender($login_message, $text, 'login_page'); 84 85 $LOGIN_TABLE_FOOTER_USERREG = ' '; // In case no registration system enabled 86 if ($pref['user_reg']) 87 { 88 $LOGIN_TABLE_FOOTER_USERREG = "<a href='".e_SIGNUP."'>".LAN_LOGIN_11."</a>"; 89 } 90 // echo preg_replace("/\{([^ ]*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_FOOTER); 91 echo $tp->simpleParse($LOGIN_TABLE_FOOTER, $tVars, false); 92 } 93 94 $FOOTER = ""; 95 require_once(FOOTERF); 96 //echo "</body></html>"; 97 98 $sql->db_Close(); 99 100 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jan 24 15:58:46 2013 | Cross Reference PHPXref |