mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 11:54:25 +00:00
Alliance forum fixes part 1
Fixed the majority of security issues: +Fixed a bug that permitted to edit, delete and create a forum in any alliance, without any permissions +Fixed a bug that permitted to edit, create and delete any kind of thread, with any kind of permission +Fixed a bug that permitted to edit, modify and delete every kind of post, without any kind of permission +Fixed a bug that din't permit to create posts and threads +Fixed a bug that permitted to create forum and threads with empty name/topic +Fixed a bug that permitted to move a thread to an invalid forum +Fixed a bug that permitted to create an invalid type of forum +Fixed a bug that didn't permit to move forums, to the top and the bottom of their forum type (in reality, it wasn't even coded) +Added a sorting column for supporting the "move to top/bottom" functionality +Minor improvements and bug fixing/code indentation/removal of redundant code NOTE: For playing this version, you HAVE to add a new column to the table "s1_forum_cat", you can simply do that by running this query (where "s1_" is the prefix of your server): ALTER TABLE s1_forum_cat ADD `sorting` int(11) NOT NULL AFTER `id`
This commit is contained in:
@@ -745,6 +745,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%fdata` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `%PREFIX%forum_cat` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`sorting` int(11) NOT NULL,
|
||||
`owner` varchar(255) DEFAULT NULL,
|
||||
`alliance` int(11) NOT NULL,
|
||||
`forum_name` varchar(255) DEFAULT NULL,
|
||||
|
||||
Reference in New Issue
Block a user