PASSWD_LEN_MAX) { $complaints[$i] = "The password supplied is too long.  Passwords can be no longer than 20 characters."; $i++; } //Can't contain illegal characters." if (! STRFUNC_is_char_subset($passwd, PASSWD_ALLOWED_CHARS)) { $complaints[$i] = "The password supplied contains illegal characters.  Passwords may contain only " . "characters from the set "" . PASSWD_ALLOWED_CHARS . ""."; $i++; } //If we've registered no complaints, return TRUE, else return the complaints. if ($i) { return($complaints); } else { return(TRUE); } } //-------------------------------------------------------------------------------- ?>