summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-20 18:02:51 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-20 18:02:51 +0000
commitc00c8a15e437f89d868f20eeb9449eae10bce955 (patch)
treeec8010fbca0a115a311d9a32b8835662b78e1345 /frontends/php/include
parent10d3b188830d6b91a5fd019719458558bae0d284 (diff)
downloadzabbix-c00c8a15e437f89d868f20eeb9449eae10bce955.tar.gz
zabbix-c00c8a15e437f89d868f20eeb9449eae10bce955.tar.xz
zabbix-c00c8a15e437f89d868f20eeb9449eae10bce955.zip
- fixes for graph time navigation (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1048 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc.php14
-rw-r--r--frontends/php/include/db.inc.php10
2 files changed, 19 insertions, 5 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index e51d3a1d..24ceb73d 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -30,6 +30,20 @@
return str_replace(" ","&nbsp;",$str);;
}
+ function url_param($parameter)
+ {
+ global $HTTP_GET_VARS;
+
+ if(isset($HTTP_GET_VARS[$parameter]))
+ {
+ return "&$parameter=".$HTTP_GET_VARS[$parameter];
+ }
+ else
+ {
+ return "";
+ }
+ }
+
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index 564a6fcd..f1d18eef 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -19,12 +19,12 @@
**/
?>
<?php
-// $DB_TYPE ="POSTGRESQL";
- $DB_TYPE ="MYSQL";
- $DB_SERVER ="localhost";
+ $DB_TYPE ="POSTGRESQL";
+// $DB_TYPE ="MYSQL";
+ $DB_SERVER ="127.0.0.1";
$DB_DATABASE ="zabbix";
- $DB_USER ="root";
- $DB_PASSWORD ="";
+ $DB_USER ="zabbix";
+ $DB_PASSWORD ="zabbix";
$USER_DETAILS ="";