Browse Source

Check if mod post

pull/40/head
Savetheinternet 13 years ago
parent
commit
13cd22e324
  1. 9
      post.php

9
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'];

Loading…
Cancel
Save