diff options
| author | czaks <marcin@6irc.net> | 2013-08-17 16:21:40 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-17 16:21:40 -0400 |
| commit | bf119b7abd1f37a2871be7cf652adbcd37486a1e (patch) | |
| tree | a5f0737f8e09e354e6908769a61ab9d73710b631 /post.php | |
| parent | ca565d07c2d0157a6b7554fd26cd2157359a2791 (diff) | |
| parent | cff62b250c90f9fd336ceac5e2c557bf4c448859 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
js/post-hover.js
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -432,8 +432,9 @@ if (isset($_POST['delete'])) { error('GeoIP not available: ' . geoip_db_filename(GEOIP_COUNTRY_EDITION)); } if ($country_code = @geoip_country_code_by_name($_SERVER['REMOTE_ADDR'])) { - $post['body'] .= "\n<tinyboard flag>" . strtolower($country_code) . "</tinyboard>" . - "\n<tinyboard flag alt>" . @geoip_country_name_by_name($_SERVER['REMOTE_ADDR']) . "</tinyboard>"; + if (!in_array(strtolower($country_code), array('eu', 'ap', 'o1', 'a1', 'a2'))) + $post['body'] .= "\n<tinyboard flag>" . strtolower($country_code) . "</tinyboard>" . + "\n<tinyboard flag alt>" . @geoip_country_name_by_name($_SERVER['REMOTE_ADDR']) . "</tinyboard>"; } } |
