forked from leftypol/leftypol
Add ability to create custom user/permissions groups
This commit is contained in:
parent
9a846d5ad5
commit
eea4e42609
9 changed files with 93 additions and 54 deletions
|
@ -265,6 +265,15 @@ function verbose_error_handler($errno, $errstr, $errfile, $errline) {
|
|||
));
|
||||
}
|
||||
|
||||
function define_groups() {
|
||||
global $config;
|
||||
|
||||
foreach ($config['mod']['groups'] as $group_value => $group_name)
|
||||
defined($group_name) or define($group_name, $group_value, true);
|
||||
|
||||
ksort($config['mod']['groups']);
|
||||
}
|
||||
|
||||
function create_antibot($board, $thread = null) {
|
||||
require_once dirname(__FILE__) . '/anti-bot.php';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue