From e4744829ac762f9b467fefcc2db7f6a256aad51e Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 14 Sep 2014 00:44:06 -0400 Subject: [PATCH] #35 Update install scripts for auto-refresh --- install/install_functions.inc.php | 2 +- install/updateNuMods.php | 6 +- install/updateTo1-2-4.php | 223 ------------------------------ install/updateTo1-3-1.php | 11 ++ 4 files changed, 15 insertions(+), 227 deletions(-) delete mode 100644 install/updateTo1-2-4.php create mode 100644 install/updateTo1-3-1.php diff --git a/install/install_functions.inc.php b/install/install_functions.inc.php index 2f6682fb..35a73f73 100644 --- a/install/install_functions.inc.php +++ b/install/install_functions.inc.php @@ -37,7 +37,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');} // We will be installing this HESK version: define('HESK_NEW_VERSION','2.5.5'); -define('NUMODS_NEW_VERSION','1.2.4'); +define('NUMODS_NEW_VERSION','1.3.1'); // Other required files and settings define('INSTALL',1); diff --git a/install/updateNuMods.php b/install/updateNuMods.php index 4c435213..d8bafd96 100644 --- a/install/updateNuMods.php +++ b/install/updateNuMods.php @@ -65,9 +65,9 @@ if ($_GET['update'] == 1)
-

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

+

Update NuMods from v1.2.4 - v1.3.0 to v1.3.1

+

Update here. Do not use the installation below!

+

Install NuMods v1.3.1 for the first time

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.

diff --git a/install/updateTo1-2-4.php b/install/updateTo1-2-4.php deleted file mode 100644 index 7be61d3a..00000000 --- a/install/updateTo1-2-4.php +++ /dev/null @@ -1,223 +0,0 @@ - - -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

- - diff --git a/install/updateTo1-3-1.php b/install/updateTo1-3-1.php new file mode 100644 index 00000000..59d03bc8 --- /dev/null +++ b/install/updateTo1-3-1.php @@ -0,0 +1,11 @@ + + +

Update complete!

+

Please delete the install folder for security reasons, and then proceed back to the Help Desk

\ No newline at end of file