diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-08 19:41:21 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-08 19:41:21 +0000 |
| commit | a59c2e83698d604456fbc85b8a118f7d312cfb39 (patch) | |
| tree | b8d2e335961ec3d01a2b5244f203cf69224461e5 /inc/display.php | |
| parent | 7205801ced0f3b09166f388362f253a613b5ceb2 (diff) | |
Spoil files moderator action
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php index 8c7252ec..49565585 100644 --- a/inc/display.php +++ b/inc/display.php @@ -345,6 +345,10 @@ class Post { if (!empty($this->file) && hasPermission($config['mod']['deletefile'], $board['uri'], $this->mod)) $built .= ' ' . secure_link_confirm($config['mod']['link_deletefile'], _('Delete file'), _('Are you sure you want to delete this file?'), $board['dir'] . 'deletefile/' . $this->id); + // Spoiler file (keep post) + if (!empty($this->file) && $this->file != "deleted" && $this->file != null && $this->thumb != 'spoiler' && hasPermission($config['mod']['spoilerimage'], $board['uri'], $this->mod) && $config['spoiler_images']) + $built .= ' ' . secure_link_confirm($config['mod']['link_spoilerimage'], 'Spoiler File', 'Are you sure you want to spoiler this file?', $board['uri'] . '/spoiler/' . $this->id); + // Edit post if (hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) $built .= ' <a title="'._('Edit post').'" href="?/' . $board['dir'] . 'edit' . ($config['mod']['raw_html_default'] ? '_raw' : '') . '/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>'; @@ -445,6 +449,10 @@ class Thread { // Delete file (keep post) if (!empty($this->file) && $this->file != 'deleted' && hasPermission($config['mod']['deletefile'], $board['uri'], $this->mod)) $built .= ' ' . secure_link_confirm($config['mod']['link_deletefile'], _('Delete file'), _('Are you sure you want to delete this file?'), $board['dir'] . 'deletefile/' . $this->id); + + // Spoiler file (keep post) + if (!empty($this->file) && $this->file != "deleted" && $this->file != null && $this->thumb != 'spoiler' && hasPermission($config['mod']['spoilerimage'], $board['uri'], $this->mod) && $config['spoiler_images']) + $built .= ' ' . secure_link_confirm($config['mod']['link_spoilerimage'], 'Spoiler File', 'Are you sure you want to spoiler this file?', $board['uri'] . '/spoiler/' . $this->id); // Sticky if (hasPermission($config['mod']['sticky'], $board['uri'], $this->mod)) |
