summaryrefslogtreecommitdiffstats
path: root/frontends/php/config.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-08-22 05:52:38 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-08-22 05:52:38 +0000
commite49a079e95cb3a88f53a4d9544af25c7221f6eb7 (patch)
treebcea1c42ba10433b11b61f9657d7a6b538012bab /frontends/php/config.php
parent4e3d34bb74784f621b5652414f977bb7d3a8829c (diff)
Getting rid of dependency on register_globals in php.ini
git-svn-id: svn://svn.zabbix.com/trunk@460 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/config.php')
-rw-r--r--frontends/php/config.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php
index c702348a..0d4002ff 100644
--- a/frontends/php/config.php
+++ b/frontends/php/config.php
@@ -17,9 +17,11 @@
?>
<?
- if(isset($register) && ($register=="update"))
+ if(isset($HTTP_POST_VARS["register"]) && ($HTTP_POST_VARS["register"]=="update"))
{
- $result=update_config($smtp_server,$smtp_helo,$smtp_email,$alarm_history,$alert_history);
+ $result=update_config($HTTP_POST_VARS["smtp_server"],$HTTP_POST_VARS["smtp_helo"],
+ $HTTP_POST_VARS["smtp_email"],$HTTP_POST_VARS["alarm_history"],
+ $HTTP_POST_VARS["alert_history"]);
show_messages($result, "Configuration updated", "Configuation was NOT updated");
}
?>