コード例 #1
0
ファイル: filter.php プロジェクト: gigikiri/curlwp
function CleanFileNameTitle($title)
{
    $title = request_as_words($_SERVER['REQUEST_URI']);
    $title = str_replace('&#8230', '', $title);
    $title = str_replace(' &#8211', '', $title);
    $title = str_replace('&#8216', '', $title);
    $title = str_replace('&#8217', '', $title);
    $title = str_replace('&#39', '', $title);
    $title = str_replace(' &amp', '', $title);
    $title = str_replace(' ...', '', $title);
    $title = str_replace(':', '', $title);
    $title = str_replace(' |', '', $title);
    $title = str_replace(';', '', $title);
    $title = str_replace(';', '', $title);
    $title = str_replace(':', '', $title);
    $title = str_replace('(', '', $title);
    $title = str_replace(')', '', $title);
    $title = str_replace(' ?', '', $title);
    $title = str_replace(' ?', '', $title);
    $title = str_replace(',', '', $title);
    $title = str_replace(' -', '', $title);
    $title = str_replace(' /', '', $title);
    $title = str_replace('nude', '', $title);
    $title = str_replace('desnudo', '', $title);
    $title = str_replace('nudis', '', $title);
    $title = str_replace('p**n', '', $title);
    $title = str_replace('porno', '', $title);
    $title = str_replace('t**s', '', $title);
    $title = str_replace('h**o', '', $title);
    $title = str_replace('zoo', '', $title);
    $title = str_replace('zoosex', '', $title);
    $title = str_replace('fedofilia', '', $title);
    $title = str_replace('filia', '', $title);
    $title = str_replace('sex', '', $title);
    $title = str_replace('cybersex', '', $title);
    $title = str_replace('seks', '', $title);
    $title = str_replace('keygen', '', $title);
    $title = str_replace('crack', '', $title);
    $title = str_replace('.com', '+com', $title);
    $title = str_replace('.net', '+net', $title);
    $title = str_replace('.info', '+info', $title);
    $title = str_replace('.org', '+org', $title);
    $title = str_replace('.us', '+us', $title);
    $title = str_replace('.co.id', '+co+id', $title);
    $title = str_replace('masturbasi', ' ', $title);
    $title = str_replace('masturbation', ' ', $title);
    $title = str_replace('penis', ' ', $title);
    $title = str_replace('berita', ' ', $title);
    $title = str_replace('judi', ' ', $title);
    $title = str_replace('gambling', ' ', $title);
    $title = str_replace('gambler', ' ', $title);
    $title = str_replace('ngentube', ' ', $title);
    $title = str_replace('ngetube', ' ', $title);
    $title = str_replace('sincensura', ' ', $title);
    $title = str_replace('censura', ' ', $title);
    $title = str_replace('prohibidas', ' ', $title);
    $title = str_replace('xurupita', ' ', $title);
    $title = str_replace('bokep', ' ', $title);
    $title = str_replace('setubuh', ' ', $title);
    $title = str_replace('jembut', ' ', $title);
    $title = str_replace('perkosa', ' ', $title);
    $title = str_replace('telanjang', ' ', $title);
    $title = str_replace('ngangkang', ' ', $title);
    $title = str_replace('dewasa', ' ', $title);
    $title = str_replace('perawan', ' ', $title);
    $title = str_replace('gadis', ' ', $title);
    $title = str_replace('bencong', ' ', $title);
    $title = str_replace('ngesek', ' ', $title);
    $title = str_replace('jembut', ' ', $title);
    $title = str_replace('Ejecuciones', ' ', $title);
    $title = str_replace('kemaluan', ' ', $title);
    $title = str_replace('abusadas', ' ', $title);
    $title = str_replace('desnuda', ' ', $title);
    $title = str_replace('desnudo', ' ', $title);
    $title = str_replace('handjob', ' ', $title);
    $title = str_replace('À', 'A', $title);
    $title = str_replace('Á', 'A', $title);
    $title = str_replace('Â', 'A', $title);
    $title = str_replace('Ã', 'A', $title);
    $title = str_replace('Ä', 'A', $title);
    $title = str_replace('Å', 'A', $title);
    $title = str_replace('Æ', 'A', $title);
    $title = str_replace('Ç', 'C', $title);
    $title = str_replace('È', 'E', $title);
    $title = str_replace('É', 'E', $title);
    $title = str_replace('Ê', 'E', $title);
    $title = str_replace('Ë', 'E', $title);
    $title = str_replace('Ì', 'I', $title);
    $title = str_replace('Í', 'I', $title);
    $title = str_replace('Î', 'I', $title);
    $title = str_replace('Ï', 'I', $title);
    $title = str_replace('Ð', 'D', $title);
    $title = str_replace('Ñ', 'N', $title);
    $title = str_replace('Ò', 'O', $title);
    $title = str_replace('Ó', 'O', $title);
    $title = str_replace('Ô', 'O', $title);
    $title = str_replace('Õ', 'O', $title);
    $title = str_replace('Ö', 'O', $title);
    $title = str_replace('Ø', 'O', $title);
    $title = str_replace('Ù', 'U', $title);
    $title = str_replace('Ý', 'Y', $title);
    $title = str_replace('Ü', 'U', $title);
    $title = str_replace('Û', 'U', $title);
    $title = str_replace('Ú', 'U', $title);
    $title = str_replace('Þ', 'p', $title);
    $title = str_replace('ß', 'b', $title);
    $title = str_replace('à', 'a', $title);
    $title = str_replace('á', 'a', $title);
    $title = str_replace('â', 'a', $title);
    $title = str_replace('ã', 'a', $title);
    $title = str_replace('ä', 'a', $title);
    $title = str_replace('å', 'a', $title);
    $title = str_replace('æ', 'a', $title);
    $title = str_replace('ç', 'c', $title);
    $title = str_replace('è', 'e', $title);
    $title = str_replace('é', 'e', $title);
    $title = str_replace('ê', 'e', $title);
    $title = str_replace('ë', 'e', $title);
    $title = str_replace('ì', 'i', $title);
    $title = str_replace('í', 'i', $title);
    $title = str_replace('î', 'i', $title);
    $title = str_replace('ï', 'i', $title);
    $title = str_replace('ð', 'o', $title);
    $title = str_replace('ñ', 'n', $title);
    $title = str_replace('ò', 'o', $title);
    $title = str_replace('ó', 'o', $title);
    $title = str_replace('ô', 'o', $title);
    $title = str_replace('õ', 'o', $title);
    $title = str_replace('ö', 'o', $title);
    $title = str_replace('ø', 'o', $title);
    $title = str_replace('ù', 'u', $title);
    $title = str_replace('ú', 'u', $title);
    $title = str_replace('û', 'u', $title);
    $title = str_replace('ü', 'u', $title);
    $title = str_replace('ý', 'y', $title);
    $title = str_replace('þ', 'p', $title);
    $title = str_replace('ÿ', 'y', $title);
    $title = trim(strip_tags($title));
    return $title;
}
コード例 #2
0
ファイル: 404.php プロジェクト: erudith/trickagcpopup
function CleanFileNameTitle($title){



$title = request_as_words($_SERVER['REQUEST_URI']);



    $title = str_replace('&#8230', '', $title);



    $title = str_replace(' &#8211', '', $title);



    $title = str_replace('&#8216', '', $title);



    $title = str_replace('&#8217', '', $title);



    $title = str_replace('&#39', '', $title);



    $title = str_replace(' &amp', '', $title);



    $title = str_replace(' ...', '', $title);



    $title = str_replace(':', '', $title);



    $title = str_replace(' |', '', $title);



    $title = str_replace(';', '', $title);



    $title = str_replace(';', '', $title);



    $title = str_replace(':', '', $title);



    $title = str_replace('(', '', $title);



    $title = str_replace(')', '', $title);



    $title = str_replace(' ?', '', $title);



    $title = str_replace(' ?', '', $title);



    $title = str_replace(',', '', $title);



    $title = str_replace(' -', '', $title);



    $title = str_replace(' /', '', $title);



    $title = str_replace('.com', '+com', $title);



    $title = str_replace('.net', '+net', $title);



    $title = str_replace('.info', '+info', $title);



    $title = str_replace('.org', '+org', $title);



    $title = str_replace('.us', '+us', $title);



    $title = str_replace('.co.id', '+co+id', $title);



      $title = trim(strip_tags($title));



    return ($title);



}