Changeset 87 for trunk


Ignore:
Timestamp:
Sep 11, 2003, 10:22:35 PM (21 years ago)
Author:
z0rglub
Message:

Bug correction : errors were not shown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/identification.php

    r57 r87  
    2525{
    2626  // retrieving the encrypted password of the login submitted
    27   $query = 'select password';
    28   $query.= ' from '.PREFIX_TABLE.'users';
    29   $query.= " where username = '".$_POST['login']."';";
     27  $query = 'SELECT password';
     28  $query.= ' FROM '.PREFIX_TABLE.'users';
     29  $query.= " WHERE username = '".$_POST['login']."';";
    3030  $row = mysql_fetch_array( mysql_query( $query ) );
    3131  if( $row['password'] == md5( $_POST['pass'] ) )
     
    6262initialize_template();
    6363//-------------------------------------------------------------- errors display
    64 if ( sizeof( $error ) != 0 )
     64if ( sizeof( $errors ) != 0 )
    6565{
    6666  $vtp->addSession( $handle, 'errors' );
Note: See TracChangeset for help on using the changeset viewer.