diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-12 21:08:54 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-12 21:08:54 +1000 |
| commit | c596d457112bb3288c0d650884022f72a9d7f35c (patch) | |
| tree | c26e9bcfa138b47641328460235a94b3c5fd035f /post.php | |
| parent | 614491880fb8b1efa7b6edd9a360af2e35e18af1 (diff) | |
New `capcode` field for posts and custom capcodes (run install.php to upgrade tables)
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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'] .= ' <a class="capcode">## ' . $post['mod_tag'] . '</a>'; - wordfilters($post['body']); $post['body_nomarkup'] = $post['body']; |
