summaryrefslogtreecommitdiffstats
path: root/frontends/php/config.html
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-04-16 17:45:23 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-04-16 17:45:23 +0000
commita2f46eff39e547e40d042ce97851805b9f9efea4 (patch)
tree674ce1bfe3af9dd6ca058b44d5d0fdf9e7b4ba29 /frontends/php/config.html
parenta23282b7b988f6bbe5e7f98170c88e0dfe24fc3b (diff)
Added PostgreSQL support for PHP frontend. Added database abstraction layer in frontend/php/include/db.inc.
git-svn-id: svn://svn.zabbix.com/trunk@42 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/config.html')
-rw-r--r--frontends/php/config.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/frontends/php/config.html b/frontends/php/config.html
index 5fae9542..0340e3e5 100644
--- a/frontends/php/config.html
+++ b/frontends/php/config.html
@@ -27,12 +27,11 @@
?>
<?
- $result=mysql_query("select smtp_server,smtp_helo,smtp_email,password_required from config",$mysql);
- $row=mysql_fetch_row($result);
- $smtp_server=$row[0];
- $smtp_helo=$row[1];
- $smtp_email=$row[2];
- $password_required=$row[3];
+ $result=DBselect("select smtp_server,smtp_helo,smtp_email,password_required from config");
+ $smtp_server=DBget_field($result,0,0);
+ $smtp_helo=DBget_field($result,0,1);
+ $smtp_email=DBget_field($result,0,2);
+ $password_required=DBget_field($result,0,3);
?>
<?