aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/isadmin.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-12-20 19:26:43 +0000
committerplegall <plg@piwigo.org>2004-12-20 19:26:43 +0000
commitc19f01d77c990962baef1906ac0ed60280324b77 (patch)
tree3adbc0c836875d77d06feb987773030e36646c86 /admin/include/isadmin.inc.php
parent1d46ea86e9d3925a60f1d126d4b1bd642630741a (diff)
- replacement of PREFIX_TABLE constant in delete_user function
- deletion of $isadmin variable, replaced by constant IN_ADMIN - small refactoring - in include/common.inc.php, deletion of useless part "Obtain and encode users IP" and corresponding functions encode_ip and decode_ip - definition of $conf['default_language'] deleted from include/config.inc.php : it is already present in database table config - function init_userprefs deleted (useless), all its content moved to include/user.inc.php - admin.lang.php and faq.lang.php are loaded only if current user is in administrative section git-svn-id: http://piwigo.org/svn/trunk@650 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/isadmin.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/include/isadmin.inc.php b/admin/include/isadmin.inc.php
index 90398702b..9b71cb900 100644
--- a/admin/include/isadmin.inc.php
+++ b/admin/include/isadmin.inc.php
@@ -27,8 +27,7 @@
include( PHPWG_ROOT_PATH.'admin/include/functions.php' );
-$isadmin = true;
-if ( $user['status'] != 'admin' )
+if ($user['status'] != 'admin')
{
echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
echo '<a href="'.PHPWG_ROOT_PATH.'identification.php">'.$lang['ident_title'].'</a></div>';