Exemple #1
0
// 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;
$gerant = $sess->getSessVar('gerant', '1');
<?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);
Exemple #3
0
// 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');
//$periode_sel = $sess->getSessVar('periode_sel','1');
Exemple #4
0
// 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;
$gerant = $sess->getSessVar('gerant', '1');
Exemple #5
0
<?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;
Exemple #6
0
<?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";
Exemple #7
0
// 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
$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';
require_once '../phpMyBorder2.class.php';
$sess_param['name'] = "DRAFT_INTERPOOL_ADMIN_SERIES";
$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);
$id_gerant_sel = $sess->getSessVar('id_gerant_sel', 0);
$poolName = $sess->getSessVar('poolName', '');
//$draft_round = $sess->getSessVar('draft_round',1);
// Connexion a la bd
if (!$pool->dbConnect(strtolower($poolName))) {
    session_destroy();
    // Delete session created (new DB_eSession)
    echo "<SCRIPT language=\"javascript\">";
    echo "alert('Erreur lors de la connexion à la base de données. Vous serez ramené à la page d'acceuil.');";
    echo "top.location.href=\"/interPool/index.php\";";
    echo "</SCRIPT>";
    exit;
}
if (isset($_REQUEST["which_combo_change"]) && $_REQUEST["which_combo_change"] != "") {
    switch ($_REQUEST["which_combo_change"]) {
<?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);
$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;
$defenseurs_limit_debut_next = $defenseurs_limit_debut + $defenseurs_limit_nombre;
Exemple #10
0
// 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']);
// formulaire du choix des stats...
if (isset($_REQUEST['choix'])) {
    $sess->setSessVar('face2face', $_REQUEST['choix']);
}
// récupérer certaines informations de la session
$id_pool = $sess->getSessVar('id_pool', 0);
$pool = new interPool();
Exemple #11
0
// 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 = $sess->getSessVar('periode_sel','1');
$periode_sel = $periode;
Exemple #12
0
<?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();
// Connexion a la bd
if (!$pool->dbConnect()) {
    session_destroy();
    // Delete session created (new DB_eSession)
    echo "<SCRIPT language=\"javascript\">";
    echo "alert('Erreur lors de la connexion à la base de données. Vous serez ramené à la page d'acceuil.');";
Exemple #13
0
<?php

// pour la dev...
//$dev = "-dev";
$dev = "";
require_once 'config.DB_eSession.php';
require_once 'class.DB_eSession.php';
//$sess_param['gc_maxlifetime'] = 600;     // Inactivity timeout of 600 seconds (10 minutes)
$sess_param['name'] = "INTERPOOL";
$sess = new DB_eSession($sess_param);
// session_start() done.
$poolName = $sess->getSessVar("poolName");
$poolName = strtolower($poolName);
session_destroy();
// Logout by destroying session data.
echo "<SCRIPT language=\"javascript\">";
echo "top.location.href=\"/index.php?logout=1\";";
echo "</SCRIPT>";
exit;
Exemple #14
0
// 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 = $sess->getSessVar('periode_sel_classement', $periode);
$gerant = $sess->getSessVar('gerant', '1');
Exemple #15
0
// 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');
//$periode_sel = $sess->getSessVar('periode_sel','1');
Exemple #16
0
<?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();
Exemple #17
0
// 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
$id_pool = $sess->getSessVar('id_pool', 0);
Exemple #18
0
// 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', '');
$periode = $sess->getSessVar('periode', '1');
//$periode_sel = $sess->getSessVar('periode_sel','1');
Exemple #19
0
                $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"));
$this_year = $date->format('Y');
$query = "select a.id,a.last_name,a.first_name,a.id_forecaster,a.salary_frozen,b.abbr,a.url_photo,a.contrat_fin,a.ufa_rfa,a.pos\n          from nhl_players a, teams b\n          where a.team = b.id\n          and a.date_expiration = '2099-12-31'\n          and (a.salary_frozen > 0 OR a.contrat_fin = '{$this_year}')\n          and (a.team < 31 or a.team = 34)";
Exemple #20
0
<?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 = $_GET['id_pool'];
$id_saison = $_GET['saison_id'];
isset($_GET['aff']) ? $aff = $_GET['aff'] : ($aff = "");
if ($aff == "") {
    $aff = "menu";
}
$gerant = $sess->getSessVar('gerant', '1');
$poolName = $sess->getSessVar('poolName', '');
$pool = new interPool();
Exemple #21
0
// 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;
$gerant = $sess->getSessVar('gerant', '1');
Exemple #22
0
// 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;
$gerant = $sess->getSessVar('gerant', '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';
$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";
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) {
<?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\">";
Exemple #26
0
// 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;
$gerant = $sess->getSessVar('gerant', '1');
<?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;
Exemple #28
0
// 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
$id_pool = $sess->getSessVar('id_pool', 0);
Exemple #29
0
<?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');
Exemple #30
0
<?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 '../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();
$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', '');
$gerant = $sess->getSessVar('gerant', '1');