diff --git a/README.md b/README.md index 525d333e6b..0e42f07bb0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# NamelessMC - version 1.0.4 +# NamelessMC - version 1.0.5 NamelessMC is a free, easy to use & powerful website software for your Minecraft server, which includes a large range of features. -Version 1.0.4 features: +Version 1.0.5 features: - Template and theme system - Languages diff --git a/changelog.txt b/changelog.txt index 8d5e01d43c..52883ae30b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -174,4 +174,14 @@ - Fix Spanish translation (thanks to @lockerecca) - Fix incorrect PM author - Allow changing font colour in custom pages -- Fix punishments \ No newline at end of file +- Fix punishments + +1.0.5 +- Allow disabling Play and Forums +- Add Slovak language +- Add Norsk language +- Add update notice to installer +- Don't escape navbar item text +- Prevent requiring pages outside the Nameless directory +- Change input type submit to buttons +- Display staff applications in wells \ No newline at end of file diff --git a/core/includes/updates/104.php b/core/includes/updates/104.php new file mode 100644 index 0000000000..539378e1ec --- /dev/null +++ b/core/includes/updates/104.php @@ -0,0 +1,23 @@ + 1.0.5 updater + +// Database change: allow disabling play page +$queries->create('settings', array( + 'name' => 'play_page_enabled', + 'value' => '1' +)); + +// Update version number +$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' => '1.0.5' +)); + +$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' +)); \ No newline at end of file diff --git a/pages/install.php b/pages/install.php index 63bae67c0f..47704154be 100644 --- a/pages/install.php +++ b/pages/install.php @@ -618,7 +618,7 @@ // Version update $version_id = $queries->getWhere('settings', array('name', '=', 'version')); $queries->update('settings', $version_id[0]->id, array( - 'value' => '1.0.4' + 'value' => '1.0.5' )); @@ -987,7 +987,7 @@ ), 28 => array( 'name' => 'version', - 'value' => '1.0.4' + 'value' => '1.0.5' ), 29 => array( 'name' => 'version_checked',