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

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

Modifying ./include/isadmin.inc.php in ./admin/include/isadmin.inc.php since admin.php has moved to the PhpWebGallery root directory

  • 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 226 2003-11-03 20:59:40Z 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( './admin/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.