-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v2 pre-release 2 update files
Release v2 pre-release 2 update files
- Loading branch information
Showing
6 changed files
with
248 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
NamelessMC version 2 Changelog | ||
|
||
2.0.0 pr-1 | ||
- Initial release | ||
|
||
2.0.0 pr-2 | ||
- Fix issue with editing user in AdminCP | ||
- Prevent non-moderators replying to locked topics | ||
- Prevent signature image overflow | ||
- Remove unnecessary header template file | ||
- Fix registration issue | ||
- Fix recaptcha issues in upgrade script | ||
- Minor forum updates | ||
- Update Mojang API URL | ||
- Fix incorrect "last user" information in PMs | ||
- Redirect to previous page after login | ||
- Allow use of HTML in report content | ||
- Add forum labels | ||
- Update panels in AdminCP night theme | ||
- Small AdminCP label fixes | ||
- Update default template Bootstrap version | ||
- Update core Bootstrap version | ||
- Update profile template | ||
- Fix signin issue with numeric usernames | ||
- Fix negative reactions not creating | ||
- Allow creating new instances of custom DB class | ||
- Update AdminCP registrations graph | ||
- Change popover placement in AdminCP | ||
- Increase query interval | ||
- Display success message upon sending PM reply | ||
- Update installer and configuration methods | ||
- Display errors if unable to create config + cache | ||
- Update htaccess | ||
- Fix installation detection | ||
- Separate core JS into templates | ||
- Add maintenance mode | ||
- Allow logging in whilst in maintenance mode | ||
- Prevent admin account switch in AdminCP | ||
- Fix installer not loading | ||
- Allow installer translations | ||
- Add default database address to installer | ||
- Update admin auth screen layout | ||
- Remove deprecated mcrypt requirement, along with a now unused function | ||
- Fix permission check for configuration file | ||
- Add AuthMe integration and Minecraft service status | ||
- Fix invalid charset in installer | ||
- Fix AdminCP mobile navbar toggler not showing | ||
- Update cp_dark.css | ||
- Fix AdminCP auth + password changing | ||
- Add switch to toggle error reporting | ||
- Fix error in 404 page | ||
- Update PasswordHash class | ||
- Update form tokens | ||
- Allow per-user timezones | ||
- Add topics and posts to AdminCP overview stats graph | ||
- Fix potentially incorrect news ordering | ||
- Add card colour for Minecraft service status "Slow" | ||
- Define page on register page | ||
- Update post editor | ||
- Fix minor login/logout issues | ||
- Apply GeSHi to new topics and edited posts | ||
- Fix AdminCP security log sorting | ||
- Add force-HTTPS option to AdminCP | ||
- Fix post word wrapping and temporarily disable the code editor | ||
- Add Minecraft server query to homepage | ||
- Allow editing + deleting Minecraft servers | ||
- Fix sub-server queries | ||
- Fix invalid MySQL column default value | ||
- Fix timezone offsets not displaying minutes correctly | ||
- Minor forum SEO improvements | ||
- Add contact page, new email class and email errors + testing | ||
- Add registration email verification toggle in AdminCP | ||
- Add Minecraft server query error logging | ||
- Add Minecraft server banners | ||
- Allow purging Minecraft query errors | ||
- Complete mcassoc integration | ||
- Add terms and conditions page, and the ability to modify them | ||
- Update installer | ||
- Add avatar configuration, including the ability to upload a default avatar | ||
- Fix AdminCP -> Minecraft PHP notice | ||
- Add forgot password functionality | ||
- Add forum topic label permissions | ||
- Add forum search | ||
- Update Font Awesome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?php | ||
// 2.0.0 pr-1 to 2.0.0 pr-2 updater | ||
|
||
// Database changes | ||
try { | ||
$queries->alterTable('custom_pages', 'icon', "varchar(64) DEFAULT NULL"); | ||
} catch(Exception $e){ | ||
// Error, may have already been created - continue anyway | ||
} | ||
|
||
try { | ||
$queries->createTable("forums_labels", " `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(16) NOT NULL, `html` varchar(64) NOT NULL, PRIMARY KEY (`id`)", "ENGINE=InnoDB DEFAULT CHARSET=latin1"); | ||
} catch(Exception $e){ | ||
// Error | ||
} | ||
|
||
try { | ||
$queries->alterTable('forums_topic_labels', 'gids', "varchar(64) DEFAULT NULL"); | ||
} catch(Exception $e){ | ||
// Error | ||
} | ||
|
||
try { | ||
$queries->createTable("mc_servers", " `id` int(11) NOT NULL AUTO_INCREMENT, `ip` varchar(64) NOT NULL, `query_ip` varchar(64) NOT NULL, `name` varchar(20) NOT NULL, `is_default` tinyint(1) NOT NULL DEFAULT '0', `display` tinyint(1) NOT NULL DEFAULT '1', `pre` tinyint(1) NOT NULL DEFAULT '0', `player_list` tinyint(1) NOT NULL DEFAULT '1', `parent_server` int(11) NOT NULL DEFAULT '0', `bungee` tinyint(1) NOT NULL DEFAULT '0', `port` int(11) DEFAULT NULL, `query_port` int(11) DEFAULT '25565', `banner_background` varchar(32) NOT NULL DEFAULT 'background.png', PRIMARY KEY (`id`)", "ENGINE=InnoDB DEFAULT CHARSET=latin1"); | ||
} catch(Exception $e){ | ||
// Error | ||
try { | ||
$queries->alterTable('mc_servers', 'banner_background', "varchar(32) NOT NULL DEFAULT 'background.png'"); | ||
} catch(Exception $ex){ | ||
// Error | ||
} | ||
} | ||
|
||
try { | ||
$queries->createTable("email_errors", " `id` int(11) NOT NULL AUTO_INCREMENT, `type` int(11) NOT NULL, `content` text NOT NULL, `at` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`)", "ENGINE=InnoDB DEFAULT CHARSET=latin1"); | ||
} catch(Exception $e){ | ||
// Error | ||
} | ||
|
||
// New settings | ||
$update_check = $queries->getWhere('settings', array('name', '=', 'maintenance_message')); | ||
if(!count($update_check)){ | ||
$queries->create('settings', array( | ||
'name' => 'maintenance_message', | ||
'value' => 'This website is currently in maintenance mode.' | ||
)); | ||
$cache->setCache('maintenance_cache'); | ||
$cache->store('maintenance', array('maintenance' => 'false', 'message' => 'This website is currently in maintenance mode.')); | ||
} | ||
|
||
$update_check = $queries->getWhere('settings', array('name', '=', 'authme')); | ||
if(!count($update_check)){ | ||
$queries->create('settings', array( | ||
'name' => 'authme', | ||
'value' => 0 | ||
)); | ||
} | ||
|
||
$update_check = $queries->getWhere('settings', array('name', '=', 'authme_db')); | ||
if(!count($update_check)){ | ||
$queries->create('settings', array( | ||
'name' => 'authme_db', | ||
'value' => null | ||
)); | ||
} | ||
|
||
$update_check = $queries->getWhere('settings', array('name', '=', 'force_https')); | ||
if(!count($update_check)){ | ||
$queries->create('settings', array( | ||
'name' => 'force_https', | ||
'value' => 'false' | ||
)); | ||
} | ||
|
||
$update_check = $queries->getWhere('settings', array('name', '=', 'default_avatar_type')); | ||
if(!count($update_check)){ | ||
$queries->create('settings', array( | ||
'name' => 'default_avatar_type', | ||
'value' => 'minecraft' | ||
)); | ||
} | ||
|
||
$update_check = $queries->getWhere('settings', array('name', '=', 'custom_default_avatar')); | ||
if(!count($update_check)){ | ||
$queries->create('settings', array( | ||
'name' => 'custom_default_avatar', | ||
'value' => null | ||
)); | ||
} | ||
|
||
$update_check = null; | ||
|
||
// Update version number | ||
$version_number_id = $queries->getWhere('settings', array('name', '=', 'nameless_version')); | ||
$version_number_id = $version_number_id[0]->id; | ||
|
||
if(count($version_number_id)){ | ||
$queries->update('settings', $version_number_id, array( | ||
'value' => '2.0.0-pr2' | ||
)); | ||
} else { | ||
$version_number_id = $queries->getWhere('settings', array('name', '=', 'version')); | ||
$version_number_id = $version_number_id[0]->id; | ||
|
||
$queries->update('settings', $version_number_id, array( | ||
'value' => '2.0.0-pr2' | ||
)); | ||
} | ||
|
||
$version_update_id = $queries->getWhere('settings', array('name', '=', 'version_update')); | ||
$version_update_id = $version_update_id[0]->id; | ||
|
||
$queries->update('settings', $version_update_id, array( | ||
'value' => 'false' | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters