2015-01-08 17:28:40 -05:00
|
|
|
<?php
|
|
|
|
define('IN_SCRIPT',1);
|
|
|
|
define('HESK_PATH','../');
|
|
|
|
require(HESK_PATH . 'install/install_functions.inc.php');
|
|
|
|
require(HESK_PATH . 'hesk_settings.inc.php');
|
|
|
|
|
|
|
|
hesk_dbConnect();
|
|
|
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."attachments` DROP COLUMN `note_id`");
|
2015-01-08 18:24:35 -05:00
|
|
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."notes` DROP COLUMN `edit_date`");
|
|
|
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."notes` DROP COLUMN `number_of_edits`");
|
2015-01-08 23:34:15 -05:00
|
|
|
hesk_dbQuery("ALTER TABLE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` DROP COLUMN `default_notify_customer_email`");
|
2015-01-25 00:42:27 -05:00
|
|
|
hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."settings` SET `Value` = '2.0.0' WHERE `Key` = 'modsForHeskVersion'");
|
2015-01-08 17:28:40 -05:00
|
|
|
|
2015-01-19 11:17:38 -05:00
|
|
|
$banRS = hesk_dbQuery("SELECT `ID` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."denied_emails`
|
|
|
|
UNION ALL SELECT `ID` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."denied_ips`");
|
|
|
|
if (hesk_dbNumRows($banRS) > 0)
|
|
|
|
{
|
|
|
|
$usersRS = hesk_dbQuery("SELECT `id`, `name` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."users` WHERE `active` = '1' ORDER BY `name`");
|
2015-01-08 17:28:40 -05:00
|
|
|
?>
|
2015-01-19 11:17:38 -05:00
|
|
|
<h2>Migrating IP / E-mail Bans</h2>
|
|
|
|
<p>Mods for HESK has detected that you have added IP address and/or email bans using Mods for HESK. As part of the upgrade process,
|
|
|
|
Mods for HESK will migrate these bans for you to HESK 2.6.0's IP/email ban feature. Select the user below that will be the "creator" of the bans,
|
|
|
|
then click "Submit".</p>
|
|
|
|
<form action="migrateBans.php" method="post" role="form">
|
|
|
|
<select name="user" id="user">
|
|
|
|
<?php
|
|
|
|
while ($row = hesk_dbFetchAssoc($usersRS))
|
|
|
|
{ ?>
|
|
|
|
<option value="<?php echo $row['id']; ?>"><?php echo $row['name']; ?></option>
|
|
|
|
<?php }
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
<input type="submit">
|
|
|
|
</form>
|
2015-01-25 00:42:27 -05:00
|
|
|
<?php } else { ?>
|
|
|
|
<h1>Installation / Update complete!</h1>
|
|
|
|
<p>Please delete the <b>install</b> folder for security reasons, and then proceed back to the <a href="../">Help Desk</a></p>
|
2015-01-08 17:28:40 -05:00
|
|
|
<?php } ?>
|