3

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
  1. function is_user_name_allowed($name) {
  2.     global $blacknamelist;
  3.  
  4.     return !in_array($name, $blacknamelist);
  5. }
SEE ALSO

ismailallowed

Comments

To add a comment, click here.