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");
?>