piwigo/index.php
z0rglub 867c2379ff Initial revision
git-svn-id: http://piwigo.org/svn/trunk@2 68402e56-0260-453c-a942-63ccdbb3a9ee
2003-05-09 12:42:42 +00:00

20 lines
No EOL
526 B
PHP

<?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();
?>