PHP Classes
Icontem

File: isPorno.inc


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Colin Sandy Pittendrigh  >  BBS_Bulletin_Board  >  isPorno.inc  
File: isPorno.inc
Role: Auxiliary script
Content type: text/plain
Description: list of well-known porno keywords
Class: BBS_Bulletin_Board
A simple file-based, threaded bulletin board
 

Contents

Class file image Download
<?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("/\&/","&amp;",$str);
 
$str preg_replace("/'/","&apos;",$str);
 return (
$str);
}

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products