Changeset 21 for trunk/index.php
- Timestamp:
- Jul 1, 2003, 11:27:20 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r10 r21 1 1 <?php 2 include_once( './include/mysql.inc.php' );2 define( PREFIX_INCLUDE, '' ); 3 3 include_once( './include/functions.inc.php' ); 4 4 database_connection(); 5 // r écupération des informations de configuration du site6 $query = 'select acces';7 $query .= 'from'.PREFIX_TABLE.'config;';5 // retrieving configuration informations 6 $query = 'SELECT access'; 7 $query.= ' FROM '.PREFIX_TABLE.'config;'; 8 8 $row = mysql_fetch_array( mysql_query( $query ) ); 9 $url = 'category'; 10 if ( $row['acces'] == 'restreint' ) 11 { 12 $url = 'identification'; 13 } 9 if ( $row['access'] == 'restricted' ) $url = 'identification'; 10 else $url = 'category'; 14 11 // redirection 15 12 $url.= '.php';
Note: See TracChangeset
for help on using the changeset viewer.