mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-14 02:47:39 +01:00
Random names for anonymous users - thanks to svnth
This commit is contained in:
parent
7b339f7f56
commit
4adf893c39
@ -773,7 +773,8 @@
|
|||||||
// $config['board_path'] if you wish to change the URL.
|
// $config['board_path'] if you wish to change the URL.
|
||||||
$config['board_abbreviation'] = '/%s/';
|
$config['board_abbreviation'] = '/%s/';
|
||||||
|
|
||||||
// The default name (ie. Anonymous).
|
// The default name (ie. 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';
|
$config['anonymous'] = 'Anonymous';
|
||||||
|
|
||||||
// Number of reports you can create at once.
|
// Number of reports you can create at once.
|
||||||
|
@ -240,6 +240,9 @@ function loadConfig() {
|
|||||||
event_handler('post', 'postHandler');
|
event_handler('post', 'postHandler');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($config['anonymous']))
|
||||||
|
$config['anonymous'] = $config['anonymous'][array_rand($config['anonymous'])];
|
||||||
|
|
||||||
event('load-config');
|
event('load-config');
|
||||||
|
|
||||||
if ($config['debug']) {
|
if ($config['debug']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user