* [gentoo-commits] gentoo-x86 commit in net-analyzer/centreon/files: centreon-1.4.2.7-dashboard-backdoor.patch
@ 2009-04-19 17:37 Benedikt Boehm (hollow)
0 siblings, 0 replies; only message in thread
From: Benedikt Boehm (hollow) @ 2009-04-19 17:37 UTC (permalink / raw
To: gentoo-commits
hollow 09/04/19 17:37:25
Added: centreon-1.4.2.7-dashboard-backdoor.patch
Log:
version bump; fixes #261509
(Portage version: 2.2_rc28/cvs/Linux i686)
Revision Changes Path
1.1 net-analyzer/centreon/files/centreon-1.4.2.7-dashboard-backdoor.patch
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
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
Index: centreon-1.4.2.7-dashboard-backdoor.patch
===================================================================
Index: centreon-1.4.2.8/www/include/reporting/dashboard/ajaxReporting_js.php
===================================================================
--- centreon-1.4.2.8/www/include/reporting/dashboard/ajaxReporting_js.php (revision 3498)
+++ centreon-1.4.2.8/www/include/reporting/dashboard/ajaxReporting_js.php (revision 7115)
@@ -44,5 +44,5 @@
- var arg = 'oreonPath=<?=$oreon->optGen["oreon_path"]?>&hostID=<?=$host_id?>&color=<?=$color.$today_var?>';
+ var arg = 'hostID=<?=$host_id?>&color=<?=$color.$today_var?>';
tl = Timeline.create(document.getElementById("my-timeline"), bandInfos);
Index: centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlHost.php
===================================================================
--- centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlHost.php (revision 3498)
+++ centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlHost.php (revision 7115)
@@ -27,6 +27,5 @@
- 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"]))
- {
+ if (isset($_GET["hostID"]) && isset($_GET["color"]) && isset($_GET["today_up"])&& isset($_GET["today_down"])&& isset($_GET["today_unreachable"])&& isset($_GET["today_pending"])){
list($colorUP, $colorDOWN, $colorUNREACHABLE, $colorUNKNOWN)= split (":", $_GET["color"], 4);
@@ -37,6 +36,6 @@
#$colorUNKNOWN = "red";
- $oreonPath = $_GET["oreonPath"];
- include_once($oreonPath . "/www/oreon.conf.php");
+ include_once("../../../oreon.conf.php");
+
$dsn = array(
'phptype' => 'mysql',
Index: centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlService.php
===================================================================
--- centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlService.php (revision 3498)
+++ centreon-1.4.2.8/www/include/reporting/dashboard/GetXmlService.php (revision 7115)
@@ -27,12 +27,10 @@
- if(isset($_GET["oreonPath"]) && 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"]))
- {
+ 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"])){
+
list($colorOK, $colorWARNING, $colorCRITICAL, $colorPENDING, $colorUNKNOWN)= split (":", $_GET["color"], 5);
- $oreonPath = $_GET["oreonPath"];
- include_once($oreonPath . "/www/oreon.conf.php");
+ include_once("../../../oreon.conf.php");
+
$dsn = array(
'phptype' => 'mysql',
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-19 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 17:37 [gentoo-commits] gentoo-x86 commit in net-analyzer/centreon/files: centreon-1.4.2.7-dashboard-backdoor.patch Benedikt Boehm (hollow)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox