From b7b705f2685da04caa0be91debc2c66d279fddf5 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Tue, 13 May 2003 10:02:06 +0000 Subject: 2003.05.13 user_add and user_modify added git-svn-id: http://piwigo.org/svn/trunk@9 68402e56-0260-453c-a942-63ccdbb3a9ee --- identification.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'identification.php') diff --git a/identification.php b/identification.php index d4c734939..ddbc2b932 100644 --- a/identification.php +++ b/identification.php @@ -1,9 +1,9 @@ * * * ***************************************************************************/ @@ -25,15 +25,15 @@ if ( isset( $_POST['login'] ) ) // retrieving the encrypted password of the login submitted $query = 'select password'; $query.= ' from '.$prefixeTable.'users'; - $query.= " where pseudo = '".$_POST['login']."';"; + $query.= " where username = '".$_POST['login']."';"; $row = mysql_fetch_array( mysql_query( $query ) ); if( $row['password'] == md5( $_POST['pass'] ) ) { $session_id = session_create( $_POST['login'] ); $url = 'category.php?id='.$session_id; - header( "Request-URI: $url" ); - header( "Content-Location: $url" ); - header( "Location: $url" ); + header( 'Request-URI: '.$url ); + header( 'Content-Location: '.$url ); + header( 'Location: '.$url ); exit(); } else @@ -77,17 +77,17 @@ if ( sizeof( $error ) != 0 ) } //------------------------------------------------------------------ users list // retrieving all the users login -$query = 'select pseudo from '.$prefixeTable.'users;'; +$query = 'select username from '.$prefixeTable.'users;'; $result = mysql_query( $query ); if ( mysql_num_rows ( $result ) < $conf['max_user_listbox'] ) { $vtp->addSession( $handle, 'select_field' ); while ( $row = mysql_fetch_array( $result ) ) { - if ( $row['pseudo'] != 'visiteur' ) + if ( $row['username'] != 'guest' ) { $vtp->addSession( $handle, 'option' ); - $vtp->setVar( $handle, 'option.option', $row['pseudo'] ); + $vtp->setVar( $handle, 'option.option', $row['username'] ); $vtp->closeSession( $handle, 'option' ); } } -- cgit v1.2.3