From e94ed05cbd6b1ee001fb05b8eac0100d67928acb Mon Sep 17 00:00:00 2001 From: Sancho Lerena Date: Thu, 25 Sep 2014 13:45:12 +0200 Subject: [PATCH 1/2] Fixed problem with update check: cannot be disabled because variable was never checked :-O --- pandora_console/include/config_process.php | 2 +- pandora_console/index.php | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) mode change 100644 => 100755 pandora_console/index.php diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index ef090cad67..2452994e37 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -23,7 +23,7 @@ * Pandora build version and version */ $build_version = 'PC140924'; -$pandora_version = 'v5.1'; +$pandora_version = 'v5.1SP1'; // Do not overwrite default timezone set if defined. $script_tz = @date_default_timezone_get(); diff --git a/pandora_console/index.php b/pandora_console/index.php old mode 100644 new mode 100755 index eb8366535d..5178bc8a03 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -365,15 +365,18 @@ if ($process_login) { require_once("include/functions_update_manager.php"); enterprise_include_once("include/functions_update_manager.php"); - - if (enterprise_installed()) { - $result = update_manager_check_online_enterprise_packages_available(); + + if ($config["autoupdate"] == 1) { + if (enterprise_installed()) { + $result = update_manager_check_online_enterprise_packages_available(); + } + else { + $result = update_manager_check_online_free_packages_available(); + } + if ($result) + $_SESSION['new_update'] = 'new'; + } - else { - $result = update_manager_check_online_free_packages_available(); - } - if ($result) - $_SESSION['new_update'] = 'new'; //Set the initial global counter for chat. users_get_last_global_counter('session'); From 69d4d325a48ae854047e9101233b4f60700d650a Mon Sep 17 00:00:00 2001 From: Sancho Lerena Date: Thu, 25 Sep 2014 18:51:37 +0200 Subject: [PATCH 2/2] Missing update of post_process in tagente_modulo. --- pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql index 8608e47282..018f876289 100644 --- a/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql @@ -233,7 +233,7 @@ DELETE FROM `trecon_script` WHERE id_recon_script=1; -- --------------------------------------------------------------------- -- Table `tagente_modulo` -- --------------------------------------------------------------------- -ALTER TABLE tagente_modulo MODIFY COLUMN `post_process` double(18,15) default 0; +ALTER TABLE tagente_modulo MODIFY COLUMN `post_process` double(24,15) default 0; /* 2014/08/18 */ -- ---------------------------------------------------------------------