'.__('There was a problem loading agent').''; return; } if (! give_acl ($config["id_user"], $agent["id_grupo"], "AR")) { audit_db ($config["id_user"], $REMOTE_ADDR, "ACL Violation", "Trying to access Agent General Information"); require_once ("general/noaccess.php"); return; } //Floating div echo '
'.__('Agent name').' | '; echo ''.$agent["nombre"].' | '; echo ''; echo ' |
'.__('IP Address').' | '; echo ''; print_select (get_agent_addresses ($id_agente), "not_used", get_agent_address ($id_agente)); echo ' | |
'.__('OS').' | '; echo ''.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').' | '; echo ''.get_agent_name ($agent["id_parent"]).' | |
'.__('Interval').' | '; echo ''.human_time_description_raw ($agent["intervalo"]).' | |
'.__('Description').' | '; echo ''.$agent["comentarios"].' | |
'.__('Group').' | '; echo ''; echo print_group_icon ($agent["id_grupo"], true); echo ' ('; echo get_group_name ($agent["id_grupo"]); echo ') | |
'.__('Agent Version'). ' | '; echo ''.$agent["agent_version"].' | |
'.__('Position (Long, Lat)'). ' | '; echo ''; if ($dataPositionAgent === false) { echo __('There is no GIS data.'); } else { echo ''.$dataPositionAgent['stored_longitude'].', '.$dataPositionAgent['stored_latitude'].''; } echo ' | |
'.__('Last contact')." / ".__('Remote').' | '; print_timestamp ($agent["ultimo_contacto"]); echo " / "; if ($agent["ultimo_contacto_remoto"] == "0000-00-00 00:00:00") { echo __('Never'); } else { echo $agent["ultimo_contacto_remoto"]; } echo ' | |
'.__('Timezone Offset'). ' | '; echo ''.$agent["timezone_offset"].' | |
'.__('Next agent contact').' | '; echo '