never mind. its inherent. thanks dude. I had it practically, just global spam was needed
--------------- Added [DATE]1500743867[/DATE] at [TIME]1500743867[/TIME] ---------------
To build upon this post I've included the following in case people were curious:
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
require_once('./global.php');
global $vbulletin;
$vbulletin->userinfo = $vbulletin->db->query_first("SELECT * FROM ".TABLE_PREFIX."user WHERE username = 'somerandomdude'");
echo "<pre>", print_r($vbulletin->userinfo['options']), "</pre>";
$dstauto = ($vbulletin->userinfo['options'] & 192)/64;
echo $dstauto."<br>";
var_dump($dstonoff);
// 0 = always off
// 2 = always on
// 3 = auto detect
?>