From 13cd22e32405e7fceb80e12699616829ac0002df Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 2 Jan 2011 21:10:33 +1100 Subject: [PATCH] Check if mod post --- post.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/post.php b/post.php index 6233f807..f79dc5a6 100644 --- a/post.php +++ b/post.php @@ -83,6 +83,15 @@ $post['password'] = $_POST['password']; $post['filename'] = $_FILES['file']['name']; $post['has_file'] = $OP || !empty($_FILES['file']['tmp_name']); + $post['mod'] = isset($_POST['mod']) && $_POST['mod']; + + if($post['mod']) { + require 'inc/mod.php'; + if(!$mod) { + // Liar. You're not a mod. + error(ERROR_NOTAMOD); + } + } if($post['has_file']) { $size = $_FILES['file']['size'];