From b6b2538852e759a335a3df3a601f1cb4d44b67d4 Mon Sep 17 00:00:00 2001 From: Joe Prochazka Date: Fri, 6 Apr 2018 20:41:52 -0400 Subject: [PATCH] Upgrade to v2.6.2. --- build/portal/html/classes/template.class.php | 2 +- build/portal/html/install/index.php | 2 +- build/portal/html/install/upgrade.php | 11 ++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/build/portal/html/classes/template.class.php b/build/portal/html/classes/template.class.php index ef93227..401d4ae 100644 --- a/build/portal/html/classes/template.class.php +++ b/build/portal/html/classes/template.class.php @@ -37,7 +37,7 @@ // Check if the portal is installed or needs upgraded. - $thisVersion = "2.6.1"; + $thisVersion = "2.6.2"; if (!file_exists($_SERVER['DOCUMENT_ROOT']."/classes/settings.class.php")) { header ("Location: /install/install.php"); diff --git a/build/portal/html/install/index.php b/build/portal/html/install/index.php index 3d4b93a..f737d16 100644 --- a/build/portal/html/install/index.php +++ b/build/portal/html/install/index.php @@ -29,7 +29,7 @@ ///////////////////////////////////////////////////////////////////////////////////// // The most current stable release. - $thisVersion = "2.6.1"; + $thisVersion = "2.6.2"; // Begin the upgrade process if this release is newer than what is installed. if (file_exists($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."settings.class.php")) { diff --git a/build/portal/html/install/upgrade.php b/build/portal/html/install/upgrade.php index e80deba..d4a2509 100644 --- a/build/portal/html/install/upgrade.php +++ b/build/portal/html/install/upgrade.php @@ -33,7 +33,7 @@ $common = new common(); // The most current stable release. - $thisVersion = "2.6.1"; + $thisVersion = "2.6.2"; // Begin the upgrade process if this release is newer than what is installed. if ($common->getSetting("version") == $thisVersion) { @@ -132,6 +132,15 @@ $version = "2.6.1"; } + // UPGRADE TO V2.6.2 + if ($common->getSetting("version") == "2.6.1" && $success) { + $json = file_get_contents("http://localhost/install/upgrade-v2.6.2.php"); + $results = json_decode($json, TRUE); + $success = $results['success']; + $message = $results['message']; + $version = "2.6.2"; + } + require_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."admin".DIRECTORY_SEPARATOR."includes".DIRECTORY_SEPARATOR."header.inc.php"); // Display the instalation wizard.