- OO version of user class
- no more duplicated functions - improved performances (much less duplicated mysql queries) - less code and better error handling
This commit is contained in:
@@ -11,7 +11,7 @@ require(BASE."include/"."screenshot.php");
|
||||
apidb_header("Screenshots");
|
||||
|
||||
// deny access if not admin
|
||||
if(!havepriv("admin"))
|
||||
if(!$_SESSION['current']->hasPriv("admin"))
|
||||
{
|
||||
errorpage("Insufficient privileges.");
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user