-
-
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.
Add update files and update installer for 1.0.18
Add update files and update installer for v1.0.18
- Loading branch information
Showing
5 changed files
with
243 additions
and
200 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
### Template: | ||
* What kind of issue is it (Question, Bug, etc.)? | ||
* In which version of NamelessMC did it occur (1.x.x)? | ||
* How would you describe the issue? | ||
* How would you describe the issue? | ||
* Do you have (relevant) resources about this issue (Logs, pictures, etc.)? | ||
* Do you have an idea how or where the issue occurs? | ||
|
||
### Please use image uploading websites such as Imgur or Gyazo | ||
### Please use image uploading websites such as Imgur or Gyazo | ||
|
||
#### Example: | ||
**What kind of issue is it (Question, Bug, etc.)?** Bug. | ||
**In which version of NamelessMC did it occur (1.x.x)?** Release 1.0.17. | ||
**In which version of NamelessMC did it occur (1.x.x)?** Release 1.0.18. | ||
**How would you describe the issue?** The index does not load up at all. | ||
**Do you have (relevant) resources about this issue (Logs, pictures, etc.)?** Yes, I have the a screenshot of it. [Click here](http://i.imgur.com/QqkXhVx.png) | ||
**Do you have an idea how or where the issue occurs?** I think it has to do with the "index.php" file but not sure. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
// 1.0.17 -> 1.0.18 updater | ||
ini_set('display_startup_errors',1); | ||
ini_set('display_errors',1); | ||
error_reporting(-1); | ||
|
||
// Secondary group column | ||
try { | ||
$queries->alterTable('users', 'group2_id', "int(11) DEFAULT NULL"); | ||
} catch(Exception $e){ | ||
// Error | ||
} | ||
|
||
// 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.18' | ||
)); | ||
|
||
$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' | ||
)); |
Oops, something went wrong.