Changeset 191


Ignore:
Timestamp:
Oct 11, 2003, 3:11:22 PM (21 years ago)
Author:
z0rglub
Message:

If you have a cookie (valid) and that the gallery is set as "restricted",
when accessing by index.php, you're redirected to category.php instead of
identification.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r57 r191  
    77 *                                                                         *
    88 *   $Id$
     9 *                                                                         *
     10 ***************************************************************************
     11
     12/***************************************************************************
     13 *                                                                         *
     14 *   This program is free software; you can redistribute it and/or modify  *
     15 *   it under the terms of the GNU General Public License as published by  *
     16 *   the Free Software Foundation;                                         *
    917 *                                                                         *
    1018 ***************************************************************************/
     
    1725$query.= ' FROM '.PREFIX_TABLE.'config;';
    1826$row = mysql_fetch_array( mysql_query( $query ) );
    19 if ( $row['access'] == 'restricted' ) $url = 'identification';
    20 else                                  $url = 'category';
     27if ( $row['access'] == 'restricted' )
     28{
     29  if ( isset( $_COOKIE['id'] ) ) $url = 'category';
     30  else                           $url = 'identification';
     31}
     32else                             $url = 'category';
    2133// redirection
    2234$url.= '.php';
Note: See TracChangeset for help on using the changeset viewer.