Changeset 9 for trunk/identification.php


Ignore:
Timestamp:
May 13, 2003, 12:02:06 PM (21 years ago)
Author:
z0rglub
Message:

2003.05.13 user_add and user_modify added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/identification.php

    r2 r9  
    11<?php
    22/***************************************************************************
    3  *             identification.php is a part of PhpWebGallery               *
    4  *                            -------------------                          *
    5  *   last update          : Thursday, December 26, 2002                    *
    6  *   email                : pierrick@z0rglub.com                           *
     3 *                            identification.php                           *
     4 *                            ------------------                           *
     5 *   application          : PhpWebGallery 1.3                              *
     6 *   author               : Pierrick LE GALL <pierrick@z0rglub.com>        *
    77 *                                                                         *
    88 ***************************************************************************/
     
    2626  $query = 'select password';
    2727  $query.= ' from '.$prefixeTable.'users';
    28   $query.= " where pseudo = '".$_POST['login']."';";
     28  $query.= " where username = '".$_POST['login']."';";
    2929  $row = mysql_fetch_array( mysql_query( $query ) );
    3030  if( $row['password'] == md5( $_POST['pass'] ) )
     
    3232    $session_id = session_create( $_POST['login'] );
    3333    $url = 'category.php?id='.$session_id;
    34     header( "Request-URI: $url" );
    35     header( "Content-Location: $url" ); 
    36     header( "Location: $url" );
     34    header( 'Request-URI: '.$url );
     35    header( 'Content-Location: '.$url ); 
     36    header( 'Location: '.$url );
    3737    exit();
    3838  }
     
    7878//------------------------------------------------------------------ users list
    7979// retrieving all the users login
    80 $query = 'select pseudo from '.$prefixeTable.'users;';
     80$query = 'select username from '.$prefixeTable.'users;';
    8181$result = mysql_query( $query );
    8282if ( mysql_num_rows ( $result ) < $conf['max_user_listbox'] )
     
    8585  while ( $row = mysql_fetch_array( $result ) )
    8686  {
    87     if ( $row['pseudo'] != 'visiteur' )
     87    if ( $row['username'] != 'guest' )
    8888    {
    8989      $vtp->addSession( $handle, 'option' );
    90       $vtp->setVar( $handle, 'option.option', $row['pseudo'] );
     90      $vtp->setVar( $handle, 'option.option', $row['username'] );
    9191      $vtp->closeSession( $handle, 'option' );
    9292    }
Note: See TracChangeset for help on using the changeset viewer.