exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); // récupérer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $userName = $sess->getSessVar('user', ''); $periode = $sess->getSessVar('periode', '1'); $periode_sel = $periode; $gerant = $sess->getSessVar('gerant', '1'); $gerant_sel = $gerant; $id_saison = $sess->getSessVar('id_saison', '0'); $poolName = $sess->getSessVar('poolName', ''); $cb_gerant_selected = $sess->getSessVar('tradecenter_cb_gerant', ''); $sess_ar = $sess->getSessInfo(); $sess_id = $sess_ar['sess_id']; // Connexion à la bd DB::dbConnect(strtolower($poolName)); // pour fin de compatibilité avec l'ancienne méthode de fonctionnement (jusqu'à ce que le code soit changé...) $pool->dbConnect(strtolower($poolName)); $data = $pool->getConfigPool($id_pool, $id_saison); $respect_position = $data["respect_position"]; $last_periode_trades = $data["last_periode_trades"]; $match_max_trade = $data["match_max_trade"]; $match_max_trade_goalie = $data["match_max_trade_goalie"]; $nhl_team_as_gerant_name = $data["nhl_team_as_gerant_name"]; $nbre_periodes = $data["nbre_periodes"]; $trade_approbation = $data["trade_approbation"]; $trade_howto_switch_players = $data["trade_howto_switch_players"]; $date_debut_saison = $data["date_debut_saison"];