diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-07-01 09:27:20 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-07-01 09:27:20 +0000 |
commit | 0ec91d8b4834d63c65dcbef6ac49ab5a8f68ddd1 (patch) | |
tree | b21ebe1713021f8f783f10b948acdb03878d5223 /index.php | |
parent | 1080c51deb551ec63677adb842025065fa0999ba (diff) |
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@21 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | index.php | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -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 ); |