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

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

improve the header of each file

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