source: trunk/admin/include/isadmin.inc.php @ 21

Last change on this file since 21 was 21, checked in by z0rglub, 21 years ago

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1<?php
2/***************************************************************************
3 *                              isadmin.inc.php                            *
4 *                            -------------------                          *
5 *   application          : PhpWebGallery 1.3                              *
6 *   author               : Pierrick LE GALL <pierrick@z0rglub.com>        *
7 *                                                                         *
8 ***************************************************************************
9
10 ***************************************************************************
11 *                                                                         *
12 *   This program is free software; you can redistribute it and/or modify  *
13 *   it under the terms of the GNU General Public License as published by  *
14 *   the Free Software Foundation;                                         *
15 *                                                                         *
16 ***************************************************************************/
17define( PREFIX_INCLUDE, '.' );
18
19include_once( '../include/config.inc.php' );
20include_once( '../include/user.inc.php' );
21include( './include/functions.php' );
22
23$isadmin = true;
24include_once( '../language/'.$user['language'].'.php' );
25
26if ( $user['status'] != 'admin' )
27{
28  echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
29  echo '<a href="../identification.php">'.$lang['ident_title'].'</a></div>';
30  exit();
31}
32?>
Note: See TracBrowser for help on using the repository browser.