aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
blob: 54782e23765aec1b03006f8016d6ed46e0fd653d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
include_once( './include/mysql.inc.php' );
include_once( './include/functions.inc.php' );
database_connection();
// r�cup�ration des informations de configuration du site
$query  = 'select acces ';
$query .= 'from '.PREFIX_TABLE.'config;';
$row = mysql_fetch_array( mysql_query( $query ) );
$url = 'category';
if ( $row['acces'] == 'restreint' )
{
  $url = 'identification';
}
// redirection
$url.= '.php';
header( 'Request-URI: '.$url );  
header( 'Content-Location: '.$url );  
header( 'Location: '.$url );
exit();
?>