aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-05-09 12:42:42 +0000
committerz0rglub <z0rglub@piwigo.org>2003-05-09 12:42:42 +0000
commit867c2379ff66ce0f2c4f872a13027fd649aa076d (patch)
treefd182bca99fc6cfe09a7821fab35ce2629fdab44 /index.php
parentfe51c10474152f319d08229147adbc95fcd6c219 (diff)
Initial revision
git-svn-id: http://piwigo.org/svn/trunk@2 68402e56-0260-453c-a942-63ccdbb3a9ee
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