From 680a2a16b1f04487c6247b1052c22995e1ff4a1d Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Tue, 5 Aug 2014 20:48:20 -0400 Subject: [PATCH] Added update for v1.2.4 --- install/install_functions.inc.php | 4 +- install/updateNuMods.php | 6 +- install/updateTo1-2-4.php | 223 ++++++++++++++++++++++++++++++ 3 files changed, 229 insertions(+), 4 deletions(-) create mode 100644 install/updateTo1-2-4.php diff --git a/install/install_functions.inc.php b/install/install_functions.inc.php index 12047b9c..e7bc6b92 100644 --- a/install/install_functions.inc.php +++ b/install/install_functions.inc.php @@ -36,8 +36,8 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');} // We will be installing this HESK version: -define('HESK_NEW_VERSION','2.5.3'); -define('NUMODS_NEW_VERSION','1.2.0'); +define('HESK_NEW_VERSION','2.5.5'); +define('NUMODS_NEW_VERSION','1.2.4'); // Other required files and settings define('INSTALL',1); diff --git a/install/updateNuMods.php b/install/updateNuMods.php index 5163e852..4c435213 100644 --- a/install/updateNuMods.php +++ b/install/updateNuMods.php @@ -65,7 +65,9 @@ if ($_GET['update'] == 1)
-

Install / Upgrade NuMods to 1.2.4

+

Update NuMods from v1.2.0 - v1.2.3 to v1.2.4

+

If you have NuMods v1.2.0 - v1.2.3, click here to update to v1.2.4. Do not use the installation below!

+

Install NuMods v1.2.4 from a version before 1.2.0

If you have not yet installed/updated HESK, please do so first before continuing; otherwise installation will fail!


Please verify the database information below. Addtionally, ensure that the database user has CREATE permissions.

@@ -81,4 +83,4 @@ if ($_GET['update'] == 1)

The installation / upgrade of NuMods has finished. You can now delete the install directory and access the admin area

- \ No newline at end of file + diff --git a/install/updateTo1-2-4.php b/install/updateTo1-2-4.php new file mode 100644 index 00000000..7be61d3a --- /dev/null +++ b/install/updateTo1-2-4.php @@ -0,0 +1,223 @@ + + +NOTICE: You already have version 1.2.3 (Hesk version ' . HESK_NEW_VERSION . ') installed. + +'); +} + +if ($hesk_settings['hesk_version'] != HESK_OLD_VERSION) +{ +die(' +
+
+ERROR: You do not have version 1.2.3 (Hesk version ' . HESK_OLD_VERSION . ')
+
+This patch may only be used with NuMods version 1.2.3 (Hesk version ' . HESK_OLD_VERSION . '), your HESK version is ' . $hesk_settings['hesk_version'] . '
+
+You should Download full version ' . HESK_NEW_VERSION .' instead, and NuMods from http://numods.mkochcs.com.
+
+
'); +} + +define('HIDE_ONLINE',1); + +/* Debugging should be enabled in installation mode */ +$hesk_settings['debug_mode'] = 1; +error_reporting(E_ALL); +$__maindir = dirname(dirname(__FILE__)) . '/'; + +hesk_iHeader(); +?> +
+ +
+ + + + + + + + + + + + + + + + +
  + + +

Verifying HESK installation

+ +

 

+ +

Verifying your HESK installation...

+ + +

OK: new files uploaded.

+ +

 

+ + +

» Your HESK has been updated to version .

+

» To complete setup delete the /install folder from your server.

+ +

Update failed: Cannot write to your hesk_settings.inc.php file.

+ +

Please make sure the hesk_settings.inc.php file is writable by PHP then click the Try again button below.

+ +
+

+
+ +

Missing files!

+ +

 

+ +

Please upload all HESK patch files to your server.

+ +
+

+
+ + +

 

+

 

+

 

+ +
 
+
+ + + + + + Install Hesk <?php echo HESK_NEW_VERSION; ?> + + + + + + + +
+ + + + + +
+ + + + + + +
HESK installation script
+ +
+ + +

 
Powered by Help Desk Software HESK - brought to you by Help Desk Software SysAid

+ +