added permissions cache

git-svn-id: http://www.observium.org/svn/observer/trunk@1073 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-04-24 14:23:16 +00:00
parent ef30ca249d
commit 464f495e29
3 changed files with 31 additions and 15 deletions
+4 -1
View File
@@ -17,8 +17,11 @@ if($debug) {
include("../includes/functions.php");
include("includes/functions.inc.php");
include("includes/authenticate.inc.php");
$start = utime();
if($_SESSION['authenticated']) {
$permissions = permissions_cache($_SESSION['user_id']);
}
$start = utime();
$now = time();
$day = time() - (24 * 60 * 60);
$twoday = time() - (2 * 24 * 60 * 60);