![]() |
Custom Database Class It seems there is maybe plans for it, but the "for future use" look of it has been there forever it seems on the database class loader, and the code is practically done (just commented out)... PHP Code: // load extended, non MySQL class default: { // this is not implemented fully yet // $db = 'vB_Database_' . $vbulletin->config['Database']['dbtype']; // $db =& new $db($vbulletin); Can we get this please? Would be lovely to simply do something like: PHP Code: // load extended, non MySQL class default: { if(include_once(DIR . '/includes/class_database_' . strtolower($vbulletin->config['Database']['dbtype']) . '.php')) { $db = 'vB_Database_' . $vbulletin->config['Database']['dbtype']; $db =& new $db($vbulletin); break; } else { die('Fatal error: Database class not found'); } } I was thinking about doing a double master MySQL setup for failover purposes, and it would be nice to not have to hack the PHP files. :) |
الساعة الآن 02:32 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir