// Set variables $msg_box = array(); // Check for install.inc.php if (!file_exists('../config.php') && $_SERVER['PATH_INFO'] != '/install.php') { // no config.php does so let's redirect to the install header('Location: install.php'); exit; } require '../includes/defaults.inc.php'; require '../config.php'; require_once '../includes/definitions.inc.php'; require '../includes/functions.php'; require 'includes/functions.inc.php'; require 'includes/vars.inc.php'; $config['memcached']['ttl'] = $config['time']['now'] + 300; LibreNMS\Plugins::start(); $runtime_start = microtime(true); ob_start(); ini_set('allow_url_fopen', 0); ini_set('display_errors', 0); require 'includes/authenticate.inc.php'; if (strstr($_SERVER['REQUEST_URI'], 'widescreen=yes')) { $_SESSION['widescreen'] = 1; } if (strstr($_SERVER['REQUEST_URI'], 'widescreen=no')) { unset($_SESSION['widescreen']); } # Load the settings for Multi-Tenancy. if (isset($config['branding']) && is_array($config['branding'])) { if ($config['branding'][$_SERVER['SERVER_NAME']]) { foreach ($config['branding'][$_SERVER['SERVER_NAME']] as $confitem => $confval) {
$ports_colour = $warn_colour_a; } else { $ports_colour = $list_colour_a; } echo ' <div class="container-fluid"> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row"> <div class="col-md-6"> '; require 'includes/dev-overview-data.inc.php'; LibreNMS\Plugins::call('device_overview_container', array($device)); require 'overview/ports.inc.php'; if ($device['os'] == 'cimc') { require 'overview/cimc.inc.php'; } echo ' </div> <div class="col-md-6"> '; // Right Pane require 'overview/processors.inc.php'; require 'overview/mempools.inc.php'; require 'overview/storage.inc.php'; if (is_array($entity_state['group']['c6kxbar'])) { require 'overview/c6kxbar.inc.php'; }