kopia lustrzana https://github.com/jprochazka/adsb-receiver
Install or upgrade to v2.0.3.
rodzic
c84d60bc68
commit
2a6ca33939
|
@ -29,13 +29,13 @@
|
|||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// The most current stable release.
|
||||
$thisVersion = "2.0.2";
|
||||
$thisVersion = "2.0.3";
|
||||
|
||||
// Begin the upgrade process if this release is newer than what is installed.
|
||||
if (file_exists("../classes/settings.class.php")) {
|
||||
require('../classes/common.class.php');
|
||||
$common = new common();
|
||||
|
||||
|
||||
if ($common-> getSetting("version") < $thisVersion) {
|
||||
// THis is an older version so forward the user to upgrade.php
|
||||
header ("Location: /install/upgrade.php");
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
$settings = new settings();
|
||||
|
||||
// The most current stable release.
|
||||
$thisVersion = "2.0.2";
|
||||
$thisVersion = "2.0.3";
|
||||
|
||||
// Begin the upgrade process if this release is newer than what is installed.
|
||||
if ($common->getSetting("version") == $thisVersion) {
|
||||
|
@ -205,6 +205,20 @@
|
|||
chmod($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."data".DIRECTORY_SEPARATOR."portal.sqlite", 0666);
|
||||
}
|
||||
|
||||
$common->updateSetting("version", "2.0.2");
|
||||
$common->updateSetting("patch", "");
|
||||
} catch(Exception $e) {
|
||||
$error = TRUE;
|
||||
$errorMessage = $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////
|
||||
// UPGRADE RO V2.0.3
|
||||
///////////////////////
|
||||
|
||||
if ($common->getSetting("version") == "2.0.2") {
|
||||
try {
|
||||
$common->updateSetting("version", $thisVersion);
|
||||
$common->updateSetting("patch", "");
|
||||
} catch(Exception $e) {
|
||||
|
@ -213,6 +227,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
require_once('../admin/includes/header.inc.php');
|
||||
|
||||
// Display the instalation wizard.
|
||||
|
|
Ładowanie…
Reference in New Issue