From 45a445ac485199a0f1a952acf86b044d24252b72 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 1 May 2020 13:21:02 -0400 Subject: [PATCH] sync up index.php to master, where is a global --- web/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/index.php b/web/index.php index 29316efc3..b29a4e7e7 100644 --- a/web/index.php +++ b/web/index.php @@ -52,6 +52,9 @@ require_once('includes/Event.php'); require_once('includes/Group.php'); require_once('includes/Monitor.php'); +global $Servers; +$Servers = ZM\Server::find(); + if ( (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') or @@ -152,8 +155,6 @@ if ( setcookie('zmCSS', $css, time()+3600*24*30*12*10); } - - # Running is global but only do the daemonCheck if it is actually needed $running = null; @@ -174,7 +175,6 @@ $user = null; if ( isset($_REQUEST['view']) ) $view = detaintPath($_REQUEST['view']); - # Add CSP Headers $cspNonce = bin2hex(zm_random_bytes(16));