summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/validate.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-07 08:56:18 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-07 08:56:18 +0000
commit23bdb608fe93cf4a98683dae0a09fcca30aa9d1d (patch)
treefa3b2460d754189c42780f7da474fb6599240856 /frontends/php/include/validate.inc.php
parentdda9501aff9b7293055eee1a8c769068d3701ad7 (diff)
downloadzabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.tar.gz
zabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.tar.xz
zabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.zip
- developed frontend installation wizard (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3434 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/validate.inc.php')
-rw-r--r--frontends/php/include/validate.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/include/validate.inc.php b/frontends/php/include/validate.inc.php
index b91b300f..95ba33d9 100644
--- a/frontends/php/include/validate.inc.php
+++ b/frontends/php/include/validate.inc.php
@@ -331,12 +331,13 @@
function invalid_url()
{
+ include_once "include/page_header.php";
unset_all();
show_error_message(S_INVALID_URL);
include_once "include/page_footer.php";
}
- function check_fields(&$fields)
+ function check_fields(&$fields, $show_messages=true)
{
global $_REQUEST;
@@ -370,7 +371,7 @@
invalid_url();
}
- show_messages();
+ if($show_messages) show_messages();
return ($err==ZBX_VALID_OK ? 1 : 0);
}