vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Token of Death (cookie ban) (https://vborg.vbsupport.ru/showthread.php?t=131425)

justim123 11-13-2006 10:53 AM

Nice work man!

radarhunter 11-13-2006 01:14 PM

tried everything not working please help me

Reeve of shinra 11-13-2006 01:23 PM

Did you edit the usergroup ID's in the two plugins that are added to correspond with your banned usergroup ID's?

radarhunter 11-13-2006 01:29 PM

i am not able to log in after also i tried everything you said

help me man i am getting many emails from my members asking me an explanation for their banning

common man help me please

radarhunter 11-13-2006 01:30 PM

yes i did

i did exactly what was told in the mod

Reeve of shinra 11-13-2006 01:36 PM

well remove or disable the hack for now as per the instruction. You'll need to unban your users. I'll take a look for you when I get home if you send PM me an admin username and login that has access to plugins and products.

radarhunter 11-13-2006 01:41 PM

how to remove it or disable it

as it`s not allowing me to enter the admincp


Edit : got back my powers :D

the above said method doesn`t work man

Reeve of shinra 11-13-2006 02:10 PM

Follow the steps here to disable plugins:
https://vborg.vbsupport.ru/showpost....15&postcount=6

Once the plugins are disabled, you can get into the admin and disable this plugin.

Reeve of shinra 11-13-2006 02:12 PM

I havent tried this out but try saving this code as token-of-life.php and uploading it into your forums folder. This should delete the cookie and change the usergroup from 10 (banned?) to 2 (registered).

PHP Code:

<?php

/* ###############   TOKEN OF LIFE ############### */

// SET SOME VARIABLES:  

$newusergroup 2// this should be your registered usergroup, the unbanned group you want to move them to.
$TODgroup 10// change to whatever your Token of Death usergroup is or was.


// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
// change the line below to the actual filename without ".php" extention.
// the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation.

define('THIS_SCRIPT''test'); 

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
        
// change the lines below to the list of actual templates used in the script
        
'test_mytesttemplate1',
        
'test_mytesttemplate22',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ########################## REQUIRE BACK-END ############################
require_once('./global.php');

// #################### HARD CODE JAVASCRIPT PATHS ########################
$headinclude str_replace('clientscript'$vbulletin->options['bburl'] . '/clientscript'$headinclude);

// ########################################################################
// ######################### START MAIN SCRIPT  #################################
// ########################################################################

    
$navbits = array(); 
    
// change the line below to contain whatever you want to show in the navbar (title of your custom page)
    
$navbits[$parent] = 'Token of Life';

    
$navbits construct_navbits($navbits);
    eval(
'$navbar = "' fetch_template('navbar') . '";');


// #################### LETS EAT THE COOKIE AND UNBAN PEOPLE ########################

// We'll change the cookie so it expires at the end of the browser session.
    
if (is_member_of($vbulletin->userinfo$TODgroup))
    {
    
vbsetcookie("TOD",0,0);
    }

// Lets change the users group

    
if (is_member_of($vbulletin->userinfo$TODgroup))
    {
               
$db->query_write("
            UPDATE user SET
            usergroupid = 
$newusergroup
            WHERE userid = " 
$vbulletin->userinfo['userid'] . "
            "
);
    }


// change the line below to contain the name of the actual main output template used in your script
//eval('print_output("' . fetch_template('Token_of_Life') . '");');

// No Content Header for Now
header("HTTP/1.0 204 No Content");

?>


Gizmo5h1t3 11-13-2006 02:59 PM

Quote:

Originally Posted by radarhunter (Post 1116267)
how to remove it or disable it

as it`s not allowing me to enter the admincp


sounds like ure havin probs m8...

Quote:

THIS IS A BETA... DON'T INSTALL IT...

Really, I mean it. Okay, so it worked on my test forum, but do you really want to be a guinea pig?
i read the first bit....didnt you?


All times are GMT. The time now is 03:20 PM.

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.01153 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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