Unnamed
public php v1 · immutablefunction account_namevalid($username){ $bad_words = array ( 'root','bin','daemon','lp','sync','shutdown','halt','mail', 'news','uucp','operator','games','mysql','httpd','nobody','dummy', 'www','cvs','shell','ftp','irc','debian','ns','download' ); if( (strlen($username) < 5) || (strlen($username) > 25) || (in_array($bad_words,$username)) || (preg_match('/[a-zA-Z0-9]+_/',$username) == 0) ) return false; return true;}