Clean up HTML and PHP, remove extranious checks for loggedin()

This commit is contained in:
Eric Blade
2004-12-29 20:21:31 +00:00
committed by WineHQ
parent 9fac8bc853
commit ffeeaef807
35 changed files with 86 additions and 107 deletions

View File

@@ -10,13 +10,9 @@ include("path.php");
require(BASE."include/incl.php");
// deny access if not logged in
if(!loggedin())
if(!havepriv("admin"))
{
errorpage("You need to be logged in to use this page.");
exit;
} else if (!havepriv("admin"))
{
errorpage("You must be an administrator to use this page.");
errorpage("Insufficient privileges.");
exit;
}