new system config reserved_channels
prevents members from creating channels in a reserved list
This commit is contained in:
parent
db29dc6bff
commit
b224f8056c
@ -100,6 +100,8 @@ This document assumes you're an administrator.
|
||||
the main logs as well.
|
||||
[b]system > hide_in_statistics[/b]
|
||||
Tell the red statistics servers to completely hide this hub in hub lists.
|
||||
[b]system > reserved_channels[/b]
|
||||
Don't allow members to register channels with this comma separated list of names (no spaces)
|
||||
|
||||
#include doc/macros/main_footer.bb;
|
||||
|
||||
|
@ -1815,8 +1815,13 @@ function legal_webbie($s) {
|
||||
|
||||
function check_webbie($arr) {
|
||||
|
||||
$reservechan = get_config('system','reserved_channels');
|
||||
if(strlen($reservechan))
|
||||
$taken = explode(',', $reservechan);
|
||||
else
|
||||
$taken = array();
|
||||
|
||||
$str = '';
|
||||
$taken = array();
|
||||
if(count($arr)) {
|
||||
foreach($arr as $x) {
|
||||
$y = legal_webbie($x);
|
||||
|
Reference in New Issue
Block a user