source: trunk/index.php @ 10

Last change on this file since 10 was 10, 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: 525 bytes
Line 
1<?php
2include_once( './include/mysql.inc.php' );
3include_once( './include/functions.inc.php' );
4database_connection();
5// récupération des informations de configuration du site
6$query  = 'select acces ';
7$query .= 'from '.PREFIX_TABLE.'config;';
8$row = mysql_fetch_array( mysql_query( $query ) );
9$url = 'category';
10if ( $row['acces'] == 'restreint' )
11{
12  $url = 'identification';
13}
14// redirection
15$url.= '.php';
16header( 'Request-URI: '.$url ); 
17header( 'Content-Location: '.$url ); 
18header( 'Location: '.$url );
19exit();
20?>
Note: See TracBrowser for help on using the repository browser.