Last change
on this file since 175 was
57,
checked in by z0rglub, 21 years ago
|
improve the header of each file
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | /*************************************************************************** |
---|
3 | * index.php * |
---|
4 | * ------------------- * |
---|
5 | * application : PhpWebGallery 1.3 <http://phpwebgallery.net> * |
---|
6 | * author : Pierrick LE GALL <pierrick@z0rglub.com> * |
---|
7 | * * |
---|
8 | * $Id: index.php 57 2003-08-24 07:40:56Z z0rglub $ |
---|
9 | * * |
---|
10 | ***************************************************************************/ |
---|
11 | |
---|
12 | define( PREFIX_INCLUDE, '' ); |
---|
13 | include_once( './include/functions.inc.php' ); |
---|
14 | database_connection(); |
---|
15 | // retrieving configuration informations |
---|
16 | $query = 'SELECT access'; |
---|
17 | $query.= ' FROM '.PREFIX_TABLE.'config;'; |
---|
18 | $row = mysql_fetch_array( mysql_query( $query ) ); |
---|
19 | if ( $row['access'] == 'restricted' ) $url = 'identification'; |
---|
20 | else $url = 'category'; |
---|
21 | // redirection |
---|
22 | $url.= '.php'; |
---|
23 | header( 'Request-URI: '.$url ); |
---|
24 | header( 'Content-Location: '.$url ); |
---|
25 | header( 'Location: '.$url ); |
---|
26 | exit(); |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.