source: trunk/index.php @ 21

Last change on this file since 21 was 21, checked in by z0rglub, 21 years ago

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 528 bytes
Line 
1<?php
2define( PREFIX_INCLUDE, '' );
3include_once( './include/functions.inc.php' );
4database_connection();
5// retrieving configuration informations
6$query = 'SELECT access';
7$query.= ' FROM '.PREFIX_TABLE.'config;';
8$row = mysql_fetch_array( mysql_query( $query ) );
9if ( $row['access'] == 'restricted' ) $url = 'identification';
10else                                  $url = 'category';
11// redirection
12$url.= '.php';
13header( 'Request-URI: '.$url ); 
14header( 'Content-Location: '.$url ); 
15header( 'Location: '.$url );
16exit();
17?>
Note: See TracBrowser for help on using the repository browser.