From 5adfff925b144161c840f63ebb271c11c3c0c883 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 13 Dec 2010 02:44:43 +1100 Subject: Post moderation controls --- inc/display.php | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'inc/display.php') diff --git a/inc/display.php b/inc/display.php index a5bb1c70..b8a58e2b 100644 --- a/inc/display.php +++ b/inc/display.php @@ -119,9 +119,38 @@ $built .= ', ' . $fraction; } // Filename - $built .= ', ' . $this->filename . ')

' . + $built .= ', ' . $this->filename . ')

' . + // Thumbnail - ''; + ''; + } + + if($mod) { + // Mod controls (on posts) + $built .= '

'; + + // Delete + if($mod['type'] >= MOD_DELETE) + $built .= ' ' . MOD_LINK_DELETE . ''; + + // Delete all posts by IP + if($mod['type'] >= MOD_DELETEBYIP) + $built .= ' ' . MOD_LINK_DELETEBYIP . ''; + + // Ban + if($mod['type'] >= MOD_BAN) + $built .= ' ' . MOD_LINK_BAN . ''; + + // Ban & Delete + if($mod['type'] >= MOD_BANDELETE) + $built .= ' ' . MOD_LINK_BANDELETE . ''; + + // Delete file (keep post) + if($mod['type'] >= MOD_DELETEFILE) + $built .= ' ' . MOD_LINK_DELETEFILE . ''; + + + $built .= '

'; } // Body -- cgit v1.3