function reconnectDB() { if (ONLINEMODE) { self::$DBConnection = new DBConnection(mysqlServerIP2, dbname, dbuser, dbpassword, wpip, wpdbname, wpdbuser, wpdbpassword); } else { self::$DBConnection = new DBConnection(localmysqlServerIP2, localdbname, localdbuser, localdbpassword, wpip, wpdbname, wpdbuser, wpdbpassword); } }
function reconnectDB() { self::$DBConnection = new DBConnection(mysqlServerIP2, dbname, dbuser, dbpassword); }