createOption('submitComment', $strComment,'yesno','yes'); } function unInstall() { mysql_query('DROP TABLE ' . sql_table('plugin_globalblacklist')); } function getEventList() { return array('PostAddBan','PreSendContentType','PreAddComment'); } function event_PostAddBan(&$data) { $ban = $data['iprange']; $this->addGlobalBan( $ban,2 ); } function event_PreSendContentType(&$data){ $ip = getenv('REMOTE_ADDR'); $referer = getenv('HTTP_REFERER'); $host = split("/",str_replace("http://","",$referer)); $domain = str_replace("www.","",$host[0]); $this->checkHost( $domain ); $this->checkHost( $ip ); $this->checkText( $referer ); } function event_PreAddComment(&$data) { $host = split("/",str_replace("http://","", $data['comment']['userid'])); $domain = str_replace("www.","",$host[0]); $this->checkText( $data['comment']['body'] ); $this->checkHost( $data['comment']['ip'] ); $this->checkHost( $domain ); //die ( $data['comment']['userid'] . " - " . $domain ); } function checkHost( $host ){ $sql2 = "SELECT itemstring FROM " . sql_table('plugin_globalblacklist') . " WHERE itemstring LIKE '%$host%' AND type=2"; if ( $host <> "" ) { $result2 = mysql_query( $sql2 ) or die( $sql2 . "
" . mysql_error()); if ( mysql_num_rows($result2) ) { die( $this->showBanError() ); } } } function checkText($text){ $sql = "SELECT itemstring FROM " . sql_table('plugin_globalblacklist') . " WHERE type=1" ; $result = mysql_query( $sql ); while ( $row = mysql_fetch_array( $result ) ) { if ( $row[0] <> "" ) { if ( preg_match("/$row[0]/",$text)){ die( $this->showBanError() ); } } } } function addGlobalBan( $itemstring,$type ) { $sql = "INSERT INTO " . sql_table('plugin_globalblacklist') . "(itemstring,type) VALUES ('$itemstring',$type)"; mysql_query( $sql ) ; $handle = fopen("http://www.jrbtech.com/globalblacklist/add.php?itemvalue=$itemstring&type=$type", "r"); $read = fread($handle, 1024); } function showBanError(){ return " Global Blacklist

Global Blacklist Activated

One of the following just happend:
  • Your ip address could be banned.
  • You came from a site that has been reported has a referal spammer.
  • Your comment(s) contain(s) words that are not allowed on this site.
  • The refering website URL contained black listed keywords.


  • Click Here for More Information "; } function doTemplateVar (&$item, $part = '', $strip = '', $commas = '') { //Initialise default settings if ($part == '') { $part = $this->getOption('part'); } if ($strip == '') { $strip = $this->getOption('strip'); } if ($commas == '') { $commas = $this->getOption('commas'); } switch ($part) { case 'body': $text = $item->body; case 'more': $text = $item->more; break; case 'full': $text = $item->body.$item->more; break; } } function event_QuickMenu(&$data) { array_push( $data['options'], array( 'title' => 'GlobalBlackList', 'url' => $this->getAdminURL(), 'tooltip' => 'Tooltip text' ) ); } } ?> Blog, Capital Financiero - Exprese su opinión en nuestro blog
    Costa Rica
    Panamá
    Archivo Indicadores   Escríbanos

    Lo más reciente
    Actualidad
    Editorial
    Opinión
    Informe Especial
    Entrevista
    Negocios
    Finanzas
    Tecnología
    Economía
    Capital Regional
    Para el usuario
    Legales
    Gerencia
    Estilos de vida

      Blogs  
    Información de: Webmaster
    Website: http://costarica.capitalfinanciero.com/

    Enviar mensaje
    El usuario debe estar registrado para hacer eso

    Ingresar

    :
    :

    Regístrese como miembro en este sitio!

    Búsqueda




    ¿Quiénes Somos? Condiciones de Uso Privacidad Anúnciese en la versión impresa de El Financiero y Capital Financiero
    © 2006 El Financiero y Capital Financiero. El contenido de El Financiero y de Capital Financiero no puede
    ser reproducido, transmitido ni distribuido total o parcialmente sin la
    autorización previa y por escrito de El Financiero o de Capital Financiero.