php3 fix again with same function as before

This commit is contained in:
Miles Lott 2001-09-05 02:57:30 +00:00
parent 86496398e7
commit 5a5d1c0a09

View File

@ -179,6 +179,20 @@
define('HAS_ADMIN_RIGHTS',1);
}
// Makes the ifs a little nicer, plus ... this will change once the ACL manager is in place
// and is able to create less powerfull admins. This will handle the ACL checks for that (jengo)
function is_admin()
{
if (HAS_ADMIN_RIGHTS == 1)
{
return True;
}
else
{
return False;
}
}
if (is_admin())
{
// This is where we will keep track of our postion.
@ -238,20 +252,6 @@
$dp->read_repository();
}
// Makes the ifs a little nicer, plus ... this will change once the ACL manager is in place
// and is able to create less powerfull admins. This will handle the ACL checks for that (jengo)
function is_admin()
{
if (HAS_ADMIN_RIGHTS == 1)
{
return True;
}
else
{
return False;
}
}
if ($GLOBALS['HTTP_POST_VARS']['submit'])
{
// Don't use a switch here, we need to check some permissions durring the ifs
@ -326,4 +326,4 @@
$GLOBALS['phpgw']->common->phpgw_footer();
?>
?>