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:
parent
85413ab82b
commit
b7ecca62cb
|
@ -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,
|
||||
|
|
|
@ -1689,9 +1689,10 @@ 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) {
|
||||
if ($server_id > 0) {
|
||||
$meta = true;
|
||||
}
|
||||
else {
|
||||
|
@ -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 ();
|
||||
|
@ -1816,7 +1818,7 @@ function events_page_details ($event, $server = "") {
|
|||
$table_details->style[1] = 'text-align: left;';
|
||||
$table_details->class = "databox alternate";
|
||||
|
||||
switch($event['event_type']) {
|
||||
switch ($event['event_type']) {
|
||||
case 'going_unknown':
|
||||
case 'going_up_warning':
|
||||
case 'going_down_warning':
|
||||
|
@ -1886,21 +1888,22 @@ function events_page_details ($event, $server = "") {
|
|||
// Module name
|
||||
$data = array();
|
||||
$data[0] = '<div style="font-weight:normal; margin-left: 20px;">'.__('Name').'</div>';
|
||||
$data[1] = '<a href="'.$serverstring.'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$event["id_agente"].'&tab=data'.$hashstring.'"><b>';
|
||||
$data[1] = '<a href="' . $serverstring . 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$event["id_agente"].'&tab=data'.$hashstring.'"><b>';
|
||||
$data[1] .= $module['nombre'];
|
||||
$data[1] .= '</b></a>';
|
||||
$table_details->data[] = $data;
|
||||
|
||||
// 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) {
|
||||
if ($id_module_group == 0) {
|
||||
$data[1] = __('No assigned');
|
||||
}
|
||||
else {
|
||||
$module_group = db_get_value('name', 'tmodule_group', 'id_mg', $id_module_group);
|
||||
$data[1] = '<a href="'.$serverstring.'index.php?sec=estado&sec2=operation/agentes/status_monitor&status=-1&modulegroup=' . $id_module_group . $hashstring.'">';
|
||||
$data[1] = '<a href="'.$serverstring . 'index.php?sec=estado&sec2=operation/agentes/status_monitor&status=-1&modulegroup=' . $id_module_group . $hashstring.'">';
|
||||
$data[1] .= $module_group;
|
||||
$data[1] .= '</a>';
|
||||
}
|
||||
|
@ -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"])) {
|
||||
|
|
|
@ -34,7 +34,7 @@ if (! check_acl ($config["id_user"], 0, "ER")) {
|
|||
|
||||
// Set metaconsole mode
|
||||
$meta = false;
|
||||
if(enterprise_installed() && defined("METACONSOLE")) {
|
||||
if (enterprise_installed() && defined("METACONSOLE")) {
|
||||
$meta = true;
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ $history = (bool) get_parameter('history', 0);
|
|||
|
||||
$readonly = false;
|
||||
|
||||
if(!$meta) {
|
||||
if (!$meta) {
|
||||
if (isset($config['event_replication']) &&
|
||||
$config['event_replication'] == 1) {
|
||||
|
||||
|
@ -226,7 +226,7 @@ $params = "search=" . rawurlencode(io_safe_input($search)) .
|
|||
"&severity=" . $severity .
|
||||
"&status=" . $status .
|
||||
"&ev_group=" . $ev_group .
|
||||
"&refr=" . $config["refr"] .
|
||||
"&refr=" . (int)get_parameter("refr", 0) .
|
||||
"&id_agent=" . $id_agent .
|
||||
"&pagination=" . $pagination .
|
||||
"&group_rep=" . $group_rep .
|
||||
|
@ -245,7 +245,7 @@ $params = "search=" . rawurlencode(io_safe_input($search)) .
|
|||
"&open_filter=" . $open_filter .
|
||||
"&pure=" . $config["pure"];
|
||||
|
||||
if($meta) {
|
||||
if ($meta) {
|
||||
$params .= "&text_agent=" . $text_agent;
|
||||
}
|
||||
|
||||
|
|
|
@ -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&sec2=operation/events/events&refr='.$config["refr"].'&pure='.$config["pure"].'&section=' . $section . '&history='.(int)$history.'">';
|
||||
echo '<form id="form_filter" method="post" action="index.php?sec=eventos&sec2=operation/events/events&refr='. (int)get_parameter("refr", 0) .'&pure='.$config["pure"].'&section=' . $section . '&history='.(int)$history.'">';
|
||||
|
||||
// Hidden field with the loaded filter name
|
||||
html_print_input_hidden('id_name', $id_name);
|
||||
|
|
Loading…
Reference in New Issue