Fixed some bugs, made activationcode more secure, added update script, merged missing commit
This commit is contained in:
@@ -74,6 +74,16 @@ CREATE TABLE `mail_virtual` (
|
||||
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `panel_activation`;
|
||||
CREATE TABLE `panel_activation` (
|
||||
`id` int(11) unsigned NOT NULL auto_increment,
|
||||
`userid` int(11) unsigned NOT NULL default '0',
|
||||
`admin` tinyint(1) unsigned NOT NULL default '0',
|
||||
`creation` int(11) unsigned NOT NULL default '0',
|
||||
`activationcode` varchar(50) default NULL,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `panel_admins`;
|
||||
CREATE TABLE `panel_admins` (
|
||||
@@ -540,7 +550,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
|
||||
('panel', 'phpconfigs_hidestdsubdomain', '0'),
|
||||
('panel', 'allow_theme_change_admin', '1'),
|
||||
('panel', 'allow_theme_change_customer', '1'),
|
||||
('panel', 'version', '0.9.31-dev3');
|
||||
('panel', 'version', '0.9.31-dev4');
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `panel_tasks`;
|
||||
|
||||
@@ -2452,3 +2452,22 @@ if (isFroxlorVersion('0.9.31-dev2')) {
|
||||
lastStepStatus(0);
|
||||
updateToVersion('0.9.31-dev3');
|
||||
}
|
||||
|
||||
if (isFroxlorVersion('0.9.31-dev3')) {
|
||||
showUpdateStep("Updating from 0.9.31-dev3 to 0.9.31-dev4", true);
|
||||
|
||||
showUpdateStep("Adding new panel_activation table");
|
||||
Database::query("DROP TABLE IF EXISTS `panel_activation`;");
|
||||
$sql = "CREATE TABLE `" . TABLE_PANEL_ACTIVATION . "` (
|
||||
id int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
userid int(11) unsigned NOT NULL DEFAULT '0',
|
||||
admin tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
creation int(11) unsigned NOT NULL DEFAULT '0',
|
||||
activationcode varchar(50) DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=MyISAM;";
|
||||
Database::query($sql);
|
||||
|
||||
lastStepStatus(0);
|
||||
updateToVersion('0.9.31-dev4');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user