From c596d457112bb3288c0d650884022f72a9d7f35c Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 12 Apr 2011 21:08:54 +1000 Subject: New `capcode` field for posts and custom capcodes (run install.php to upgrade tables) --- post.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'post.php') diff --git a/post.php b/post.php index 1dd737cc..45c0fdf3 100644 --- a/post.php +++ b/post.php @@ -260,11 +260,11 @@ if($mod && $mod['type'] >= MOD && preg_match('/^((.+) )?## (.+)$/', $post['name'], $match)) { if(($mod['type'] == MOD && $match[3] == 'Mod') || $mod['type'] >= ADMIN) { - $post['mod_tag'] = utf8tohtml($match[3]); + $post['capcode'] = utf8tohtml($match[3]); $post['name'] = !empty($match[2])?$match[2]:$config['anonymous']; } } else { - $post['mod_tag'] = false; + $post['capcode'] = false; } $trip = generate_tripcode($post['name']); @@ -291,9 +291,6 @@ if(!(!$OP && $post['has_file']) && strlen($post['body']) < 1) error($config['error']['tooshort_body']); if(strlen($post['password']) > 20) error(sprintf($config['error']['toolong'], 'password')); - if($post['mod_tag']) - $post['trip'] .= ' ## ' . $post['mod_tag'] . ''; - wordfilters($post['body']); $post['body_nomarkup'] = $post['body']; -- cgit v1.3