diff --git a/install/index.php b/install/index.php
index 25bc8968..ed9ed324 100644
--- a/install/index.php
+++ b/install/index.php
@@ -53,6 +53,9 @@ hesk_iHeader();
Upgrade
Upgrade existing HESK installation to version
Install or upgrade existing NuHesk installation to version
diff --git a/install/install_functions.inc.php b/install/install_functions.inc.php index 7163c474..2e874671 100644 --- a/install/install_functions.inc.php +++ b/install/install_functions.inc.php @@ -37,6 +37,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');} // We will be installing this HESK version: define('HESK_NEW_VERSION','2.5.3'); +define('NUHESK_NEW_VERSION','1.2.0'); // Other required files and settings define('INSTALL',1); diff --git a/install/updateNuHesk.php b/install/updateNuHesk.php new file mode 100644 index 00000000..932cbd43 --- /dev/null +++ b/install/updateNuHesk.php @@ -0,0 +1,78 @@ +num_rows == 0); + $showInstructions = 'block'; + $showFinished = 'none'; + + if ($shouldBuildTable) + { + $showInstructions = 'none'; + $showFinished = 'block'; + + hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` ( + `ID` INT NOT NULL AUTO_INCREMENT, + `ShortNameContentKey` TEXT NOT NULL, + `TicketViewContentKey` TEXT NOT NULL, + `TextColor` TEXT NOT NULL, + `IsClosed` BIT NOT NULL DEFAULT 0, + `IsClosedByClient` BIT NOT NULL DEFAULT 0, + `IsStaffClosedOption` BIT NOT NULL DEFAULT 0, + `IsStaffReopenedStatus` BIT NOT NULL DEFAULT 0, + `IsDefaultStaffReplyStatus` BIT NOT NULL DEFAULT 0, + `LockedTicketStatus` BIT NOT NULL DEFAULT 0, + PRIMARY KEY (`ID`))"); + hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsClosed, IsClosedByClient, + IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus) + VALUES (0, 'open', 'open', '#FF0000', 0, 0, 0, 0, 0, 0);"); + hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` SET ID = 0 WHERE ID = 1;"); + + hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsClosed, IsClosedByClient, + IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus) + VALUES (1, 'wait_reply', 'wait_staff_reply', '#FF9933', 0, 0, 0, 1, 0, 0);"); + hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsClosed, IsClosedByClient, + IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus) + VALUES (2, 'replied', 'wait_cust_reply', '#0000FF', 0, 0, 0, 0, 1, 0);"); + hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsClosed, IsClosedByClient, + IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus) + VALUES (3, 'closed', 'closed', '#008000', 1, 1, 1, 0, 0, 1);"); + hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsClosed, IsClosedByClient, + IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus) + VALUES (4, 'in_progress', 'in_progress', '#000000', 0, 0, 0, 0, 0, 0);"); + hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsClosed, IsClosedByClient, + IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus) + VALUES (5, 'on_hold', 'on_hold', '#000000', 0, 0, 0, 0, 0, 0);"); + } +} + +?> + + +NuHesk 1.2.0 Install / Upgrade + + +++Install / Upgrade NuHesk to 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.
+Database Host:
+Database Name:
+Database User:
+Database Password:
+Database Prefix:
+ Proceed with installation/upgrade +++ + \ No newline at end of fileInstallation / Upgrade Finished
+The installation / upgrade of NuHesk has finished. You can now delete the install directory and access the admin area
+