Here's a trivial hack for adding a config setting to disable new user registration.
newuser.php
Find:
// ------------------------------------------------------
// If we are checking ages, the we need to do this first
if ( ($config['checkage']) && ($p != "y") ) {
Insert before:
if ($config['registration_off']) {
$html -> not_right("We are not accepting new user registrations at this time. Please try again later.",$Cat);
}
That's it.
----------------------------
To turn off new user registration, add the following line in Admin -> Edit config settings -> "The following variables are unknown ...":
$config['registration_off'] = '1';
To reenable registration, either change the '1' to '0', or delete that line.
----------------------------
P.S. This is my 1000th post.
