Second rework of the GeoIP code, now supporting cities!

This commit is contained in:
Jano Slota 2014-07-05 02:11:31 +02:00 committed by czaks
parent a1d2d2388a
commit 2488e77e86
7 changed files with 7052 additions and 7 deletions

View file

@ -776,10 +776,11 @@
// The default name (e.g. Anonymous). Can be an array - in that case it's picked randomly from the array.
// Example: $config['anonymous'] = array('Bernd', 'Senpai', 'Jonne', 'ChanPro');
$config['anonymous'] = 'Anonymous';
// Pick the default name based on the poster's country. Can contain subarrays and is picked randomly from the them.
// Pick the default name based on the poster's country or city. Can contain subarrays and is picked randomly from them.
// If the user posts from a country you have not set a name for, his name is going to be whatever you set in $config['anonymous'].
// Example 1: $config['country_anonymous'] = array('cz' => 'Pepik', 'pl' => 'Karol Wojtyla', 'de' => 'Bernd', 'fi' => 'Jonne');
// Example 2: $config['country_anonymous'] = array('cz' => array('Pepik', 'Bohus', 'Lada'), 'pl' => array('Karol Wojtyla', 'Demon Pedofyl');
// Example 3: $config['country_anonymous'] = array('cz' => array('Prague' => 'Pepik', 'Ostrava' => array('Bohus', 'Lada')), 'pl' => array('Karol Wojtyla', 'Demon Pedofyl'));
$config['country_anonymous'] = false;
// Number of reports you can create at once.