コード例 #1
0
ファイル: Requester.php プロジェクト: siosonel/tatag-api
 static function setDBs()
 {
     global $dbs;
     self::$db_default = 'tatagtest';
     //override as needed
     if (isset($_GET['db']) and $_GET['db'] and SITE != 'live') {
         self::$db_default = $_GET['db'];
         unset($_GET['db']);
     }
     DBquery::init($dbs, array(self::$db_default));
 }