- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / include / inc_string_cleaner.php
blob635032efe56afbfd1aa021439b2d35ece76e7342
1 <?php
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=../">');
5 /*------end------*/
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);
19 return $clean_str;