diff --git a/pandora_console/operation/agentes/ehorus.php b/pandora_console/operation/agentes/ehorus.php index bb25f1b94c..69418f5c05 100644 --- a/pandora_console/operation/agentes/ehorus.php +++ b/pandora_console/operation/agentes/ehorus.php @@ -33,6 +33,7 @@ if (!$config['ehorus_enabled']) { /* Get the parameters */ $agent_id = (int) get_parameter('id_agente'); +$client_tab = (string) get_parameter('client_tab'); if (empty($agent_id)) { ui_print_error_message(__('Missing agent id')); @@ -126,9 +127,6 @@ catch (Exception $e) { ui_print_error_message(__('There was an error processing the response')); } -// Invalid permision -// return; - echo '
';
echo __('Remote management of this agent with eHorus');
@@ -137,49 +135,111 @@ echo '';
+echo '';
+
+$query_data = array(
+ 'agent_id' => $ehorus_agent_id,
+ 'hostname' => (string) $agent_data['serverAddress'],
+ 'port' => (int) $agent_data['serverPort'],
+ 'token' => (string) $response_auth['token'],
+ 'is_busy' => (bool) $agent_data['isBusy'],
+ 'last_connection' => (int) $agent_data['lastConnection'],
+ 'section' => $client_tab
+);
+$query = http_build_query($query_data);
+$client_url = $config['homeurl'] . 'operation/agentes/ehorus_client.php?' . $query;
-ui_require_css_file('bootstrap.min', 'include/ehorus/css/');
-ui_require_css_file('style', 'include/ehorus/css/');
-ui_require_javascript_file('bundle.min', 'include/ehorus/');
?>
\ No newline at end of file
diff --git a/pandora_console/operation/agentes/ehorus_client.php b/pandora_console/operation/agentes/ehorus_client.php
new file mode 100644
index 0000000000..af6b7708e1
--- /dev/null
+++ b/pandora_console/operation/agentes/ehorus_client.php
@@ -0,0 +1,134 @@
+
+
+
+
+
+ |