Last change
on this file since 8 was
2,
checked in by z0rglub, 22 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
526 bytes
|
Line | |
---|
1 | <?php |
---|
2 | include_once( './include/mysql.inc.php' ); |
---|
3 | include_once( './include/functions.inc.php' ); |
---|
4 | database_connection(); |
---|
5 | // récupération des informations de configuration du site |
---|
6 | $query = 'select acces '; |
---|
7 | $query .= 'from '.$prefixeTable.'config;'; |
---|
8 | $row = mysql_fetch_array( mysql_query( $query ) ); |
---|
9 | $url = 'category'; |
---|
10 | if ( $row['acces'] == 'restreint' ) |
---|
11 | { |
---|
12 | $url = 'identification'; |
---|
13 | } |
---|
14 | // redirection |
---|
15 | $url.= '.php'; |
---|
16 | header( 'Request-URI: '.$url ); |
---|
17 | header( 'Content-Location: '.$url ); |
---|
18 | header( 'Location: '.$url ); |
---|
19 | exit(); |
---|
20 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.