*/ require_once "../../require.php"; require_once $centreon_path . 'www/class/centreon.class.php'; require_once $centreon_path . 'www/class/centreonSession.class.php'; require_once $centreon_path . 'www/class/centreonDB.class.php'; require_once $centreon_path . 'www/class/centreonWidget.class.php'; require_once $centreon_path . 'www/class/centreonDuration.class.php'; require_once $centreon_path . 'www/class/centreonUtils.class.php'; require_once $centreon_path . 'www/class/centreonACL.class.php'; require_once $centreon_path . 'www/widgets/servicegroup-monitoring/src/class/ServicegroupMonitoring.class.php'; session_start(); if (!isset($_SESSION['centreon']) || !isset($_REQUEST['widgetId']) || !isset($_REQUEST['page'])) { exit; } $db = new CentreonDB(); if (CentreonSession::checkSession(session_id(), $db) == 0) { exit; } $prefixRes = $db->query("SELECT db_prefix FROM cfg_ndo2db WHERE activate = '1' LIMIT 1"); if (!$prefixRes->numRows()) { exit; } $prefixRow = $prefixRes->fetchRow(); $ndoPrefix = $prefixRow['db_prefix']; require_once $centreon_path . "GPL_LIB/Smarty/libs/Smarty.class.php"; $path = $centreon_path . "www/widgets/servicegroup-monitoring/src/"; $template = new Smarty(); $template = initSmartyTplForPopup($path, $template, "./", $centreon_path); $centreon = $_SESSION['centreon']; $widgetId = $_REQUEST['widgetId']; $page = $_REQUEST['page'];
* Module name: Centreon-Syslog-Frontend * * SVN : $URL$ * SVN : $Id$ * */ include "@CENTREON_ETC@centreon.conf.php"; if (is_file($centreon_path . "www/class/centreonSession.class.php")) { require_once $centreon_path . "www/class/centreonSession.class.php"; } elseif (is_file($centreon_path . "www/class/Session.class.php")) { require_once $centreon_path . "www/class/Session.class.php"; } if (is_file($centreon_path . "www/class/centreon.class.php")) { require_once $centreon_path . "www/class/centreon.class.php"; if (!isset($_SESSION['centreon'])) { CentreonSession::start(); } } elseif (is_file($centreon_path . "www/class/Oreon.class.php")) { require_once $centreon_path . "www/class/Oreon.class.php"; if (!isset($_SESSION['oreon'])) { Session::start(); } } if (isset($_SESSION['centreon'])) { $oreon = $_SESSION['centreon']; } elseif (isset($_SESSION['oreon'])) { $oreon = $_SESSION['oreon']; } else { exit; } /*