diff --git a/inc/config.php b/inc/config.php
index 2f3a691e..27352b5a 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -100,6 +100,8 @@
$config['error']['tor'] = 'Hmm… That looks like a Tor exit node.';
$config['error']['toomanylinks'] = 'Too many links; flood detected.';
$config['error']['nodelete'] = 'You didn\'t select anything to delete.';
+ $config['error']['noreport'] = 'You didn\'t select anything to report.';
+ $config['error']['toomanyreports'] = 'You can\'t report that many posts at once.';
$config['error']['invalidpassword'] = 'Wrong password…';
$config['error']['invalidimg'] = 'Invalid image.';
$config['error']['filesize'] = 'Maximum file size: %maxsz% bytes
Your file\'s size: %filesz% bytes';
@@ -120,6 +122,9 @@
$config['error']['invalidpost'] = 'That post doesn\'t exist…';
$config['error']['404'] = 'Page not found.';
+ // How many reports you can create in the same request.
+ $config['report_limit'] = 2;
+
// Reply limit (deletes thread when this is reached)
$config['reply_limit'] = 250;
@@ -264,6 +269,12 @@
/* Administration */
// Display the contents of instance-config.php
$config['mod']['show_config'] = ADMIN;
+ // View the report queue
+ $config['mod']['reports'] = JANITOR;
+ // Dismiss an abuse report
+ $config['mod']['report_dismiss'] = JANITOR;
+ // Dismiss all abuse reports by an IP
+ $config['mod']['report_dismiss_ip'] = JANITOR;
// View list of bans
$config['mod']['view_banlist'] = MOD;
// View the username of the mod who made a ban
diff --git a/inc/functions.php b/inc/functions.php
index 09e3f1fe..6e709d9b 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -828,8 +828,8 @@
) == '127.0.0.2';
}
- function ReverseIPOctets($inputip) {
- $ipoc = explode('.', $inputip);
+ function ReverseIPOctets($ip) {
+ $ipoc = explode('.', $ip);
return $ipoc[3] . '.' . $ipoc[2] . '.' . $ipoc[1] . '.' . $ipoc[0];
}
diff --git a/mod.php b/mod.php
index 9424ab54..2e8a993e 100644
--- a/mod.php
+++ b/mod.php
@@ -80,6 +80,9 @@
// Boards
$fieldset['Boards'] .= ulBoards();
+ if($mod['type'] >= $config['mod']['reports']) {
+ $fieldset['Administration'] .= '