
git-svn-id: http://piwigo.org/svn/branches/release-1_3@274 68402e56-0260-453c-a942-63ccdbb3a9ee
34 lines
No EOL
1.6 KiB
PHP
34 lines
No EOL
1.6 KiB
PHP
<?php
|
|
/***************************************************************************
|
|
* isadmin.inc.php *
|
|
* ------------------- *
|
|
* application : PhpWebGallery 1.3 <http://phpwebgallery.net> *
|
|
* author : Pierrick LE GALL <pierrick@z0rglub.com> *
|
|
* *
|
|
* $Id$
|
|
* *
|
|
***************************************************************************
|
|
|
|
***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; *
|
|
* *
|
|
***************************************************************************/
|
|
define( 'PREFIX_INCLUDE', '.' );
|
|
|
|
include_once( '../include/config.inc.php' );
|
|
include_once( '../include/user.inc.php' );
|
|
include( './include/functions.php' );
|
|
|
|
$isadmin = true;
|
|
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>';
|
|
exit();
|
|
}
|
|
?>
|