vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Goatse.cx hack (https://vborg.vbsupport.ru/showthread.php?t=28122)

DefSTONED 09-14-2001 10:00 PM

About

This is a simple hack that replaces evil goatse.cx links with a friendly link to gratuitous kitty pictures at www.oralse.cx

This should work on all versions of vB but has only been tested in v2.0.3


Code

In functions.php, add the following function anywhere you please...I've put it above the function censortext to keep the hack all in one place.

PHP Code:

// ###################### Start stri_replace #####################
// Case-insensitive str_replace function found on php.net

function stri_replace($searchFor$replaceWith$string$offset 0) { 
    
    
$lsearchFor strtolower($searchFor); 
    
$lstring strtolower($string); 
    
$newPos strpos($lstring$lsearchFor$offset); 
    
    if (
strlen($newPos) == 0) { 
        return(
$string); 
    } else {
        
$left substr($string0$newPos); 
        
$right substr($string$newPos strlen($searchFor)); 
        
$newStr $left $replaceWith $right
        return 
stri_replace($searchFor$replaceWith$newStr$newPos strlen($replaceWith)); 
    } 


At the top of the function censortext replace the following code:

PHP Code:

// ###################### Start censortext #######################
function censortext($text) {
  global 
$enablecensor,$censorwords,$censorword,$censorchar

with this:

PHP Code:

// ###################### Start censortext #######################
function censortext($text) {
  global 
$enablecensor,$censorwords,$censorword,$censorchar;
  
  
//start goatse hack 
  
$text stri_replace("http://www.goatse.cx","http://www.oralse.cx",$text);
  
$text stri_replace("http://goatse.cx","http://oralse.cx",$text);
  
//end goatse 

That is all folks! People can now blindly click links in the knowledge that they won't be faced with Mr Goatse, but instead a friendly little kitten :)

merk 09-15-2001 02:18 PM

lol.

I wouldnt just ban people who past that link on my board.

Nice little hack there

Admin 09-15-2001 03:25 PM

LOL good idea. :D

Dakota 09-18-2001 04:01 PM

*Warning...do not click the link*

I would also suggest adding www.comp-u-geek.net

KuraFire 09-19-2001 12:09 PM

We simply censored the words goatse, goatse.cx, goatsey(.cx), g0ats3(.cx)....

Works, too. But if a user REALLY wants to be annoying, he just makes a refresh page somewhere on geocities that sends the surfer to goatse, and links to that refresh page. You can't do anything against that... :(

(except for just banning that user ^_^)

amykhar 09-19-2001 12:15 PM

Sorry for the interruption, but is this really a problem on boards? Yikes.

Amy

Dalius 09-19-2001 04:21 PM

Hehe
This works!
Thanks

grumpy 09-19-2001 04:36 PM

Quote:

Originally posted by Dakota
*Warning...do not click the link*


LOL! I wish they'd posted that in the original post, I REALLY wish I hadn't been curious about this.


This link has not been posted on my forums, but I can see a lot of possibilities for it. People that insist on spamming my forum with links to sites not allowed can easily be diverted, it can be a better substitute for the censor in some instances. Thanks :)

DefSTONED 09-20-2001 01:53 PM

Yeah, I'm sorry that I didn't warn you about what's at the site...but that is why I didn't link it :D

I see the link posted on many forums to mock newbies and the like, it's not a major problem but a few of us thought would be a nice idea for any linkage of Mr Goatse to point somewhere nice.

Admin 09-20-2001 01:59 PM

You can also create a replcament variable, that will replace goatse.cx with oralse.cx. :)


All times are GMT. The time now is 12:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01099 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete