aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-01 09:27:20 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-01 09:27:20 +0000
commit0ec91d8b4834d63c65dcbef6ac49ab5a8f68ddd1 (patch)
treeb21ebe1713021f8f783f10b948acdb03878d5223 /index.php
parent1080c51deb551ec63677adb842025065fa0999ba (diff)
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@21 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'index.php')
-rw-r--r--index.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/index.php b/index.php
index 54782e237..35f616f82 100644
--- a/index.php
+++ b/index.php
@@ -1,16 +1,13 @@
<?php
-include_once( './include/mysql.inc.php' );
+define( PREFIX_INCLUDE, '' );
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;';
+// retrieving configuration informations
+$query = 'SELECT access';
+$query.= ' FROM '.PREFIX_TABLE.'config;';
$row = mysql_fetch_array( mysql_query( $query ) );
-$url = 'category';
-if ( $row['acces'] == 'restreint' )
-{
- $url = 'identification';
-}
+if ( $row['access'] == 'restricted' ) $url = 'identification';
+else $url = 'category';
// redirection
$url.= '.php';
header( 'Request-URI: '.$url );