1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

Reporting system revised. Needs some major cleanup and is missig some functionality (assign report, some overviews, decent notifications) but the basics are there. More after the weekend :)

git-svn-id: file:///svn/phpbb/trunk@5601 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt
2006-03-04 13:50:52 +00:00
parent 0525406c3b
commit 70b20a98f7
9 changed files with 1175 additions and 15 deletions

View File

@@ -550,26 +550,42 @@ CREATE TABLE phpbb_ranks (
PRIMARY KEY (rank_id)
);
# Table: 'phpbb_reports'
CREATE TABLE `phpbb_reports` (
`report_id` smallint(5) unsigned NOT NULL auto_increment,
`report_type` tinyint(4) unsigned NOT NULL default '0',
`reason_id` smallint(5) unsigned NOT NULL default '0',
`post_id` mediumint(8) unsigned NOT NULL default '0',
`user_id` mediumint(8) unsigned NOT NULL default '0',
`user_notify` tinyint(1) NOT NULL default '0',
`report_time` int(10) unsigned NOT NULL default '0',
`report_text` text NOT NULL,
`report_status` tinyint(4) NOT NULL default '0',
`bbcode_uid` varchar(5) NOT NULL default '',
`bbcode_bitfield` int(11) NOT NULL default '0',
PRIMARY KEY (`report_id`)
);
# Table: 'phpbb_reports_reasons'
CREATE TABLE phpbb_reports_reasons (
reason_id smallint(6) NOT NULL auto_increment,
report_type tinyint(4) unsigned NOT NULL default '0',
reason_priority tinyint(4) DEFAULT '0' NOT NULL,
reason_name varchar(255) DEFAULT '' NOT NULL,
reason_description text NOT NULL,
PRIMARY KEY (reason_id)
);
# Table: 'phpbb_reports'
CREATE TABLE phpbb_reports (
report_id smallint(5) UNSIGNED NOT NULL auto_increment,
reason_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
msg_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
user_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
user_notify tinyint(1) DEFAULT '0' NOT NULL,
report_time int(10) UNSIGNED DEFAULT '0' NOT NULL,
report_text text NOT NULL,
PRIMARY KEY (report_id)
# Table: `phpbb_reports_replies`
CREATE TABLE `phpbb_reports_replies` (
`reply_id` mediumint(8) unsigned NOT NULL auto_increment,
`report_id` mediumint(8) unsigned NOT NULL default '0',
`reply_time` int(10) unsigned NOT NULL default '0',
`reply_text` text NOT NULL,
`from_user_id` mediumint(9) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`to_user_id` mediumint(9) NOT NULL default '0',
PRIMARY KEY (`reply_id`)
);
# Table: 'phpbb_search_results'

View File

@@ -754,10 +754,15 @@ INSERT INTO phpbb_search_wordmatch (word_id, post_id, title_match) VALUES (3, 1,
# MSSQL IDENTITY phpbb_reports_reasons ON #
# -- reasons
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description) VALUES (1, 3, 'warez', 'The reported post contains links to pirated or illegal software');
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description) VALUES (2, 2, 'spam', 'The reported post has for only purpose to advertise for a website or another product');
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description) VALUES (3, 1, 'off_topic', 'The reported post is off topic');
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description) VALUES (4, 0, 'other', 'The reported post does not fit into any other category, please use the description field');
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (1, 0, 'other', 'The reported post does not fit into any other category (please use the description field)', 1);
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (2, 90, 'warez', 'The reported post contains links to pirated or illegal software', 1);
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (3, 60, 'spam', 'The reported post has for only purpose to advertise for a website or another product', 1);
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (4, 20, 'off_topic', 'The reported post is off topic', 1);
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (5, 0, 'other', 'Other reason (please use the description field)', 2);
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (6, 40, 'bug', 'The forum is not behaving as I expected', 2);
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (7, 30, 'email', 'I have a problem with receiving email.', 2);
INSERT INTO phpbb_reports_reasons (reason_id, reason_priority, reason_name, reason_description, report_type) VALUES (8, 20, 'user', 'I have a complaint about a user', 2);
# MSSQL IDENTITY phpbb_reports_reasons OFF #