'.__('There was a problem loading agent').''; return; } if (! check_acl ($config["id_user"], $agent["id_grupo"], "AR")) { db_pandora_audit("ACL Violation", "Trying to access Agent General Information"); require_once ("general/noaccess.php"); return; } // Blank space below title, DONT remove this, this // Breaks the layout when Flash charts are enabled :-o echo '
 
'; //Floating div echo '
'; echo ''.__('Agent access rate (24h)').'
'; graphic_agentaccess($id_agente, 280, 110, 86400); echo '
 
'; echo ''.__('Events generated -by module-').'
'; echo graph_event_module (290, 120, $id_agente); if ($config['flash_charts']) { echo graphic_agentevents ($id_agente, 290, 60, 86400); } echo '
'; echo '
'; echo ''; //Agent name echo ''; if ($agent['disabled']) { $cellName = "" . ui_print_agent_name ($agent["id_agente"], true, 500, "upper", true) . ui_print_help_tip(__('Disabled'), true) . ""; } else { $cellName = ui_print_agent_name ($agent["id_agente"], true, 500, "upper", true); } echo ''; echo ''; //Addresses echo ''; echo ''; //OS echo ''; echo ''; // Parent echo ''; echo ''; // Agent Interval echo ''; echo ''; // Comments echo ''; echo ''; // Group echo ''; echo ''; // Agent version echo ''; echo ''; // Position Information if ($config['activate_gis']) { $dataPositionAgent = gis_get_data_last_position_agent($agent['id_agente']); echo ''; echo ''; } // Last contact echo ''; // Timezone Offset if ($agent['timezone_offset'] != 0) { echo ''; echo ''; } // Next contact (agent) $progress = agents_get_next_contact($id_agente); echo ''; echo ''; // Custom fields $fields = db_get_all_rows_filter('tagent_custom_fields', array('display_on_front' => 1)); if ($fields === false) { $fields = array (); } if ($fields) foreach($fields as $field) { echo ''; $custom_value = db_get_value_filter('description', 'tagent_custom_data', array('id_field' => $field['id_field'], 'id_agent' => $id_agente)); if($custom_value === false || $custom_value == '') { $custom_value = '-'.__('empty').'-'; } echo ''; } //End of table echo '
'.__('Agent name').''.$cellName.'' . html_print_image("images/refresh.png", true, array("border" => '0', "title" => __('Refresh data'), "alt" => "")) . ' '; echo '' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Flag'), "alt" => "")) . '
'.__('IP Address').''; $ips = array(); $addresses = agents_get_addresses ($id_agente); $address = agents_get_address($id_agente); if (!empty($addresses)) { $ips = $addresses; } if (!empty($address)) { $ips = array_merge((array)agents_get_address ($id_agente), $ips); } $ips = array_unique($ips); html_print_select($ips, "not_used", agents_get_address ($id_agente)); echo '
'.__('OS').'' . ui_print_os_icon ($agent["id_os"], true, true); // Want to print last 15 characters of OS version, or start from 0 if smaller $osversion_offset = strlen($agent["os_version"]); if ($osversion_offset > 15) $osversion_offset = $osversion_offset - 15; else $osversion_offset = 0; echo ' '.substr($agent["os_version"],$osversion_offset,15).'
'.__('Parent').''.agents_get_name ($agent["id_parent"]).'
'.__('Interval').''.human_time_description_raw ($agent["intervalo"]).'
'.__('Description').''.$agent["comentarios"].'
'.__('Group').''; echo ui_print_group_icon ($agent["id_grupo"], true); echo ' ('; echo ui_print_truncate_text(groups_get_name ($agent["id_grupo"])); echo ')
'.__('Agent Version'). ''.$agent["agent_version"].'
'.__('Position (Long, Lat)'). ''; if ($dataPositionAgent === false) { echo __('There is no GIS data.'); } else { echo ''; if ($dataPositionAgent['description'] != "") echo $dataPositionAgent['description']; else echo $dataPositionAgent['stored_longitude'].', '.$dataPositionAgent['stored_latitude']; echo ""; } echo '
'.__('Last contact')." / ".__('Remote').''; ui_print_timestamp ($agent["ultimo_contacto"]); echo " / "; if ($agent["ultimo_contacto_remoto"] == "01-01-1970 00:00:00") { echo __('Never'); } else { echo $agent["ultimo_contacto_remoto"]; } echo '
'.__('Timezone Offset'). ''.$agent["timezone_offset"].'
'.__('Next agent contact').'' . progress_bar($progress, 200, 20) . '
'.$field['name'] . ui_print_help_tip (__('Custom field'), true).''.$custom_value.'
'; ?>