load_tables(); } $id = get_parameter('id'); $label = get_parameter ("label"); $last_data = get_parameter("last_data", ''); $last_timestamp = get_parameter("timestamp", ''); // FIXME: Support to old call snapshow_view calls. Remove it when all are migrated if (empty($last_data)) { $row = db_get_row_sql("SELECT * FROM tagente_estado WHERE id_agente_modulo = $id"); $last_data = io_safe_output($row["datos"]); $last_timestamp = $row["timestamp"]; } // TODO - Put ACL here ?> 0) { $query = ui_get_url_refresh (false); echo ''; } ?> <?php echo __("%s Snapshot data view for module (%s)", get_product_name(), $label); ?> "; echo __("Current data at"); echo " "; echo $last_timestamp; echo ""; if (is_image_data($last_data)) { echo '
image
'; } else { $datos = preg_replace ('//', '>', $datos); $datos = preg_replace ('/\n/i','
',$datos); $datos = preg_replace ('/\s/i',' ',$datos); echo "
"; echo $last_data; echo "
"; ?>