[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.170,1.171
From:       Dominique Karg <dkarg () users ! sourceforge ! net>
Date:       2009-04-29 10:03:58
Message-ID: E1Lz6dy-0001r7-P3 () 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-serv7123

Modified Files:
	top.php 
Log Message:
Fix var names and get_conf errors


Index: top.php
===================================================================
RCS file: /cvsroot/os-sim/os-sim/www/top.php,v
retrieving revision 1.170
retrieving revision 1.171
diff -u -d -r1.170 -r1.171
--- top.php	29 Apr 2009 09:51:23 -0000	1.170
+++ top.php	29 Apr 2009 10:03:56 -0000	1.171
@@ -225,26 +225,26 @@
 
 /* Generate reporting server url */
 
-switch($conf->get_conf("bi_type")){
+switch($conf->get_conf("bi_type", FALSE)){
 case "jasperserver":
 default:
-if($conf->get_conf("bi_host") == "localhost"){
+if($conf->get_conf("bi_host", FALSE) == "localhost"){
 $bi_host = $_SERVER["SERVER_ADDR"];
 } else {
-$bi_host = $conf->get_conf("bi_host");
+$bi_host = $conf->get_conf("bi_host", FALSE);
 }
 
 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);
+$bi_link = $conf->get_conf("bi_link", FALSE);
+$bi_link = str_replace("USER",$conf->get_conf("bi_user", FALSE),$bi_link);
+$bi_link = str_replace("PASSWORD",$conf->get_conf("bi_pass", FALSE),$bi_link);
 
 $reporting_link .= $bi_host;
 $reporting_link .= ":";
-$reporting_link .= $conf->get_conf("bi_port");
+$reporting_link .= $conf->get_conf("bi_port", FALSE);
 $reporting_link .= $bi_link;
 
 }


------------------------------------------------------------------------------
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