@skol - What is the problem again?
@paketeto - It only checks first post of the topic.
@tommyturnage - Check PM.
@furst - You have found another bug, thanks I will post fix in a moment.
Bug Fix :
Replace
Code:
$qu5 = cc($qu5, "SELECT `username` FROM `".$prefix."user` WHERE `username` = '$uname'");
by
Code:
$qu5 = cc($qu5, "SELECT `username` FROM `".$prefix."user` WHERE `username` = '".mysql_real_escape_string($uname)."'");