Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/centreon/files: centreon-1.4.2.7-dashboard-backdoor.patch
Date: Sun, 19 Apr 2009 17:37:27
Message-Id: E1LvaxJ-0002Nk-62@stork.gentoo.org
1 hollow 09/04/19 17:37:25
2
3 Added: centreon-1.4.2.7-dashboard-backdoor.patch
4 Log:
5 version bump; fixes #261509
6 (Portage version: 2.2_rc28/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 net-analyzer/centreon/files/centreon-1.4.2.7-dashboard-backdoor.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/centreon/files/centreon-1.4.2.7-dashboard-backdoor.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/centreon/files/centreon-1.4.2.7-dashboard-backdoor.patch?rev=1.1&content-type=text/plain
13
14 Index: centreon-1.4.2.7-dashboard-backdoor.patch
15 ===================================================================
16 Index: centreon-1.4.2.8/www/include/reporting/dashboard/ajaxReporting_js.php
17 ===================================================================
18 --- centreon-1.4.2.8/www/include/reporting/dashboard/ajaxReporting_js.php (revision 3498)
19 +++ centreon-1.4.2.8/www/include/reporting/dashboard/ajaxReporting_js.php (revision 7115)
20 @@ -44,5 +44,5 @@
21
22
23 - var arg = 'oreonPath=<?=$oreon->optGen["oreon_path"]?>&hostID=<?=$host_id?>&color=<?=$color.$today_var?>';
24 + var arg = 'hostID=<?=$host_id?>&color=<?=$color.$today_var?>';
25
26 tl = Timeline.create(document.getElementById("my-timeline"), bandInfos);
27 Index: centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlHost.php
28 ===================================================================
29 --- centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlHost.php (revision 3498)
30 +++ centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlHost.php (revision 7115)
31 @@ -27,6 +27,5 @@
32
33
34 - if(isset($_GET["oreonPath"]) && isset($_GET["hostID"]) && isset($_GET["color"]) && isset($_GET["today_up"])&& isset($_GET["today_down"])&& isset($_GET["today_unreachable"])&& isset($_GET["today_pending"]))
35 - {
36 + if (isset($_GET["hostID"]) && isset($_GET["color"]) && isset($_GET["today_up"])&& isset($_GET["today_down"])&& isset($_GET["today_unreachable"])&& isset($_GET["today_pending"])){
37 list($colorUP, $colorDOWN, $colorUNREACHABLE, $colorUNKNOWN)= split (":", $_GET["color"], 4);
38
39 @@ -37,6 +36,6 @@
40 #$colorUNKNOWN = "red";
41
42 - $oreonPath = $_GET["oreonPath"];
43 - include_once($oreonPath . "/www/oreon.conf.php");
44 + include_once("../../../oreon.conf.php");
45 +
46 $dsn = array(
47 'phptype' => 'mysql',
48 Index: centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlService.php
49 ===================================================================
50 --- centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlService.php (revision 3498)
51 +++ centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlService.php (revision 7115)
52 @@ -27,12 +27,10 @@
53
54
55 - if(isset($_GET["oreonPath"]) && isset($_GET["hostID"]) && isset($_GET["serviceID"]) &&
56 - isset($_GET["color"]) && isset($_GET["today_ok"])&& isset($_GET["today_critical"])&&
57 - isset($_GET["today_unknown"])&& isset($_GET["today_pending"]))
58 - {
59 + if (isset($_GET["hostID"]) && isset($_GET["serviceID"]) && isset($_GET["color"]) && isset($_GET["today_ok"])&& isset($_GET["today_critical"]) && isset($_GET["today_unknown"])&& isset($_GET["today_pending"])){
60 +
61 list($colorOK, $colorWARNING, $colorCRITICAL, $colorPENDING, $colorUNKNOWN)= split (":", $_GET["color"], 5);
62
63 - $oreonPath = $_GET["oreonPath"];
64 - include_once($oreonPath . "/www/oreon.conf.php");
65 + include_once("../../../oreon.conf.php");
66 +
67 $dsn = array(
68 'phptype' => 'mysql',