2013-04-23 Miguel de Dios <miguel.dedios@artica.es>

* operation/events/events_list.php, operation/events/events.php,
	include/functions_events.php: fixed PHP warnings.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8032 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-04-23 11:22:06 +00:00
parent 7a74b6515e
commit 5e1e067e76
4 changed files with 35 additions and 26 deletions

View File

@ -1,3 +1,8 @@
2013-04-23 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/events_list.php, operation/events/events.php,
include/functions_events.php: fixed PHP warnings.
2013-04-23 Miguel de Dios <miguel.dedios@artica.es>
* godmode/tag/tag.php: fixed the column for large list of emails,

View File

@ -1689,6 +1689,7 @@ function events_page_responses ($event) {
// If server_id > 0, is a metaconsole query
function events_get_response_target($event_id, $response_id, $server_id, $history = false) {
global $config;
$event_response = db_get_row('tevent_response','id',$response_id);
if ($server_id > 0) {
@ -1737,9 +1738,10 @@ function events_get_response_target($event_id, $response_id, $server_id, $histor
function events_page_custom_fields ($event) {
global $config;
/////////
////////////////////////////////////////////////////////////////////
// Custom fields
/////////
////////////////////////////////////////////////////////////////////
$table->width = '100%';
$table->data = array ();
@ -1805,9 +1807,9 @@ function events_page_details ($event, $server = "") {
$serverstring = "";
}
/////////
////////////////////////////////////////////////////////////////////
// Details
/////////
////////////////////////////////////////////////////////////////////
$table_details->width = '100%';
$table_details->data = array ();
@ -1893,7 +1895,8 @@ function events_page_details ($event, $server = "") {
// Module group
$data = array();
$data[0] = '<div style="font-weight:normal; margin-left: 20px;">'.__('Module group').'</div>';
$data[0] = '<div style="font-weight:normal; margin-left: 20px;">' .
__('Module group') . '</div>';
$id_module_group = $module['id_module_group'];
if ($id_module_group == 0) {
$data[1] = __('No assigned');
@ -1914,7 +1917,8 @@ function events_page_details ($event, $server = "") {
}
$graph_type = return_graphtype ($module_module_type);
$win_handle=dechex(crc32($module["id_agente_modulo"].$module["module_name"]));
$win_handle=dechex(crc32($module["id_agente_modulo"] .
$module["nombre"]));
$module_module_name = '';
if (isset($module["module_name"])) {

View File

@ -226,7 +226,7 @@ $params = "search=" . rawurlencode(io_safe_input($search)) .
"&amp;severity=" . $severity .
"&amp;status=" . $status .
"&amp;ev_group=" . $ev_group .
"&amp;refr=" . $config["refr"] .
"&amp;refr=" . (int)get_parameter("refr", 0) .
"&amp;id_agent=" . $id_agent .
"&amp;pagination=" . $pagination .
"&amp;group_rep=" . $group_rep .

View File

@ -327,7 +327,7 @@ $tabletags->rowclass[] = '';
echo '<div id="event_control" style="display:none">';
// Table for filter controls
echo '<form id="form_filter" method="post" action="index.php?sec=eventos&amp;sec2=operation/events/events&amp;refr='.$config["refr"].'&amp;pure='.$config["pure"].'&amp;section=' . $section . '&amp;history='.(int)$history.'">';
echo '<form id="form_filter" method="post" action="index.php?sec=eventos&amp;sec2=operation/events/events&amp;refr='. (int)get_parameter("refr", 0) .'&amp;pure='.$config["pure"].'&amp;section=' . $section . '&amp;history='.(int)$history.'">';
// Hidden field with the loaded filter name
html_print_input_hidden('id_name', $id_name);