From ee97ed8a5ec96f91e8425846227539d2979b8b9a Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 21 Oct 2019 18:36:02 +0200 Subject: [PATCH] segunda ronda --- pandora_console/general/register.php | 10 +- .../godmode/agentes/configurar_agente.php | 4 + .../godmode/agentes/module_manager_editor.php | 3 + .../NewInstallationWelcomeWindow.class.php | 143 ++++++++++++++---- .../new_installation_welcome_window.css | 39 +++-- 5 files changed, 145 insertions(+), 54 deletions(-) diff --git a/pandora_console/general/register.php b/pandora_console/general/register.php index a938e4983d..db92829a2a 100644 --- a/pandora_console/general/register.php +++ b/pandora_console/general/register.php @@ -173,13 +173,9 @@ if (!$config['disabled_newsletter']) { } } -$welcome = !$registration && $initial; -$welcome = true; -if ($welcome && users_is_admin()) { - $welcome = new NewInstallationWelcomeWindow( - 'general/new_installation_welcome_window' - ); - $welcome->run(); +$welcome = !$registration && !$initial; +if ($welcome) { + $welcome = NewInstallationWelcomeWindow::actions_done($welcome); } $newsletter = null; diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 55116f940a..1bbf1384c8 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -2266,6 +2266,10 @@ if ($updateGIS) { // ----------------------------------- // Load page depending on tab selected // ----------------------------------- +if (!$_SESSION['create_module']) { + $edit_module = true; +} + switch ($tab) { case 'main': include 'agent_manager.php'; diff --git a/pandora_console/godmode/agentes/module_manager_editor.php b/pandora_console/godmode/agentes/module_manager_editor.php index 13c313892a..feb52a945c 100644 --- a/pandora_console/godmode/agentes/module_manager_editor.php +++ b/pandora_console/godmode/agentes/module_manager_editor.php @@ -321,6 +321,9 @@ if ($id_agent_module) { } else { if (!isset($moduletype)) { $moduletype = (string) get_parameter('moduletype'); + if (!$_SESSION['create_module']) { + $moduletype = 'networkserver'; + } // Clean up specific network modules fields $name = ''; diff --git a/pandora_console/include/class/NewInstallationWelcomeWindow.class.php b/pandora_console/include/class/NewInstallationWelcomeWindow.class.php index 9f4f0202f5..7eab288cc6 100644 --- a/pandora_console/include/class/NewInstallationWelcomeWindow.class.php +++ b/pandora_console/include/class/NewInstallationWelcomeWindow.class.php @@ -108,7 +108,7 @@ class NewInstallationWelcomeWindow extends Wizard { ui_require_css_file('new_installation_welcome_window'); - echo '