source: trunk/index.php @ 8

Last change on this file since 8 was 2, checked in by z0rglub, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 526 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 '.$prefixeTable.'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.