2 /*------begin------ This protection code was suggested by Luki R. luki@karet.org ---- */
3 if (eregi('inc_string_cleaner.php',$PHP_SELF))
4 die('<meta http-equiv="refresh" content="0; url=../">');
7 function cleanString($dirty_str)
10 if(!empty($dirty_str))
12 $clean_str=str_replace(' ','',strtolower($dirty_str));
13 $clean_str=strtr($clean_str,"/%&!?.*'#[]{}`´§()_-;:+²³@|<>^°ßµ,=äöüáéíóúàèìòùêôûîâçãõ³±¶¼æ¿¹","~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aouaeiouaeioueouiacaolaszczs");
14 $clean_str=str_replace('~','',$clean_str);
15 $clean_str=str_replace("\"","",$clean_str);
16 $clean_str=str_replace('\\','',$clean_str);
17 $clean_str=str_replace('\$','',$clean_str);