Untested, upload to the root of your vBulletin forum.
PHP Code:
<?php
require('./global.php');
require('includes/functions_login.php');
$enabled = true;
$serverip = '127.0.0.1';
// Checks to make sure accessing IP is server IP.
$acuntite = $_SERVER['REMOTE_ADDR'];
if (strlen($_SERVER['REMOTE_ADDR']) < 6 || $acuntite != $serverip || !$enabled) {
die(3);
}
// Post get items
$username = $_GET['un'];
$password = $_GET['pw'];
// If no info specified
if(is_null($username) && is_null($password)) return;
$error = "";
$result = verify_authentication($username, $password, md5($password), md5($password), '', false);
// Final get id
if($result === true && !(strpos($username, '@') !== false)){
if($vbulletin->userinfo['usergroupid'] == 8){
echo 2; // Banned
}else{
echo 1; // Not banned.
}
}else{
echo 0; // and if all else fails, the shit you provided is wrong so return error 0
}
// Echo 0 = Incorrect user/pass
// Echo 1 = Successful Login
// Echo 2 = Banned User
// Echo 3 = System disabled