source: trunk/index.php @ 57

Last change on this file since 57 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
12define( PREFIX_INCLUDE, '' );
13include_once( './include/functions.inc.php' );
14database_connection();
15// retrieving configuration informations
16$query = 'SELECT access';
17$query.= ' FROM '.PREFIX_TABLE.'config;';
18$row = mysql_fetch_array( mysql_query( $query ) );
19if ( $row['access'] == 'restricted' ) $url = 'identification';
20else                                  $url = 'category';
21// redirection
22$url.= '.php';
23header( 'Request-URI: '.$url ); 
24header( 'Content-Location: '.$url ); 
25header( 'Location: '.$url );
26exit();
27?>
Note: See TracBrowser for help on using the repository browser.