mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-03 08:22:24 +02:00
Modifying ./include/isadmin.inc.php in ./admin/include/isadmin.inc.php since admin.php has moved to the PhpWebGallery root directory
git-svn-id: http://piwigo.org/svn/trunk@226 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -16,19 +16,19 @@
|
||||
* the Free Software Foundation; *
|
||||
* *
|
||||
***************************************************************************/
|
||||
define( PREFIX_INCLUDE, '.' );
|
||||
define( PREFIX_INCLUDE, '' );
|
||||
|
||||
include_once( '../include/config.inc.php' );
|
||||
include_once( '../include/user.inc.php' );
|
||||
include( './include/functions.php' );
|
||||
include_once( './include/config.inc.php' );
|
||||
include_once( './include/user.inc.php' );
|
||||
include( './admin/include/functions.php' );
|
||||
|
||||
$isadmin = true;
|
||||
include_once( '../language/'.$user['language'].'.php' );
|
||||
include_once( './language/'.$user['language'].'.php' );
|
||||
|
||||
if ( $user['status'] != 'admin' )
|
||||
{
|
||||
echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
|
||||
echo '<a href="../identification.php">'.$lang['ident_title'].'</a></div>';
|
||||
echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user