|
|
I was curious, so I searched for the initial code of $DB_site, and found this in admin/global.php:
Code:
$dbservertype = strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname="vBulletin Control Panel";
$DB_site->appshortname="vBulletin (cp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
$DB_site->connect();
$dbpassword="";
$DB_site->password="";
// end init db
// load options
$optionstemp=$DB_site->query_first("SELECT template FROM template WHERE title='options'");
eval($optionstemp[template]);
$versionnumber=$templateversion;
I had thought $DB_site-> was just similar to the PHP function mysql_query(), to query a database...but it does seem like it could be a class, since in the functions.php, certain functions call for globals, which usually refers to classes...and $DB_site is included as a global.. |
|
|
|
|