2013-05-16 Miguel de Dios <miguel.dedios@artica.es>

* operation/agentes/stat_win.php: disabled show events when the
	pandora node is set replication events.
	
	Fixes: #2216
	
	* operation/events/events.php: improve the source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-05-16 08:58:18 +00:00
parent 249f0b38f9
commit d3d36ae09e
3 changed files with 23 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2013-05-16 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/stat_win.php: disabled show events when the
pandora node is set replication events.
Fixes: #2216
* operation/events/events.php: improve the source code style.
2013-05-16 Miguel de Dios <miguel.dedios@artica.es> 2013-05-16 Miguel de Dios <miguel.dedios@artica.es>
* ajax.php: fixed PHP warning when the HTTP_REFERER not set. * ajax.php: fixed PHP warning when the HTTP_REFERER not set.

View File

@ -281,7 +281,18 @@ $label = base64_decode(get_parameter('label', ''));
$data = array(); $data = array();
$data[0] = __('Show events'); $data[0] = __('Show events');
$data[1] = html_print_checkbox ("draw_events", 1, (bool) $draw_events, true); $disabled = false;
if (isset($config['event_replication'])) {
if ($config['event_replication']) {
$disabled = true;
}
}
$data[1] = html_print_checkbox ("draw_events", 1,
(bool)$draw_events, true, $disabled);
if ($disabled) {
$data[1] .= ui_print_help_tip(
__('Show events is disabled because this Pandora node is set the event replication.'), true);
}
$table->data[] = $data; $table->data[] = $data;
$table->rowclass[] = ''; $table->rowclass[] = '';