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)
-   -   Redirect Ban (https://vborg.vbsupport.ru/showthread.php?t=52863)

colicab-d 05-11-2003 10:00 PM

Redirect Ban
 
Crafty Banning Hack - v1
By Colicab
For VB 2.2.x (any 2.2. board)
////////////////////////////

Redirect certain user ids to any site you wish.
Note you must replace xx with the user`s id you wish to
redirect.

Note you may also replace ==
with any of the following:

== : Eqeual To
!= : Unequal To
> : Greater than
< : Less than
>= : Greater than and equal to
<= : Less than and equal to

You may also have extra user ids insted of just one
by adding or after xx in the case of using ==

eg : if($bbuserinfo[userid] == 2 or 5)

in this case the users with the ids 2 or 5 would
be redirected.

This is a fun hack for a cruel joke
or maybe you want moderators to be auto
redirected to the moderator panel
its up to you.. if already had some fun
redirecting banned users to porn sites.

MUG 05-12-2003 08:56 PM

if($bbuserinfo[userid] == 2 or 5)

would redirect every user. 'or 5' always evaluates to true.

colicab-d 05-12-2003 08:57 PM

it will just redirect 2 and 5 think of or as and in this hack :D

MUG 05-12-2003 09:00 PM

Quote:

Today at 05:57 PM colicab-d said this in Post #3
it will just redirect 2 and 5 think of or as and in this hack :D
lol :knockedout:

PHP evaluates them as separate statements. If you want to ban multiple userids, use

if(in_array($bbuserinfo['userid'], array(1,2,3,4,5,6)))

colicab-d 05-12-2003 10:02 PM

well im gonna do a version thru the admin panel soon that,ll use and array for it instead.. was really just mucking about and thought id share lol

ethics 05-12-2003 10:37 PM

Actually, would love to see the full working version, when you can. :)

Talisman 05-12-2003 11:29 PM

It depends on your host, but redirecting someone to a porn site without their consent could get you shut down if they complain to the right place. So be careful you don't put everything at risk just to get back at someone who's been hassling you.

colicab-d 05-13-2003 01:06 AM

well its not like your gonna send folk wh arent friend are you? i mean it woul dbe pretty sick to do it to say all of your members bar maybe a view..

Talisman 05-13-2003 01:13 AM

Nah, not what I meant, colicab-d. I like the hack.

And I might install it if I can think of somewhere annoying to send them.... other than a porn site. That accomplishes the same thing, just without the risk.

vB-Host.com 05-13-2003 11:54 AM

send them to microsoft ;)


All times are GMT. The time now is 08:39 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.01203 seconds
  • Memory Usage 1,728KB
  • 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
  • (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