diff --git a/install/froxlor.sql b/install/froxlor.sql index 8ad2527e..df6546bd 100644 --- a/install/froxlor.sql +++ b/install/froxlor.sql @@ -462,7 +462,7 @@ INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) V INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (18, 'system', 'vmail_homedir', '/var/customers/mail/'); INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (19, 'system', 'bindconf_directory', '/etc/bind/'); INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (20, 'system', 'bindreload_command', '/etc/init.d/bind9 reload'); -INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (22, 'panel', 'version', '0.9.14-svn6'); +INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (22, 'panel', 'version', '0.9.14-svn10'); INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (23, 'system', 'hostname', 'SERVERNAME'); INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (24, 'login', 'maxloginattempts', '3'); INSERT INTO `panel_settings` (`settingid`, `settinggroup`, `varname`, `value`) VALUES (25, 'login', 'deactivatetime', '900'); diff --git a/install/updates/froxlor/0.9/update_0.9.inc.php b/install/updates/froxlor/0.9/update_0.9.inc.php index 6f3d7cca..919467c0 100644 --- a/install/updates/froxlor/0.9/update_0.9.inc.php +++ b/install/updates/froxlor/0.9/update_0.9.inc.php @@ -1168,3 +1168,75 @@ if(isFroxlorVersion('0.9.14-svn5')) updateToVersion('0.9.14-svn6'); } + +/* + * revert database changes we did for multiserver-support + * before branching - sorry guys :/ + */ +if(isFroxlorVersion('0.9.14-svn9')) +{ + showUpdateStep("Reverting multiserver-patches (svn)", false); + + $update_allow_domain_login = isset($_POST['update_allow_domain_login']) ? (int)$_POST['update_allow_domain_login'] : '0'; + + showUpdateStep("Reverting database table-changes"); + $db->query("ALTER TABLE `".TABLE_PANEL_SETTINGS."` DROP `sid`;"); + + showUpdateStep("."); + $db->query("ALTER TABLE `".TABLE_PANEL_CUSTOMERS."` DROP `sid`;"); + + showUpdateStep("."); + $db->query("ALTER TABLE `".TABLE_MAIL_VIRTUAL."` DROP `sid`;"); + + showUpdateStep("."); + $db->query("ALTER TABLE `".TABLE_FTP_USERS."` DROP `sid`;"); + + showUpdateStep("."); + $db->query("ALTER TABLE `".TABLE_PANEL_TASKS."` DROP `sid`;"); + + showUpdateStep("."); + $db->query("ALTER TABLE `".TABLE_APS_TASKS."` DROP `sid`;"); + + showUpdateStep("."); + $db->query("ALTER TABLE `".TABLE_PANEL_LOG."` DROP `sid`;"); + + showUpdateStep("."); + $db->query("ALTER TABLE `".TABLE_PANEL_PHPCONFIGS."` DROP `sid`;"); + lastStepStatus(0); + + showUpdateStep("Removing froxlor-clients table"); + $db->query("DROP TABLE IF EXISTS `froxlor_clients`"); + + updateToVersion('0.9.14-svn10'); +} + +if(isFroxlorVersion('0.9.14-svn6')) +{ + showUpdateStep("Updating from 0.9.14-svn6 to 0.9.14-svn10", false); + + // remove deprecated realtime-feature + showUpdateStep("Removing realtime-feature (deprecated)"); + $db->query("DELETE FROM `" . TABLE_PANEL_SETTINGS . "` WHERE `settinggroup` = 'system' AND `varname` = 'realtime_port';"); + lastStepStatus(0); + + // remove deprecated panel_navigation + showUpdateStep("Removing table `panel_navigation` (deprecated)"); + $db->query("DROP TABLE IF EXISTS `panel_navigation`;"); + lastStepStatus(0); + + // remove deprecated panel_cronscript + showUpdateStep("Removing table `panel_cronscript` (deprecated)"); + $db->query("DROP TABLE IF EXISTS `panel_cronscript`;"); + lastStepStatus(0); + + // make ticket-system ipv6 compatible + showUpdateStep("Altering IP field in panel_tickets (IPv6 compatibility)"); + $db->query("ALTER TABLE `" . TABLE_PANEL_TICKETS . "` MODIFY `ip` varchar(39) NOT NULL default '';"); + lastStepStatus(0); + + showUpdateStep("Removing deprecated legacy-cronjob from database"); + $db->query("DELETE FROM `".TABLE_PANEL_CRONRUNS."` WHERE `cronfile` ='cron_legacy.php';"); + lastStepStatus(0); + + updateToVersion('0.9.14-svn6'); +} diff --git a/install/updates/preconfig/0.9/preconfig_0.9.inc.php b/install/updates/preconfig/0.9/preconfig_0.9.inc.php index c17b7d5e..ff7c751c 100644 --- a/install/updates/preconfig/0.9/preconfig_0.9.inc.php +++ b/install/updates/preconfig/0.9/preconfig_0.9.inc.php @@ -343,4 +343,12 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version) $question.= makeyesno('update_allow_domain_login', '1', '0', '0'); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";"); } + + if(versionInUpdate($current_version, '0.9.14-svn10')) + { + $has_preconfig = true; + $description = 'This update removes the unsupported real-time option. Additionally the deprecated tables for navigation and cronscripts are removed, any modules using these tables need to be updated to the new structure!'; + $question = ''; + eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";"); + } } diff --git a/lib/tables.inc.php b/lib/tables.inc.php index 4e93fc7a..09d82859 100644 --- a/lib/tables.inc.php +++ b/lib/tables.inc.php @@ -71,7 +71,7 @@ define('PACKAGE_ENABLED', 2); // VERSION INFO -$version = '0.9.14-svn6'; +$version = '0.9.14-svn10'; $dbversion = '2'; $branding = '';