14
isusernameallowed
is_user_name_allowed
SYNOPSIS
is_user_name_allowed($name)
DESCRIPTION
is_user_name_allowed
returns false
if $name
is a user name which is forbidden, true
if $name
is allowed.
The list of forbidden user names is defined by the configuration parameter $blacknamelist
in the file includes/config.inc.
global $blacknamelist;
$blacknamelist = array('izend', 'webmaster', 'keymaster');
CODE
- function is_user_name_allowed($name) {
- global $blacknamelist;
- return !in_array($name, $blacknamelist);
- }
Comments