Use Javascript instead of PHP to redirect scripts
This commit is contained in:
parent
a9d8d13ebd
commit
470c8390f8
@ -47,5 +47,8 @@ hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`
|
|||||||
hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsNewTicketStatus, IsClosed, IsClosedByClient, IsCustomerReplyStatus,
|
hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` (ID, ShortNameContentKey, TicketViewContentKey, TextColor, IsNewTicketStatus, IsClosed, IsClosedByClient, IsCustomerReplyStatus,
|
||||||
IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus)
|
IsStaffClosedOption, IsStaffReopenedStatus, IsDefaultStaffReplyStatus, LockedTicketStatus)
|
||||||
VALUES (5, 'on_hold', 'on_hold', '#000000', 0, 0, 0, 0, 0, 0, 0, 0);");
|
VALUES (5, 'on_hold', 'on_hold', '#000000', 0, 0, 0, 0, 0, 0, 0, 0);");
|
||||||
|
?>
|
||||||
header('Location: updateTo1-4-1.php');
|
<script type="text/javascript">
|
||||||
|
window.location.href = "updateTo1-4-1.php"
|
||||||
|
</script>
|
||||||
|
<p>Redirecting to next install script. <a href="updateTo1-4-1.php">Click here if you are not redirected automatically.</a></p>
|
@ -14,5 +14,8 @@ if (!isset($_GET['ar'])) {
|
|||||||
}
|
}
|
||||||
hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."denied_emails` (ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT, Email VARCHAR(100) NOT NULL);");
|
hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."denied_emails` (ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT, Email VARCHAR(100) NOT NULL);");
|
||||||
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` ADD COLUMN `parent` MEDIUMINT(8) NULL AFTER `custom20`;");
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` ADD COLUMN `parent` MEDIUMINT(8) NULL AFTER `custom20`;");
|
||||||
|
?>
|
||||||
header('Location: updateTo1-5-0.php');
|
<script type="text/javascript">
|
||||||
|
window.location.href = "updateTo1-5-0.php"
|
||||||
|
</script>
|
||||||
|
<p>Redirecting to next install script. <a href="updateTo1-5-0.php">Click here if you are not redirected automatically.</a></p>
|
@ -8,5 +8,8 @@ hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` AD
|
|||||||
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` ADD COLUMN `can_manage_settings` ENUM('0', '1') NOT NULL DEFAULT '1'");
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` ADD COLUMN `can_manage_settings` ENUM('0', '1') NOT NULL DEFAULT '1'");
|
||||||
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` ADD COLUMN `default_notify_customer_email` ENUM ('0', '1') NOT NULL DEFAULT '1'");
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` ADD COLUMN `default_notify_customer_email` ENUM ('0', '1') NOT NULL DEFAULT '1'");
|
||||||
|
|
||||||
header('Location: updateTo1-6-0.php');
|
|
||||||
?>
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.location.href = "updateTo1-6-0.php"
|
||||||
|
</script>
|
||||||
|
<p>Redirecting to next install script. <a href="updateTo1-6-0.php">Click here if you are not redirected automatically.</a></p>
|
@ -12,5 +12,8 @@ hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."attachmen
|
|||||||
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."attachments` MODIFY COLUMN `ticket_id` VARCHAR(13) NULL");
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."attachments` MODIFY COLUMN `ticket_id` VARCHAR(13) NULL");
|
||||||
hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` (`Key` NVARCHAR(200) NOT NULL, `Value` NVARCHAR(200) NOT NULL)");
|
hesk_dbQuery("CREATE TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` (`Key` NVARCHAR(200) NOT NULL, `Value` NVARCHAR(200) NOT NULL)");
|
||||||
hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` (`Key`, `Value`) VALUES ('modsForHeskVersion', '1.6.0')");
|
hesk_dbQuery("INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` (`Key`, `Value`) VALUES ('modsForHeskVersion', '1.6.0')");
|
||||||
|
?>
|
||||||
header('Location: updateTo1-6-1.php');
|
<script type="text/javascript">
|
||||||
|
window.location.href = "updateTo1-6-1.php"
|
||||||
|
</script>
|
||||||
|
<p>Redirecting to next install script. <a href="updateTo1-6-1.php">Click here if you are not redirected automatically.</a></p>
|
@ -5,5 +5,8 @@ require(HESK_PATH . 'install/install_functions.inc.php');
|
|||||||
require(HESK_PATH . 'hesk_settings.inc.php');
|
require(HESK_PATH . 'hesk_settings.inc.php');
|
||||||
hesk_dbConnect();
|
hesk_dbConnect();
|
||||||
hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` SET `Value` = '1.6.1' WHERE `Key` = 'modsForHeskVersion'");
|
hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` SET `Value` = '1.6.1' WHERE `Key` = 'modsForHeskVersion'");
|
||||||
|
?>
|
||||||
header('Location: updateTo1-7-0.php');
|
<script type="text/javascript">
|
||||||
|
window.location.href = "updateTo1-7-0.php"
|
||||||
|
</script>
|
||||||
|
<p>Redirecting to next install script. <a href="updateTo1-7-0.php">Click here if you are not redirected automatically.</a></p>
|
@ -95,6 +95,9 @@ if (!file_put_contents(HESK_PATH.'modsForHesk_settings.inc.php', $file))
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($updateSuccess) {
|
if ($updateSuccess) { ?>
|
||||||
header('Location: updateTo2-0-0.php');
|
<script type="text/javascript">
|
||||||
} ?>
|
window.location.href = "updateTo2-0-0.php"
|
||||||
|
</script>
|
||||||
|
<p>Redirecting to next install script. <a href="updateTo2-0-0.php">Click here if you are not redirected automatically.</a></p>
|
||||||
|
<?php } ?>
|
Loading…
x
Reference in New Issue
Block a user