<?php
function isPorno($str) { $ret = false; if( strstr($str,"porn") || (stristr($str, "virtual") && stristr($str, "business")) || (stristr($str, "diet") && stristr($str, "pill")) || (stristr($str, "exchange") && stristr($str, "money")) || (stristr($str, "seo") && stristr($str, "squirrel")) || stristr($str, "didrex") || stristr($str, "worlddatinghere") || stristr($str, "lesbian") || stristr($str, "novbogaten") || stristr($str, "democratic-economy") || stristr($str, "dollar-alert") || stristr($str, "squirrelht") || stristr($str, "songmusmp") || stristr($str, "blogspot") || stristr($str, "cunt") || stristr($str, "pussy") || stristr($str, "phentermine") || stristr($str, "aeae5ad") || stristr($str, "xanax") || stristr($str, "URL=") || stristr($str, "valium") || stristr($str, "CUM") || stristr($str, "squirrelsoft") || stristr($str, "adipex") || stristr($str, "medicationsnews") || stristr($str, "phentermineus") || stristr($str, "ringtones") || stristr($str, "cardcredit") || stristr($str, "mega-gays") || stristr($str, "gay love") || stristr($str, "gay.net") || stristr($str, "cock") || stristr($str, "casino") || stristr($str, "lia-dating") || stristr($str, "viagra") || stristr($str, "multimedia") || stristr($str, "traffexchanger") || stristr($str, "qrdhwi") || stristr($str, "onesite") || stristr($str, "dvdsundries") || stristr($str, "pharmacy") || stristr($str, "viagra") || stristr($str, "linkwizard") || stristr($str, "mp3s-albums") || stristr($str, "yandex") || stristr($str, "icq") || stristr($str, "masterbell") || stristr($str, "xanax") || stristr($str, "prescription") ) { $fp = fopen("/home/virtual/montana-riverboats.com/var/www/html/LOGS/porno.log","a"); fwrite($fp, $str); fclose($fp); $ret = true; exit(); } return $ret; }
function text_to_html($str) { /** // uncomment this stuff if you also install class.input.filter // http://www.phpclasses.org/browse/file/8942.html $tags[]= "a"; $tags[]= "img"; $tags[]= "br"; $attr[]= "src"; $attr[]= "align"; $attr[]= "href"; $attr[]= "class"; $tag_method= 0; $attr_method= 0; $xss_auto= 1; **/
$str = nl2br($str); $str = preg_replace("/\\\/","",$str); //$myFilter= new InputFilter($tags, $attr, $tag_method, $attr_method, $xss_auto); //$result= $myFilter->process($str);
// might want to zap or change the next line, if you use InputFilter above $result = htmlentities($str); return $result; }
function stripSuffix($srcfile) { $dotPos = strrpos($srcfile,"."); $ret = substr($srcfile,0, $dotPos); return $ret; }
function fixInput($str) { $str = preg_replace("/\&/","&",$str); $str = preg_replace("/'/","'",$str); return ($str); }
?>
|