![]() |
|
|
#6 | |
|
Архивный участник
Join Date: Oct 2006
Posts: 112
|
Quote:
http://l2storm.com/forum/index.php?showtopic=121 http://wpe.nm.ru/l2cp.zip function.php: Code:
function antiinjection($str) {
$banwords = array ("'", ",", ";", "--");
if ( eregi ( "[a-zA-Z0-9]+", $str ) ) {
$str = str_replace ( $banwords, '', strtolower ( $str ) );
} else {
$str = NULL;
}
return $str;
}
|
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|