static function switchToSlave() { global $DB; if (self::isDBSlaveActive()) { include_once GLPI_CONFIG_DIR . "/config_db_slave.php"; $DB = new DBSlave(); return $DB->connected; } return false; }