summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-22 09:26:40 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-22 09:26:40 +0000
commitf7c3e0f85effdc7624e46e8a57790b3616aad7e6 (patch)
tree862387f58675abd4d079360092a88826ce1b6964 /frontends/php/include/config.inc.php
parent12170ad48acd8b96fd576e215a63073cb68b7227 (diff)
downloadzabbix-f7c3e0f85effdc7624e46e8a57790b3616aad7e6.tar.gz
zabbix-f7c3e0f85effdc7624e46e8a57790b3616aad7e6.tar.xz
zabbix-f7c3e0f85effdc7624e46e8a57790b3616aad7e6.zip
- [DEV-137] JS updater is immune to servers warnings (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5644 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index dd8207db..1af16266 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -181,6 +181,13 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
}
//*/
+// Ajax do not need warnings or Errors
+ if((isset($DENY_GUI) || isset($show_setup) || isset($show_warning)) && (PAGE_TYPE_HTML <> detect_page_type(PAGE_TYPE_HTML))){
+ header('Ajax-response: false');
+ exit();
+ }
+//---
+
if(isset($DENY_GUI)){
unset($show_warning);
include_once("warning.php");