[prev in list] [next in list] [prev in thread] [next in thread]
List: os-sim-commits
Subject: [Os-sim-commits] os-sim/www top.php,1.169,1.170
From: Dominique Karg <dkarg () users ! sourceforge ! net>
Date: 2009-04-29 9:51:25
Message-ID: E1Lz6Rp-0001iT-Ox () 23jxhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Update of /cvsroot/os-sim/os-sim/www
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6568/www
Modified Files:
top.php
Log Message:
Link to compliance / BI suite
Index: top.php
===================================================================
RCS file: /cvsroot/os-sim/os-sim/www/top.php,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- top.php 22 Apr 2009 10:31:00 -0000 1.169
+++ top.php 29 Apr 2009 09:51:23 -0000 1.170
@@ -223,9 +223,40 @@
"url" => "javascript:new_wind('http://ossim.net/dokuwiki/doku.php?id=user_manual:monitors','Help');"
);
+/* Generate reporting server url */
+
+switch($conf->get_conf("bi_type")){
+case "jasperserver":
+default:
+if($conf->get_conf("bi_host") == "localhost"){
+$bi_host = $_SERVER["SERVER_ADDR"];
+} else {
+$bi_host = $conf->get_conf("bi_host");
+}
+
+if(!strstr($bi_host,"http")){
+$reporting_link = "http://";
+}
+
+$bi_link = $conf->get_conf("bi_link");
+$bi_link = str_replace("USER",$conf->get_conf("bi_user"),$bi_link);
+$bi_link = str_replace("PASSWORD",$conf->get_conf("bi_pass"),$bi_link);
+
+$reporting_link .= $bi_host;
+$reporting_link .= ":";
+$reporting_link .= $conf->get_conf("bi_port");
+$reporting_link .= $bi_link;
+
+}
/* Reports */
- if (Session::menu_perms("MenuReports", "ReportsHostReport"))
+ if (Session::menu_perms("MenuReports", "ReportsReportServer"))
+ $menu["Reports"][] = array (
+ "name" => gettext("Reporting Server"),
+ "id" => "Reporting Server",
+ "url" => "$reporting_link"
+ );
+if (Session::menu_perms("MenuReports", "ReportsHostReport"))
$menu["Reports"][] = array (
"name" => gettext("Host Report"),
"id" => "Host Report",
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Os-sim-commits mailing list
Os-sim-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/os-sim-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic