i thought i had this covered but seems not.
just had some muppet update all my location and emails to this site always gets hacked.
last person that did this was huwad or his mates .
why dont the codes i got in place stop this ? ? ?
Code:
else if($action=="uprof") { addonline(getuid_sid($sid),"Updating Settings",""); $savat = mysql_real_escape_string($_POST["savat"]); $semail = mysql_real_escape_string($_POST["semail"]); $ubday = mysql_real_escape_string($_POST["ubday"]); $uloc = mysql_real_escape_string($_POST["uloc"]); $usig = mysql_real_escape_string($_POST["usig"]); $usex = mysql_real_escape_string($_POST["usex"]); $ms = mysql_real_escape_string($_POST["ms"]);
Code:
///////////////////// function mysql_real_escape_string($string) { $badWords = "(delete)|(update)|(union)|(insert)| (drop)|(http)|(--)|(>)|(<)|(&)|(#)"; $string = eregi_replace($badWords, "", $string); $string = mysql_real_escape_string($string); return $string; } /////////////////////////////
last person that did this was huwad or his mates .
why dont the codes i got in place stop this ? ? ?
Comment