From c00c8a15e437f89d868f20eeb9449eae10bce955 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Thu, 20 Nov 2003 18:02:51 +0000 Subject: - fixes for graph time navigation (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1048 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/config.inc.php | 14 ++++++++++++++ frontends/php/include/db.inc.php | 10 +++++----- 2 files changed, 19 insertions(+), 5 deletions(-) (limited to 'frontends/php/include') 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(" "," ",$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 @@ **/ ?>