diff options
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/config.inc.php | 14 | ||||
| -rw-r--r-- | frontends/php/include/db.inc.php | 10 |
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(" "," ",$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 =""; |
