diff --git a/pandora_console/godmode/setup/license.php b/pandora_console/godmode/setup/license.php index 2bc556ac62..518d4bab97 100644 --- a/pandora_console/godmode/setup/license.php +++ b/pandora_console/godmode/setup/license.php @@ -68,7 +68,7 @@ if ($renew_license_result !== null) { } if ($update_settings) { - if (!is_metaconsole()) { + if (is_metaconsole() === false) { // Node. foreach ($_POST['keys'] as $key => $value) { db_process_sql_update( diff --git a/pandora_console/images/free_license.svg b/pandora_console/images/free_license.svg new file mode 100644 index 0000000000..a6a7ab5bb3 --- /dev/null +++ b/pandora_console/images/free_license.svg @@ -0,0 +1,85 @@ + + + 771F63E3-1B6F-4CAC-94BD-C4F0EC2141AA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/include/javascript/jquery.pandora.js b/pandora_console/include/javascript/jquery.pandora.js index 5b39a98631..f1cffbb125 100644 --- a/pandora_console/include/javascript/jquery.pandora.js +++ b/pandora_console/include/javascript/jquery.pandora.js @@ -221,6 +221,31 @@ $(document).ready(function() { } } + if ($("#license_dialog_message").length) { + let height = 570; + + $("#license_dialog_message").dialog({ + dialogClass: "no-close", + closeOnEscape: false, + resizable: false, + draggable: true, + modal: true, + height: "auto", + width: 800, + overlay: { + opacity: 0.5, + background: "black" + }, + open: function() { + $("#ok_buttom").show(); + } + }); + + $("#ok_buttom").click(function() { + $("#license_dialog_message").dialog("close"); + }); + } + if ($("#msg_change_password").length) { $("#msg_change_password").dialog({ resizable: false, diff --git a/pandora_console/index.php b/pandora_console/index.php index 1a70cbcd48..c3c3ac642a 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -662,6 +662,7 @@ if (isset($config['id_user']) === false) { db_logon($nick_in_db, $_SERVER['REMOTE_ADDR']); $_SESSION['id_usuario'] = $nick_in_db; $config['id_user'] = $nick_in_db; + $_SESSION['logged'] = true; config_prepare_expire_time_session(true); // Check if connection goes through F5 balancer. If it does, then