$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("pmh"))) { $cValue = $pool->readCookie("pmh"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect("pmh")) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("PMH"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess->setSessVar('authenticated', TRUE); // Set that authentication occurred. $sess->setSessVar('id_pool', $id_pool); // Store the ligue_id in the session $sess->setSessVar('user', $username);
$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("st-nic"))) { $cValue = $pool->readCookie("st-nic"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect("st-nic")) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("ST-NIC"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess->setSessVar('authenticated', TRUE); // Set that authentication occurred. $sess->setSessVar('id_pool', $id_pool); // Store the ligue_id in the session $sess->setSessVar('user', $username);
$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("lge"))) { $cValue = $pool->readCookie("lge"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect("lge")) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("LGE"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess_param['errors_path'] = "./src/"; $sess_param['new_sid'] = TRUE; // Create new session ID to be safe. $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param);
$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("poolvpti"))) { $cValue = $pool->readCookie("poolvpti"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect("poolvpti")) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("poolvpti"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess_param['errors_path'] = "./src/"; $sess_param['new_sid'] = TRUE; // Create new session ID to be safe. $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param);
$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("kg"))) { $cValue = $pool->readCookie("kg"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect("kg")) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("kg"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess_param['errors_path'] = "./src/"; $sess_param['new_sid'] = TRUE; // Create new session ID to be safe. $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param);
$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("bchtl"))) { $cValue = $pool->readCookie("bchtl"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect()) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("BCHTL"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess->setSessVar('authenticated', TRUE); // Set that authentication occurred. $sess->setSessVar('id_pool', $id_pool); // Store the ligue_id in the session $sess->setSessVar('user', $username);
$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("bliz"))) { $cValue = $pool->readCookie("bliz"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect("bliz")) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("bliz"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess_param['errors_path'] = "./src/"; $sess_param['new_sid'] = TRUE; // Create new session ID to be safe. $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param);
$pool->dbClose(); } } } else { if (!isset($_GET['logout'])) { $pool = new interPool(); if (!is_null($pool->readCookie("poolailler"))) { $cValue = $pool->readCookie("poolailler"); $cValueA = explode(":", $cValue); $username = $cValueA[0]; $password = $cValueA[1]; $id_pool = $cValueA[2]; if (!$pool->dbConnect("poolailler")) { $message = "Problèmes avec la base de données. Ré-essayez plus tard..."; } else { $id_pool = $pool->getIdPoolForLogin("POOLAILLER"); $rtn = $pool->validate_login($username, $password, $id_pool); $rtnL = explode(" ", $rtn); if ($rtnL[0] != "OK") { $message = $rtn; } else { $id_gerant = $rtnL[1]; $id_saison = $pool->getSaisonID($id_pool); $periode = $pool->getPeriode($id_pool, $id_saison); $pool->set_account_stats($id_pool, $id_gerant, $id_saison); $pool_type = $pool->getPoolType($id_pool, $id_saison); $sess->setSessVar('authenticated', TRUE); // Set that authentication occurred. $sess->setSessVar('id_pool', $id_pool); // Store the ligue_id in the session $sess->setSessVar('user', $username);