示例#1
0
 /** will activate ADODB's native debugging output
  * @param pLevel debugging level - FALSE is off, TRUE is on, 99 is verbose
  **/
 function debug($pLevel = 99)
 {
     parent::debug($pLevel);
     if (is_object($this->mDb)) {
         $this->mDb->debug = $pLevel;
     }
 }
示例#2
0
 $gBitDbName = $_REQUEST['name_dst'];
 $prefix_dst = $_REQUEST['prefix_dst'];
 if (testDatabase()) {
     $gBitSmarty->assign('error_dst', TRUE);
     return;
 } else {
     $gDb_dst = new BitDb();
 }
 require_once 'create_config_inc.php';
 $createHash = array("gBitDbType" => $_REQUEST['db_dst'], "gBitDbHost" => $tmpHost, "gBitDbUser" => $_REQUEST['user_dst'], "gBitDbPassword" => $_REQUEST['pass_dst'], "gBitDbName" => $_REQUEST['name_dst'], "bit_db_prefix" => $_REQUEST['prefix_dst'], "bit_root_url" => $_REQUEST['baseurl'], "auto_bug_submit" => isset($_REQUEST['auto_bug_submit']) ? 'TRUE' : 'FALSE', "is_live" => isset($_REQUEST['is_live']) ? 'TRUE' : 'FALSE');
 create_config($createHash);
 // init db connections
 //vd($gDb_src);
 //vd($gDb_dst);die;
 if ($debug) {
     $gDb_dst->debug();
 }
 // list source tables list
 $tables_src = array($tables_src[2]);
 $tables_dst = getTables($gDb_dst);
 print_r($tables_src);
 die;
 $table_schema = array();
 // iterate through source tables
 foreach ($tables_src as $table) {
     if (array_search($table, $skip_tables) !== FALSE) {
         if ($debug) {
             echo "Skipping {$table}<br>\n";
         }
         continue;
     }