diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-25 16:12:42 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-25 16:12:42 +1100 |
| commit | 1e88a003cfd5e433a7bbbb4fa3e2f0d2e415e8d3 (patch) | |
| tree | 4695c31f3ef0a0ccf560abf597530a60c807e926 /inc | |
| parent | 4c6faeb7a252b708f0f54adac82c7ce403ce2e77 (diff) | |
Split [D+] (delete all posts by IP address) into global and non-global commands
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 3 | ||||
| -rw-r--r-- | inc/display.php | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index 6984d70a..c65b3bac 100644 --- a/inc/config.php +++ b/inc/config.php @@ -739,6 +739,7 @@ $config['mod']['link_bandelete'] = '[B&D]'; $config['mod']['link_deletefile'] = '[F]'; $config['mod']['link_deletebyip'] = '[D+]'; + $config['mod']['link_deletebyip_global'] = '[D++]'; $config['mod']['link_sticky'] = '[Sticky]'; $config['mod']['link_desticky'] = '[-Sticky]'; $config['mod']['link_lock'] = '[Lock]'; @@ -851,6 +852,8 @@ $config['mod']['deletefile'] = JANITOR; // Delete all posts by IP $config['mod']['deletebyip'] = MOD; + // Delete all posts by IP across all boards + $config['mod']['deletebyip_global'] = ADMIN; // Sticky a thread $config['mod']['sticky'] = MOD; // Lock a thread diff --git a/inc/display.php b/inc/display.php index f307bb91..8be431aa 100644 --- a/inc/display.php +++ b/inc/display.php @@ -275,6 +275,10 @@ if(hasPermission($config['mod']['deletebyip'], $board['uri'], $this->mod)) $built .= ' ' . confirmLink($config['mod']['link_deletebyip'], 'Delete all posts by IP', 'Are you sure you want to delete all posts by this IP address?', $board['uri'] . '/deletebyip/' . $this->id); + // Delete all posts by IP (global) + if(hasPermission($config['mod']['deletebyip_global'], $board['uri'], $this->mod)) + $built .= ' ' . confirmLink($config['mod']['link_deletebyip_global'], 'Delete all posts by IP across all boards', 'Are you sure you want to delete all posts by this IP address, across all boards?', $board['uri'] . '/deletebyip/' . $this->id . '/global'); + // Ban if(hasPermission($config['mod']['ban'], $board['uri'], $this->mod)) $built .= ' <a title="Ban" href="?/' . $board['uri'] . '/ban/' . $this->id . '">' . $config['mod']['link_ban'] . '</a>'; @@ -368,6 +372,10 @@ if(hasPermission($config['mod']['deletebyip'], $board['uri'], $this->mod)) $built .= ' ' . confirmLink($config['mod']['link_deletebyip'], 'Delete all posts by IP', 'Are you sure you want to delete all posts by this IP address?', $board['uri'] . '/deletebyip/' . $this->id); + // Delete all posts by IP (global) + if(hasPermission($config['mod']['deletebyip_global'], $board['uri'], $this->mod)) + $built .= ' ' . confirmLink($config['mod']['link_deletebyip_global'], 'Delete all posts by IP across all boards', 'Are you sure you want to delete all posts by this IP address, across all boards?', $board['uri'] . '/deletebyip/' . $this->id . '/global'); + // Ban if(hasPermission($config['mod']['ban'], $board['uri'], $this->mod)) $built .= ' <a title="Ban" href="?/' . $board['uri'] . '/ban/' . $this->id . '">' . $config['mod']['link_ban'] . '</a>'; |
