diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 21:10:33 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 21:10:33 +1100 |
| commit | 13cd22e32405e7fceb80e12699616829ac0002df (patch) | |
| tree | 8924a379b1bf5833d71813b3dea2420742d2b798 | |
| parent | 82557e2c125989cccae40b4b82c2e310f05409c4 (diff) | |
Check if mod post
| -rw-r--r-- | post.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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']; |
