mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
added permissions cache
git-svn-id: http://www.observium.org/svn/observer/trunk@1073 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+4
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user