hi! to all coders.. how to blocked user that use "phproxy" username in my site.. someone register in my site and use phproxy as a username..


function banned_browser($banned_browser) { $var[1] = 'http://Anonymouse.org/'; $var[2] = 'http://'; $result = count($var); for ($i=0;$i<$result;$i++) { $ausg = stristr($banned_browser, $var[$i]); if(strlen($ausg)>0) { die("Unauthorised browser detected.<br/> Please use your main browser"); } } }
$banned_browser = $_SERVER['HTTP_USER_AGENT']; banned_browser($banned_browser);
/* I don't know everything hehe */
else if(strlen($uid)==phproxy)
{
echo "Please chose another username";
}
/* I don't know everything hehe */
[COLOR="Red"]$cmd [/COLOR]= str_replace("phproxy","NOT ALLOWED",[COLOR="Red"]$cmd[/COLOR]);
Comment