diff --git a/www/include/views/graphs/common/makeXML_ListServices.php b/www/include/views/graphs/common/makeXML_ListServices.php deleted file mode 100644 index 15f75ee0a2f..00000000000 --- a/www/include/views/graphs/common/makeXML_ListServices.php +++ /dev/null @@ -1,88 +0,0 @@ -. - * - * Linking this program statically or dynamically with other modules is making a - * combined work based on this program. Thus, the terms and conditions of the GNU - * General Public License cover the whole combination. - * - * As a special exception, the copyright holders of this program give Centreon - * permission to link this program with independent modules to produce an executable, - * regardless of the license terms of these independent modules, and to copy and - * distribute the resulting executable under terms of Centreon choice, provided that - * Centreon also meet, for each linked independent module, the terms and conditions - * of the license of that module. An independent module is a module which is not - * derived from this program. If you modify this program, you may extend this - * exception to your version of the program, but you are not obliged to do so. If you - * do not wish to do so, delete this exception statement from your version. - * - * For more information : contact@centreon.com - * - * SVN : $URL$ - * SVN : $Id$ - * - */ - - header('Content-Type: text/xml'); - header('Cache-Control: no-cache'); - - require_once realpath(dirname(__FILE__) . "/../../../../../config/centreon.config.php"); - require_once _CENTREON_PATH_."/www/class/centreonDB.class.php"; - require_once _CENTREON_PATH_."/www/class/centreonXML.class.php"; - /* - * Get session - */ - require_once(_CENTREON_PATH_ . "www/class/centreonSession.class.php"); - require_once(_CENTREON_PATH_ . "www/class/centreon.class.php"); -if (!isset($_SESSION['centreon'])) { - CentreonSession::start(); -} -if (isset($_SESSION['centreon'])) { - $oreon = $_SESSION['centreon']; -} else { - exit; -} - - $pearDBO = new CentreonDB("centstorage"); - - /* - * Get language - */ - $locale = $oreon->user->get_lang(); - putenv("LANG=$locale"); - setlocale(LC_ALL, $locale); - bindtextdomain("messages", _CENTREON_PATH_ . "www/locale/"); -; - bind_textdomain_codeset("messages", "UTF-8"); - textdomain("messages"); - - # replace array - $a_this = array( "#S#", "#BS#" ); - $a_that = array( "/", "\\" ); - - # - # Existing services data comes from DBO -> Store in $s_datas Array - $s_datas = array(""=> sprintf("%s%s", _("Service list"), "   ")); - $mx_l = strlen($s_datas[""]); - -if (isset($_GET["host_id"]) && $_GET["host_id"] != 0) { - $pq_sql = $pearDBO->query("SELECT id index_id, service_description FROM index_data WHERE host_id='".$_GET['host_id']."'ORDER BY service_description"); - while ($fw_sql = $pq_sql->fetchRow()) { - $fw_sql["service_description"] = str_replace($a_this, $a_that, $fw_sql["service_description"]); - $s_datas[$fw_sql["index_id"]] = $fw_sql["service_description"]."   "; - $sd_l = strlen($fw_sql["service_description"]); - if ($sd_l > $mx_l) { - $mx_l = $sd_l; - } - } - $pq_sql->closeCursor(); -} -for ($i = strlen($s_datas[""]); $i != $mx_l; $i++) { - $s_datas[""] .= " "; -} - $buffer->output();