summaryrefslogtreecommitdiffstats
path: root/frontends/php/warning.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/warning.php')
-rw-r--r--frontends/php/warning.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/warning.php b/frontends/php/warning.php
index b0adfc48..c749c15c 100644
--- a/frontends/php/warning.php
+++ b/frontends/php/warning.php
@@ -34,6 +34,7 @@ $refresh_rate = 30; //seconds
<?php
$fields=array(
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
+ "warning_msg"=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL),
"message"=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL),
"retry"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL),
"cancel"=> array(T_ZBX_STR, O_OPT, P_SYS|P_ACT, NULL, NULL)
@@ -51,8 +52,6 @@ $refresh_rate = 30; //seconds
$USER_DETAILS["refresh"] = $refresh_rate;
include_once "include/page_header.php";
unset($USER_DETAILS);
-
-// if(isset($_REQUEST['message'])) show_error_message($_REQUEST['message']);
insert_showhint_javascript();
@@ -66,8 +65,10 @@ unset($USER_DETAILS);
$table->AddRow(SPACE);
+ $warning_msg=(isset($_REQUEST['warning_msg']))?($_REQUEST['warning_msg']):(S_ZABBIX_IS_UNAVAILABLE.'!');
+
$img = new CImg('./images/general/warning16r.gif','warning',16,16,'img');
- $msg = new CSpan(bold(SPACE.S_ZABBIX_IS_UNAVAILABLE.'!'));
+ $msg = new CSpan(bold(SPACE.$warning_msg));
$msg->AddOption('style','line-height: 20px; vertical-align: top;');
$table->AddRow(new CCol(array(