summaryrefslogtreecommitdiffstats
path: root/frontends/php/config.html
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-03-31 10:06:10 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-03-31 10:06:10 +0000
commitc07070ac96e446bbdeae5bec1dbcb0af6f48896e (patch)
tree98d7d8395173057b0b86a5973c0213a7f766b3de /frontends/php/config.html
parent18eabc5239fa565a90b963c533330b34e16b2805 (diff)
Quite a lot of changes:
- added table groups - changed structure of table users - added authorisation mechanism - menu highlighting in PHP frontend git-svn-id: svn://svn.zabbix.com/trunk@19 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/config.html')
-rw-r--r--frontends/php/config.html26
1 files changed, 22 insertions, 4 deletions
diff --git a/frontends/php/config.html b/frontends/php/config.html
index e165adcb..5fae9542 100644
--- a/frontends/php/config.html
+++ b/frontends/php/config.html
@@ -1,7 +1,9 @@
<?
+ $page["title"] = "Configuration of Zabbix";
+ $page["file"] = "config.html";
+
include "include/config.inc";
- $title = "Configuration of Zabbix";
- show_header($title,0);
+ show_header($page["title"],0);
?>
<?
@@ -12,16 +14,25 @@
<?
if($register=="update")
{
- update_config($smtp_server,$smtp_helo,$smtp_email);
+ if($password_required=="true")
+ {
+ $password_required="1";
+ }
+ else
+ {
+ $password_required="0";
+ }
+ update_config($smtp_server,$smtp_helo,$smtp_email,$password_required);
}
?>
<?
- $result=mysql_query("select smtp_server,smtp_helo,smtp_email from config",$mysql);
+ $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];
?>
<?
@@ -44,6 +55,13 @@
show_table2_h_delimiter();
echo "<input name=\"smtp_email\" value=\"$smtp_email\"size=40>";
+ show_table2_v_delimiter();
+ echo "Password required ?";
+ show_table2_h_delimiter();
+ echo "<input type=\"checkbox\" ";
+ if($password_required==1) { echo "checked "; }
+ echo "name=\"password_required\" VALUE=\"true\">";
+
show_table2_v_delimiter2();
echo "<input type=\"submit\" name=\"register\" value=\"update\">";