Browse Source

Random names for anonymous users - thanks to svnth

pull/40/head
Jano Slota 10 years ago
committed by czaks
parent
commit
4adf893c39
  1. 3
      inc/config.php
  2. 3
      inc/functions.php

3
inc/config.php

@ -773,7 +773,8 @@
// $config['board_path'] if you wish to change the URL.
$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';
// Number of reports you can create at once.

3
inc/functions.php

@ -240,6 +240,9 @@ function loadConfig() {
event_handler('post', 'postHandler');
}
if (is_array($config['anonymous']))
$config['anonymous'] = $config['anonymous'][array_rand($config['anonymous'])];
event('load-config');
if ($config['debug']) {

Loading…
Cancel
Save