Changeset 345 for trunk/identification.php
- Timestamp:
- Feb 2, 2004, 1:55:18 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/identification.php
r104 r345 18 18 ***************************************************************************/ 19 19 20 //----------------------------------------------------------- personnal include 21 include_once( "./include/init.inc.php" ); 20 //----------------------------------------------------------- include 21 $phpwg_root_path = './'; 22 include_once( $phpwg_root_path.'common.php' ); 23 22 24 //-------------------------------------------------------------- identification 23 25 $errors = array(); … … 26 28 // retrieving the encrypted password of the login submitted 27 29 $query = 'SELECT password'; 28 $query.= ' FROM '. PREFIX_TABLE.'users';30 $query.= ' FROM '.USERS_TABLE; 29 31 $query.= " WHERE username = '".$_POST['login']."';"; 30 32 $row = mysql_fetch_array( mysql_query( $query ) ); … … 44 46 } 45 47 //----------------------------------------------------- template initialization 46 $vtp = new VTemplate; 48 // 49 // Start output of page 50 // 51 $title = $lang['ident_page_title']; 52 include('include/page_header.php'); 53 47 54 $handle = $vtp->Open( './template/default/identification.vtp' ); 48 55 // language 49 $vtp->setGlobalVar( $handle, 'ident_page_title', $lang['ident_page_title'] );50 56 $vtp->setGlobalVar( $handle, 'ident_title', $lang['ident_title'] ); 51 57 $vtp->setGlobalVar( $handle, 'login', $lang['login'] ); … … 74 80 //------------------------------------------------------------------ users list 75 81 // retrieving all the users login 76 $query = 'select username from '. PREFIX_TABLE.'users;';82 $query = 'select username from '.USERS_TABLE.';'; 77 83 $result = mysql_query( $query ); 78 84 if ( mysql_num_rows ( $result ) < $conf['max_user_listbox'] ) … … 110 116 $code = $vtp->Display( $handle, 0 ); 111 117 echo $code; 118 include('include/page_tail.php'); 112 119 ?>
Note: See TracChangeset
for help on using the changeset viewer.