The Punisher
Kayıtlı Üye
- Forum Yaşı
- 11 Yıl
- Mesajlar
- 578
- Tepkime puanı
- 220
PHP:
function G_filter($text) {
if ( is_array($text) ) {
$text = array_map('G_filter', $text);
} else {
if ( get_magic_quotes_gpc() ) {
$text = htmlspecialchars(stripcslashes(trim($text)),ENT_QUOTES);
} else {
$text = htmlspecialchars(trim($text),ENT_QUOTES);
}
}
return $text;
}
$_GET = array_map('G_filter',$_GET);
$_POST = array_map('G_filter',$_POST);
$_COOKIE = array_map('G_filter',$_COOKIE);