Add ability to create custom user/permissions groups

This commit is contained in:
Michael Foster committed 2013-09-09 01:33:51 +10:00
1 parent 9a846d5ad5
commit eea4e42609
9 files changed
+93 -54

No files matched your search

+9
View File
@@ -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';