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  

    La generación del momento presente

    getOption('time_outtext'); exit; } return $data; } } class NP_Smiley extends NucleusPlugin { function getName() { return 'Smiley'; } function getAuthor() { return 'Lama Himself | Edmond Hui (admun)'; } function getURL() { return 'http://www.gaming-side.com/lama/'; } function getVersion() { return '0.7'; } function getDescription() { return 'This plugin provides phpbb emoticons support, also create link for URL and email address.'; } function install() { $this->createOption('ItemEnable','Use Smiley in the items ?','yesno','yes'); $this->createOption('CommentEnable','Use Smiley in the comment ?','yesno','yes'); $this->createOption('LinkEnable','Auto create link with internet adresses ?','yesno','no'); } function supportsFeature($what) { switch($what) { case 'SqlTablePrefix': return 1; default: return 0; } } function getEventList() { return array('PreItem', 'PreComment'); } function Treatment($_text) { global $CONF, $blog; $emoticons = array( ':wink:' => 'icon_wink.gif', ':lol:' => 'icon_lol.gif', ':cry:' => 'icon_cry.gif', ':evil:' => 'icon_evil.gif', ':twisted:' => 'icon_twisted.gif', ':roll:' => 'icon_rolleyes.gif', ':idea:' => 'icon_idea.gif', ':arrow:' => 'icon_arrow.gif', ':mrgreen:' => 'icon_mrgreen.gif', ':-)' => 'icon_smile.gif', ':)' => 'icon_smile.gif', ':-(' => 'icon_sad.gif', ':(' => 'icon_sad.gif', ';-)' => 'icon_wink.gif', ';)' => 'icon_wink.gif', ':!:' => 'icon_exclaim.gif', ':?:' => 'icon_question.gif', ':oops:' => 'icon_redface.gif', ':o' => 'icon_surprised.gif', ':-D' => 'icon_biggrin.gif', ':D' => 'icon_biggrin.gif', '8O' => 'icon_eek.gif', '8)' => 'icon_cool.gif', ':?' => 'icon_confused.gif', ':x' => 'icon_mad.gif', ':P' => 'icon_razz.gif', ':|' => 'icon_neutral.gif' ); foreach ($emoticons as $smile => $img) { $_text = str_replace($smile, ' '.rtrim(substr($img,5), '.gif').' ', $_text); } if ($this->getOption('LinkEnable') == 'yes') { $_text = preg_replace('/(\s)([a-z]+?:\/\/\S*)/si','\1\2',$_text); $_text = preg_replace('/(\s)(www\.\S+)/si','\1\2',$_text); $_text = preg_replace('/(\S*@\S*\.\S*)/si','\1',$_text); } return $_text; } function event_PreItem($_data) { if ($this->getOption('ItemEnable') == 'no') return; $_data[item]->body = $this->Treatment($_data[item]->body); $_data[item]->more = $this->Treatment($_data[item]->more); } function event_PreComment($_data) { if ($this->getOption('CommentEnable') == 'no') return; $_data['comment']['body'] = $this->Treatment($_data['comment']['body']); } function doSkinVar($skinType, $param) { if ($param == 'panel') { global $DIR_PLUGINS, $CONF; $in = file_get_contents($DIR_PLUGINS.'emoticons/smiley_panel.template'); $in = str_replace('##URL##',$CONF['PluginURL'],$in); echo $in; } elseif ($param == 'script') { ?>

    Por Rodolfo González

    Tienen más y se les exige más. El mundo está al alcance de un click, pero justo cuando todo parece más fácil (conseguir información al instante, comunicarse en tiempo real con un amigo en otro país) el mundo se vuelve más complejo:

    Acostumbrados a un estilo de vida menos restrictivo que el de sus padres, tanto en productos de consumo y posibilidades de diversión, su enorme capacidad de soñar con ideales de un mundo más justo choca a menudo con el temor de perder su nivel de vida si en el futuro no son competitivos en el mercado.

     Los padres echan más leña al fuego al insistirles que deben buscar una carrera que les deje dinero, por lo cual muchos desechan opciones que les llama fuertemente la atención, como por ejemplo el arte,  el deporte o el altruísmo.

    Bajar PDFBajar PDF Informe Especial

    Ver diccionario de la i-generación

    (Ver más)

    Para enteder su mundo...

    getOption('time_outtext'); exit; } return $data; } } class NP_Smiley extends NucleusPlugin { function getName() { return 'Smiley'; } function getAuthor() { return 'Lama Himself | Edmond Hui (admun)'; } function getURL() { return 'http://www.gaming-side.com/lama/'; } function getVersion() { return '0.7'; } function getDescription() { return 'This plugin provides phpbb emoticons support, also create link for URL and email address.'; } function install() { $this->createOption('ItemEnable','Use Smiley in the items ?','yesno','yes'); $this->createOption('CommentEnable','Use Smiley in the comment ?','yesno','yes'); $this->createOption('LinkEnable','Auto create link with internet adresses ?','yesno','no'); } function supportsFeature($what) { switch($what) { case 'SqlTablePrefix': return 1; default: return 0; } } function getEventList() { return array('PreItem', 'PreComment'); } function Treatment($_text) { global $CONF, $blog; $emoticons = array( ':wink:' => 'icon_wink.gif', ':lol:' => 'icon_lol.gif', ':cry:' => 'icon_cry.gif', ':evil:' => 'icon_evil.gif', ':twisted:' => 'icon_twisted.gif', ':roll:' => 'icon_rolleyes.gif', ':idea:' => 'icon_idea.gif', ':arrow:' => 'icon_arrow.gif', ':mrgreen:' => 'icon_mrgreen.gif', ':-)' => 'icon_smile.gif', ':)' => 'icon_smile.gif', ':-(' => 'icon_sad.gif', ':(' => 'icon_sad.gif', ';-)' => 'icon_wink.gif', ';)' => 'icon_wink.gif', ':!:' => 'icon_exclaim.gif', ':?:' => 'icon_question.gif', ':oops:' => 'icon_redface.gif', ':o' => 'icon_surprised.gif', ':-D' => 'icon_biggrin.gif', ':D' => 'icon_biggrin.gif', '8O' => 'icon_eek.gif', '8)' => 'icon_cool.gif', ':?' => 'icon_confused.gif', ':x' => 'icon_mad.gif', ':P' => 'icon_razz.gif', ':|' => 'icon_neutral.gif' ); foreach ($emoticons as $smile => $img) { $_text = str_replace($smile, ' '.rtrim(substr($img,5), '.gif').' ', $_text); } if ($this->getOption('LinkEnable') == 'yes') { $_text = preg_replace('/(\s)([a-z]+?:\/\/\S*)/si','\1\2',$_text); $_text = preg_replace('/(\s)(www\.\S+)/si','\1\2',$_text); $_text = preg_replace('/(\S*@\S*\.\S*)/si','\1',$_text); } return $_text; } function event_PreItem($_data) { if ($this->getOption('ItemEnable') == 'no') return; $_data[item]->body = $this->Treatment($_data[item]->body); $_data[item]->more = $this->Treatment($_data[item]->more); } function event_PreComment($_data) { if ($this->getOption('CommentEnable') == 'no') return; $_data['comment']['body'] = $this->Treatment($_data['comment']['body']); } function doSkinVar($skinType, $param) { if ($param == 'panel') { global $DIR_PLUGINS, $CONF; $in = file_get_contents($DIR_PLUGINS.'emoticons/smiley_panel.template'); $in = str_replace('##URL##',$CONF['PluginURL'],$in); echo $in; } elseif ($param == 'script') { ?>   1. ¿Si estuvieras en una isla desierta y tuvieras que llevar sólo una cosa, qué llevarías?

    -"Un libro de muchas hojas, porque te entretienes y al mismo tiempo aprendes".

    Nayeli Reyes, 10 años.

    -"Mi laptop, para mantenerme informada de lo que pasa en otras partes del mundo mientras estoy en la isla"

    Mariana Martin, 17 años

    -"Música, una cámara y algo para escribir"

    Rodolfo Gutiérrez, 16 años

    2. ¿Qué les molesta  de  los adultos?

    -"Que sean muy controladores y manipuladores"

    Andrea Chavarría, 15 años.

    -"Depende de lo que uno defina como adultos. Los abuelitos son tan cerrados de mente que no nos permitirían ir a una fiesta y  salir a las 3 de la mañana. Los papas son más apegados a la realidad en que vivimos"

    Estefanía Venenti, 16 años.

    Bajar PDFBajar PDF Informe Especial

    Ver diccionario de la i-generación

    (Ver más)

    Ingresar

    :
    :

    Regístrese como miembro en este sitio!

    Búsqueda


    Archivo

    June, 2006



    ¿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.