<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // formulaire du choix du calendrier... if (isset($_REQUEST['choix'])) { $sess->setSessVar('calendrier', $_REQUEST['choix']); } // 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);
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; // pour la dev... //$dev = "-dev"; $dev = ""; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // formulaire du choix du calendrier... if (isset($_REQUEST['choix'])) { $sess->setSessVar('calendrier', $_REQUEST['choix']); } // 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);
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../class.interpool.php'; require_once '../browser_detection.php'; require_once "../class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); // récupérer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $pool = new interPool(); // récupérer certaines informations de la session $userName = $sess->getSessVar('user', ''); $periode = $sess->getSessVar('periode', '1');
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once "class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) 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;
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../class.interpool.php'; require_once 'class.playoffs2.php'; require_once '../browser_detection.php'; require_once "../class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); $playoffs2 = new playoffs2(); // récupérer certaines informations de la session $id_saison = $sess->getSessVar('id_saison', '0'); $id_pool = $sess->getSessVar('id_pool', 0); $userName = $sess->getSessVar('user', ''); $gerant = $sess->getSessVar('gerant', '1'); $gerant_sel = $gerant;
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../class.interpool.php'; require_once '../class.db.php'; require_once '../browser_detection.php'; $sess_param['name'] = "DRAFT_INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // récupérer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $id_saison = $sess->getSessVar('id_saison', 0); $gerant = $sess->getSessVar('gerant', 0); $poolName = $sess->getSessVar('poolName', 0); $pool = new interPool(); // Connexion a la bd DB::dbConnect(strtolower($poolName)) or die("Erreur de connexion à la bd '{$poolName}'"); //$pool->dbConnect(strtolower($poolName)) or die("Erreur de connexion à la bd '$poolName'"); $query = "select do_refresh\r\n from\r\n draft_refresh_screen\r\n where\r\n id_pool = {$id_pool}\r\n and saison_id = {$id_saison}\r\n and id_gerant = {$gerant}"; $data = DB::dbSelect($query); $data = $data[0]; $do_refresh = $data['do_refresh']; if ($do_refresh != 0) { $query = "update draft_refresh_screen set do_refresh=0\r\n where\r\n id_pool = {$id_pool}\r\n and saison_id = {$id_saison}\r\n and id_gerant = {$gerant}"; DB::dbUpdate($query); } //$pool -> dbClose(); DB::dbClose(); echo $do_refresh; unset($query, $resultID, $message, $pool, $id_pool, $id_saison, $poolName, $gerant, $sess, $data, $do_refresh);
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once "class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // formulaire du choix historique/période... if (isset($_REQUEST['type'])) { $sess->setSessVar('ballotage', $_REQUEST['type']); } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); // récupérer certaines informations de la session
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once 'phpMyBorder2.class.php'; require_once "class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); // récupérer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $pool = new interPool(); // récupérer certaines informations de la session $userName = $sess->getSessVar('user', '');
<?php //pour la dev //$dev = "-dev"; $dev = ""; require_once '../class.interpool.php'; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } $id_player = $_GET['id_player']; $id_pool = isset($_GET['id_pool']) ? $_GET['id_pool'] : ""; $id_saison = isset($_GET['saison_id']) ? $_GET['saison_id'] : ""; isset($_GET['aff']) ? $aff = $_GET['aff'] : ($aff = ""); if ($aff == "") { $aff = "menu"; } //$aff = "menu"; $gerant = $sess->getSessVar('gerant', '1'); $poolName = $sess->getSessVar('poolName', '');
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../class.interpool.php'; require_once '../browser_detection.php'; $sess_param['name'] = "DRAFT_SERIES_INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // r×cup×rer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $id_saison = $sess->getSessVar('id_saison', 0); $gerant = $sess->getSessVar('gerant', 0); $poolName = $sess->getSessVar('poolName', 0); $pool = new interPool(); // Connexion a la bd $pool->dbConnect(strtolower($poolName)) or die("Erreur de connexion × la bd '{$poolName}'"); //print_r($_POST); // r×cup×rer le nouveau message isset($_POST['message']) ? $message = $_POST['message'] : ($message = ""); $message = str_replace("\"", "'", $message); // S'il y a un nouveau message, on l'ins×re dans la bd if ($message != "") { //$temps = date("Y-m-d H:i:s",time()); $today = new Datetime(null, new DateTimeZone('America/Montreal')); $temps = $today->format("Y-m-d H:i:s"); $query = "insert into chat_draft_series (id_pool,saison_id,message,id_gerant,temps)\r\n values ({$id_pool},{$id_saison},\"{$message}\",{$gerant},\"{$temps}\")"; mysql_query($query, $pool->handle); } // On va chercher TOUS les messages du chat $query = "select a.message,a.id_gerant,a.temps,b.real_name_abrege\r\n from chat_draft_series a, accounts b\r\n where\r\n a.id_gerant = b.id\r\n and a.id_pool = b.id_pool\r\n and a.saison_id = b.saison_id\r\n and a.id_pool = {$id_pool}\r\n and a.saison_id = {$id_saison}\r\n order by a.id desc";
<?php /* $Id: calendar.php,v 2.10 2005/12/04 23:14:41 nijel Exp $ */ /* require_once('./libraries/common.lib.php'); require_once('./libraries/header_http.inc.php'); $page_title = $strCalendar; require('./libraries/header_meta_style.inc.php'); */ require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); ?> <HTML> <HEAD>
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; // pour la dev... //$dev = "-dev"; $dev = ""; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // formulaire du choix du calendrier... if (isset($_REQUEST['choix'])) { $sess->setSessVar('calendrier', $_REQUEST['choix']); } // 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);
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once 'phpMyBorder2.class.php'; require_once "class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); // Traitement si le gerant a ete change dans le comboBox if (isset($_REQUEST['comboBoxGerants'])) { $sess->setSessVar('gerant_sel_profil', $_REQUEST['comboBoxGerants']); }
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../../class.interpool.php'; require_once 'class.playoffs2.php'; require_once '../../browser_detection.php'; require_once "../../class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); // récupérer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $id_saison = $sess->getSessVar('id_saison', '0'); $pool = new interPool(); $playoffs2 = new playoffs2(); // Connexion a la bd if (!$pool->dbConnect()) { session_destroy();
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } $id_pool = $sess->getSessVar('id_pool', 0); $id_saison = $sess->getSessVar('id_saison', '0'); $poolName = strtolower($sess->getSessVar('poolName', '')); if ($poolName == "") { return; } $pool = new interPool(); // connexion א la bd if (!$pool->dbConnect(strtolower($poolName))) { session_destroy();
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } $sessVarName = $_GET["sessVar"]; $sessVarValue = $_GET["value"]; $sess->setSessVar("{$sessVarName}", "{$sessVarValue}");
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../class.interpool.php'; require_once '../browser_detection.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); // retrieve the league name and the user name $ligue_id = $sess->getSessVar('id_pool', 0); $userName = $sess->getSessVar('user', ''); $active_user = $sess->getSessVar('active_user', ''); $periode = $sess->getSessVar('periode', '1'); $active_periode = $sess->getSessVar('active_periode', '1'); $tab = $sess->getSessVar('tab', "accueil"); // passage entre les pages séries et les pages saison... if ($tab == "series") { $tab = "accueil";
<?php //pour la dev //$dev = "-dev"; require_once '../class.interpool.php'; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } $id_pool = $_GET["id_pool"]; $id_saison = $_GET["id_saison"]; $id_gerant = $_GET["gerant"]; $id_player = $_GET["id_player"]; $function = $_GET["func"]; $poolName = $_GET["poolName"]; $pool = new interPool(); $pool->dbConnect(strtolower($poolName)); // pour les accents français //header("Content-Type:application/xhtml+xml; charset=ISO-8859-1"); switch ($function) {
} $highlight = '<span class="hl_results">' . substr($label, $pos, $len) . '</span>'; $label_highlight .= $highlight; $start = $pos + $len; } if ($label_len - $start > 0) { $no_highlight = substr($label, $start); $label_highlight .= $no_highlight; } $a_json[$row]["label"] = $label_highlight; } } return $a_json; } $sess_param['name'] = "DRAFT_INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. $id_pool = $sess->getSessVar('id_pool', 0); $id_saison = $sess->getSessVar('id_saison', 0); $poolName = $sess->getSessVar('poolName', 0); $pool = new interPool(); $pool->dbConnect(strtolower($poolName)); $q = trim($_GET["term"]); //$limit = $_GET["limit"]; $limit = 10; $a_json = array(); $a_json_row = array(); // replace multiple spaces with one $q = preg_replace('/\\s+/', ' ', $q); $parts = explode(' ', $q); $date = new DateTime(null, new DateTimeZone("America/Montreal"));
$pswd = ""; $message = ""; // fichier de contrôle pour la maintenance du site $control_file = "/data/disk1/www/pmh/maintenance"; if (file_exists($control_file)) { echo "<SCRIPT language=\"javascript\">"; echo "top.location.href=\"/maintenance.php\";"; echo "</SCRIPT>"; exit; } $sess_param['errors_path'] = "./src/"; $sess_param['new_sid'] = TRUE; // Create new session ID to be safe. $sess_param['name'] = "INTERPOOL"; //$sess_param['gc_maxlifetime'] = 600; // Inactivity timeout of 600 seconds (10 minutes) $sess = new DB_eSession($sess_param); // session_start() done. // POUR LES ADMINS (il suffit de taper l'url : ......./accueil.php?admin=1 if (isset($_GET["admin"]) && $_GET["admin"] == 1) { $sess->setSessVar('affiche_admin_menu', 1); } // See if relevant fields have been set. $submitted_login = isset($_REQUEST['Submit_login']) ? TRUE : FALSE; $resetted_login = isset($_REQUEST['Reset_login']) ? TRUE : FALSE; if ($resetted_login) { $user = ""; $pswd = ""; } else { if ($submitted_login) { $user = isset($_REQUEST['username']) ? $_REQUEST['username'] : ''; $pswd = isset($_REQUEST['password']) ? $_REQUEST['password'] : '';
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once "class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) 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;
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); $poolName = $sess->getSessVar('poolName', ''); $id_team = $sess->getSessVar('edit_player_sel_team', '0'); // Connexion a la bd if (!$pool->dbConnect(strtolower($poolName))) { session_destroy(); // Delete session created (new DB_eSession)
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once "class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // formulaire du choix des stats... if (isset($_REQUEST['choix'])) { $sess->setSessVar('stats_gerant', $_REQUEST['choix']); } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); // récupérer certaines informations de la session
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) 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); $id_saison = $sess->getSessVar('id_saison', '0'); $poolName = $sess->getSessVar('poolName', ''); // Connexion a la bd if (!$pool->dbConnect(strtolower($poolName))) { session_destroy(); // Delete session created (new DB_eSession) echo "<SCRIPT language=\"javascript\">";
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../class.interpool.php'; require_once '../class.db.php'; require_once '../browser_detection.php'; require_once '../phpMyBorder2.class.php'; $sess_param['name'] = "DRAFT_INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // 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); $id_saison = $sess->getSessVar('id_saison', 0); $gerant = $sess->getSessVar('gerant', 0); $poolName = $sess->getSessVar('poolName', 0); $tab = $sess->getSessVar('draft_tab', 'avants'); $forwards_limit_debut = $sess->getSessVar('forwards_limit_debut', 0); $defenseurs_limit_debut = $sess->getSessVar('defenseurs_limit_debut', 0); $gardiens_limit_debut = $sess->getSessVar('gardiens_limit_debut', 0); $allPlayers_limit_debut = $sess->getSessVar('allPlayers_limit_debut', 0); $forwards_limit_nombre = $sess->getSessVar('forwards_limit_nombre', 30); $defenseurs_limit_nombre = $sess->getSessVar('defenseurs_limit_nombre', 30); $gardiens_limit_nombre = $sess->getSessVar('gardiens_limit_nombre', 30); $allPlayers_limit_nombre = $sess->getSessVar('allPlayers_limit_nombre', 30); $forwards_limit_debut_prev = $forwards_limit_debut - $forwards_limit_nombre; $forwards_limit_debut_next = $forwards_limit_debut + $forwards_limit_nombre; $defenseurs_limit_debut_prev = $defenseurs_limit_debut - $defenseurs_limit_nombre;
<?php // pour la dev... //$dev = "-dev"; $dev = ""; require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once "class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); // POUR LES ADMINS (il suffit de taper l'url : ......./accueil.php?admin=1 if (isset($_GET["admin"]) && $_GET["admin"] == 1) { $sess->setSessVar('affiche_admin_menu', 1); } // récupérer certaines informations de la session
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once 'class.interpool.php'; require_once 'browser_detection.php'; require_once 'phpMyBorder2.class.php'; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession(&$sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); // rיcupיrer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $pool = new interPool(); // rיcupיrer certaines informations de la session $userName = $sess->getSessVar('user', ''); $periode = $sess->getSessVar('periode', '1'); $periode_sel = $sess->getSessVar('periode_sel', '1'); $gerant = $sess->getSessVar('gerant', '1'); $gerant_sel = $sess->getSessVar('gerant_sel', '1');
<?php require_once 'config.DB_eSession.php'; require_once 'class.DB_eSession.php'; require_once '../class.interpool.php'; require_once 'class.playoffs2.php'; require_once '../browser_detection.php'; require_once "../class.rss.php"; $sess_param['name'] = "INTERPOOL"; $sess = new DB_eSession($sess_param); // session_start() done. // Retrieve $_SESSION['authenticated'] value if set, otherwise return FALSE. // For security, don't use the same variable name as the session name // (especially if you have register_globals turned on). $logged_in = $sess->getSessVar('authenticated', FALSE); if (!$logged_in) { // Not yet authenticated? session_destroy(); // Delete session created (new DB_eSession) exit; } // browser detection $browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']); $pool = new interPool(); $playoffs2 = new playoffs2(); // récupérer certaines informations de la session $id_pool = $sess->getSessVar('id_pool', 0); $id_saison = $sess->getSessVar('id_saison', '0'); $userName = $sess->getSessVar('user', ''); $periode = $sess->getSessVar('periode', '1'); $periode_sel = $sess->getSessVar('periode_sel', '1');