mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 02:03:18 +02:00
Initial revision
git-svn-id: http://piwigo.org/svn/trunk@2 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* isadmin.inc.php *
|
||||
* ------------------- *
|
||||
* application : PhpWebGallery 1.3 *
|
||||
* author : Pierrick LE GALL <pierrick@z0rglub.com> *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* 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( PREFIXE_INCLUDE, '.' );
|
||||
|
||||
include_once( '../include/config.inc.php' );
|
||||
include_once( '../include/user.inc.php' );
|
||||
include( './include/functions.php' );
|
||||
|
||||
$conf['lien_puce'] = $conf['repertoire_image'].'puce.gif';
|
||||
|
||||
$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();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user