forked from leftypol/leftypol
Much better post modifiers: raw HTML, ban messages, etc.
This commit is contained in:
parent
cc62b888af
commit
4876a27232
4 changed files with 26 additions and 51 deletions
10
post.php
10
post.php
|
@ -421,19 +421,19 @@ if (isset($_POST['delete'])) {
|
|||
wordfilters($post['body']);
|
||||
$post['body'] = escape_markup_modifiers($post['body']);
|
||||
|
||||
if ($mod && isset($post['raw']) && $post['raw']) {
|
||||
$post['body'] .= '<tinyboard raw html>1</tinyboard>';
|
||||
}
|
||||
|
||||
if ($config['country_flags']) {
|
||||
if (!geoip_db_avail(GEOIP_COUNTRY_EDITION)) {
|
||||
error('GeoIP not available: ' . geoip_db_filename(GEOIP_COUNTRY_EDITION));
|
||||
}
|
||||
if ($country_code = @geoip_country_code_by_name('8.8.8.8')) {
|
||||
if ($country_code = @geoip_country_code_by_name($_SERVER['REMOTE_ADDR'])) {
|
||||
$post['body'] .= '<tinyboard flag_country>' . strtolower($country_code) . '</tinyboard>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($mod && isset($post['raw']) && $post['raw']) {
|
||||
$post['body'] = '<tinyboard raw html>' . $post['body'] . '</tinyboard>';
|
||||
}
|
||||
|
||||
if (mysql_version() >= 50503) {
|
||||
$post['body_nomarkup'] = $post['body']; // Assume we're using the utf8mb4 charset
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue