diff --git a/www/include/monitoring/external_cmd/popup/popup.php b/www/include/monitoring/external_cmd/popup/popup.php index e0bb61e4a67..f2e48154251 100644 --- a/www/include/monitoring/external_cmd/popup/popup.php +++ b/www/include/monitoring/external_cmd/popup/popup.php @@ -35,6 +35,10 @@ require_once realpath(dirname(__FILE__) . "/../../../../../config/centreon.config.php"); +require_once _CENTREON_PATH_ . 'vendor/autoload.php'; +$smartyDir = _CENTREON_PATH_ . 'vendor/smarty/smarty/'; +require_once $smartyDir . 'libs/Smarty.class.php'; + require_once _CENTREON_PATH_ . "www/class/centreonSession.class.php"; require_once _CENTREON_PATH_ . "www/class/centreon.class.php"; require_once _CENTREON_PATH_ . "www/class/centreonDB.class.php"; @@ -66,8 +70,6 @@ define('SMARTY_DIR', _CENTREON_PATH_ . 'GPL_LIB/Smarty/libs/'); -require_once SMARTY_DIR . "Smarty.class.php"; - $o = htmlentities($_GET['o'], ENT_QUOTES, "UTF-8"); $p = htmlentities($_GET['p'], ENT_QUOTES, "UTF-8"); $cmd = htmlentities($_GET['cmd'], ENT_QUOTES, "UTF-8"); diff --git a/www/include/monitoring/status/Services/serviceJS.php b/www/include/monitoring/status/Services/serviceJS.php index 3b459ff5e72..0117715ff39 100644 --- a/www/include/monitoring/status/Services/serviceJS.php +++ b/www/include/monitoring/status/Services/serviceJS.php @@ -298,7 +298,7 @@ function cmdCallback(cmd) { document.getElementById(decodeURIComponent(keyz)) ) { if (document.getElementById(decodeURIComponent(keyz)).checked) { - _getVar += '&select[' + encodeURIComponent(keyz) + ']=1'; + _getVar += '&select[' + keyz + ']=1'; } } }