/** * Establish all database connections * * If the configuration has been set up for multiple read/write databases, set those * links up separately; otherwise just create the one database link * */ function setup_db_connections() { // Get configuration and globalise database link global $CONFIG, $dblink; if (!empty($CONFIG->db->split)) { establish_db_link('read'); establish_db_link('write'); } else { establish_db_link('readwrite'); } }
/** * Establish database connections * * If the configuration has been set up for multiple read/write databases, set those * links up separately; otherwise just create the one database link. * * @return void * @access private */ function setup_db_connections() { global $CONFIG, $dblink; if (!empty($CONFIG->db->split)) { establish_db_link('read'); establish_db_link('write'); } else { establish_db_link('readwrite'); } }