aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 000000000..bea8122e7
--- /dev/null
+++ b/index.php
@@ -0,0 +1,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 '.$prefixeTable.'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();
+?> \ No newline at end of file