$page["title"] = "Configuration of Zabbix";
$page["file"] = "config.html";
include "include/config.inc";
show_header($page["title"],0,0);
?>
if(isset($register) && ($register=="update"))
{
if(isset($password_required) && ($password_required=="true"))
{
$password_required="1";
}
else
{
$password_required="0";
}
$result=update_config($smtp_server,$smtp_helo,$smtp_email,$password_required);
show_messages($result, "Configuration updated", "Configuation was NOT updated");
}
?>
show_table_header("CONFIGURATION OF ZABBIX");
echo "
";
?>
$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);
?>
show_table2_header_begin();
echo "Configuration";
show_table2_v_delimiter();
echo "