summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-12 21:08:54 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-12 21:08:54 +1000
commitc596d457112bb3288c0d650884022f72a9d7f35c (patch)
treec26e9bcfa138b47641328460235a94b3c5fd035f /post.php
parent614491880fb8b1efa7b6edd9a360af2e35e18af1 (diff)
New `capcode` field for posts and custom capcodes (run install.php to upgrade tables)
Diffstat (limited to 'post.php')
-rw-r--r--post.php7
1 files changed, 2 insertions, 5 deletions
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'] .= ' <a class="capcode">## ' . $post['mod_tag'] . '</a>';
-
wordfilters($post['body']);
$post['body_nomarkup'] = $post['body'];