This is real crap.
You practicly stole this injection filter from web, and its so useless.
Code:
foreach($_GET as $key => $value){
$_GET[$key] = mysql_real_escape_string(htmlspecialchars(addslashes($value),ENT_QUOTES));
}
foreach($_POST as $key => $value){
$_POST[$key] = mysql_real_escape_string(htmlspecialchars(addslashes($value),ENT_QUOTES));
}
foreach($_REQUEST as $key => $value){
$_REQUEST[$key] = mysql_real_escape_string(htmlspecialchars(addslashes($value),ENT_QUOTES));
}
Past this in your config.php file. And you're done. That is all useless crap.

Originally Posted by
joopie
What about strip_tags/htmlentries/real escape string
We don't need that hardcore function of you?
Also, Where is that post of kryptos, I wanna like it ;x
Edit: forgot filter_var...
Agree. He is just reposting functions with some function.
WTH?! Nothing is even calling the function: function RemoveXSS($val).....
You're really dumb with PHP. You need to call the function if you add it.
omg?!?!. This guy thinks php does all the work itself >_<'