NOTE --- Removing trailing whitespaces
$username = phpbb_clean_username($username); $sql = "SELECT username FROM " . USERS_TABLE . "
if ($row = $db->sql_fetchrow($result))
while ($row = $db->sql_fetchrow($result))
if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['disallow_username'], '#')) . ")\b#i", $username))
if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['disallow_username'], '#')) . ")\b#i", $username))
if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['word'], '#')) . ")\b#i", $username))
if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['word'], '#')) . ")\b#i", $username))