Ignore:
Timestamp:
Feb 2, 2004, 1:55:18 AM (20 years ago)
Author:
gweltas
Message:

Merge of the 1.3.1 release
Creation of an unique include file (common.php)
Creation of an unique define file (include/constants.php)
Modification of the installation procedure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/identification.php

    r104 r345  
    1818 ***************************************************************************/
    1919
    20 //----------------------------------------------------------- personnal include
    21 include_once( "./include/init.inc.php" );
     20//----------------------------------------------------------- include
     21$phpwg_root_path = './';
     22include_once( $phpwg_root_path.'common.php' );
     23
    2224//-------------------------------------------------------------- identification
    2325$errors = array();
     
    2628  // retrieving the encrypted password of the login submitted
    2729  $query = 'SELECT password';
    28   $query.= ' FROM '.PREFIX_TABLE.'users';
     30  $query.= ' FROM '.USERS_TABLE;
    2931  $query.= " WHERE username = '".$_POST['login']."';";
    3032  $row = mysql_fetch_array( mysql_query( $query ) );
     
    4446}
    4547//----------------------------------------------------- template initialization
    46 $vtp = new VTemplate;
     48//
     49// Start output of page
     50//
     51$title = $lang['ident_page_title'];
     52include('include/page_header.php');
     53
    4754$handle = $vtp->Open( './template/default/identification.vtp' );
    4855// language
    49 $vtp->setGlobalVar( $handle, 'ident_page_title', $lang['ident_page_title'] );
    5056$vtp->setGlobalVar( $handle, 'ident_title',      $lang['ident_title'] );
    5157$vtp->setGlobalVar( $handle, 'login',            $lang['login'] );
     
    7480//------------------------------------------------------------------ users list
    7581// retrieving all the users login
    76 $query = 'select username from '.PREFIX_TABLE.'users;';
     82$query = 'select username from '.USERS_TABLE.';';
    7783$result = mysql_query( $query );
    7884if ( mysql_num_rows ( $result ) < $conf['max_user_listbox'] )
     
    110116$code = $vtp->Display( $handle, 0 );
    111117echo $code;
     118include('include/page_tail.php');
    112119?>
Note: See TracChangeset for help on using the changeset viewer.