Пример #1
0
$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;
$poolName = strtolower($sess->getSessVar('poolName', ''));
//$poolLogo = $sess->getSessVar('logo_pool','');
$tab = $sess->getSessVar('tab_equipe', 'live');
if (isset($_REQUEST["tab"])) {
    $tab = $_REQUEST["tab"];
    $sess->setSessVar('tab_equipe', $tab);
}
// Connexion a la bd
if (!$pool->dbConnect(strtolower($poolName))) {
Пример #2
0
<?php

require_once '../../class.interpool.php';
require_once '../class.playoffs2.php';
$playoffs2 = new playoffs2();
$pool = new interPool();
$id_pool = $_GET["id_pool"];
$id_saison = $_GET["id_saison"];
$gerant = $_GET["gerant"];
$id_gerant = $gerant;
$tab = $_GET["tab"];
$gerant_sel = $gerant;
$poolName = $_GET["poolName"];
$pool->dbConnect(strtolower($poolName));
// config des séries
$data = $playoffs2->getConfig($id_pool, $id_saison, $pool);
$ronde_nhl = $data["ronde_nhl"];
// array des équipes qui jouent ce soir
$play_tonightA = array();
$query = "select home,visitor from schedule_playoffs\n          where date = '{$pool->today}'";
$resultID = mysql_query($query, $pool->handle);
while ($data = mysql_fetch_array($resultID, MYSQL_ASSOC)) {
    $home = $data["home"];
    $visitor = $data["visitor"];
    $play_tonightA[] = $home;
    $play_tonightA[] = $visitor;
}
mysql_free_result($resultID);
switch ($tab) {
    case "live":
        echo "<table cellpadding=0 cellspacing=0 border=0 width=100%>\n";
Пример #3
0
<?php

require_once '../../class.interpool.php';
require_once '../class.playoffs2.php';
$playoffs2 = new playoffs2();
$pool = new interPool();
$id_pool = $_GET["id_pool"];
$id_saison = $_GET["id_saison"];
$gerant = $_GET["gerant"];
$gerant_sel = $gerant;
$poolName = $_GET["poolName"];
$pool->dbConnect(strtolower($poolName));
echo "<table cellpadding=0 cellspacing=0 border=0 width=100%>\n";
echo "<tr>\n";
echo "<td class=\"tableCellBold1\" style=\"padding-top:3px;padding-bottom:3px;\">Rg</td>\n";
echo "<td class=\"tableCellBold3\" style=\"padding-top:3px;padding-bottom:3px;\">Gérant</td>\n";
echo "<td class=\"tableCellBold3\" style=\"padding-top:3px;padding-bottom:3px;\">Pts</td>\n";
echo "<td class=\"tableCellBold4\" style=\"padding-top:3px;padding-bottom:3px;\">Hier</td>\n";
echo "</tr>\n";
$dataA = $playoffs2->getClassement($id_pool, $id_saison, $pool);
if (count($dataA) > 0) {
    $rang = 1;
    foreach ($dataA as $valueA) {
        $my_id_gerant = $valueA["gerant"];
        $nickname = $valueA["nickname"];
        $pts = $valueA["pts"];
        $logo = $valueA["logo"];
        $pts_yest = $playoffs2->getPtsYesterday_tab_accueil($id_pool, $id_saison, $pool, $my_id_gerant);
        if ($pts_yest == "") {
            $pts_yest = 0;
        }
Пример #4
0
<?php

require_once '../../class.interpool.php';
require_once '../class.playoffs2.php';
$playoffs2 = new playoffs2();
$pool = new interPool();
$id_pool = $_GET["id_pool"];
$id_saison = $_GET["id_saison"];
$gerant = $_GET["gerant"];
$gerant_sel = $gerant;
$poolName = $_GET["poolName"];
$pool->dbConnect(strtolower($poolName));
echo "<table cellpadding=0 cellspacing=0 border=0>\n";
echo "<tr>\n";
echo "<td class=\"tableHeaderRoundCorner\" colspan=10 align='center'>Classement Virtuel</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"tableCellBold1\" style=\"padding-top:3px;padding-bottom:3px;\">Rg</td>\n";
echo "<td class=\"tableCellNoBorderBold2\" style=\"padding-top:3px;padding-bottom:3px;\">Gérant</td>\n";
echo "<td class=\"tableCellNoBorderBold2\" style=\"padding-top:3px;padding-bottom:3px;\">Pts</td>\n";
echo "<td class=\"tableCellNoBorderBold2\" style=\"padding-top:3px;padding-bottom:3px;\">Live</td>\n";
echo "<td class=\"tableCellNoBorderBold2\" style=\"padding-top:3px;padding-bottom:3px;\">Pts virt.</td>\n";
echo "<td class=\"tableCellBold4\" style=\"padding-top:3px;padding-bottom:3px;\">Mvt</td>\n";
echo "</tr>\n";
$class_virtuelA = $playoffs2->getClassementVirtuel($id_pool, $id_saison, $pool);
if (count($class_virtuelA) > 0) {
    $rang = 1;
    foreach ($class_virtuelA as $valueA) {
        $my_id_gerant = $valueA["gerant"];
        $nickname = $valueA["nickname"];
        $pts = $valueA["pts"];
Пример #5
0
// 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();
    // 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=\"/index.php\";";
    echo "</SCRIPT>";
    exit;
}
// Traitement si le gerant ou la periode a ete change dans les comboBox
if (isset($_REQUEST['whichCombo'])) {
    if ($_REQUEST['whichCombo'] == "gerant") {
        $gerant_sel = $_REQUEST['comboBoxGerants'];
        $gerant_sel_id = $pool->getGerantIdFromNickname($id_pool, $gerant_sel, $id_saison);
Пример #6
0
$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');
$gerant = $sess->getSessVar('gerant', '1');
$gerant_sel = $gerant;
$poolName = strtolower($sess->getSessVar('poolName', ''));
//$poolLogo = $sess->getSessVar('logo_pool','');
// Connexion a la bd
if (!$pool->dbConnect(strtolower($poolName))) {
    session_destroy();
    // Delete session created (new DB_eSession)
    echo "<SCRIPT language=\"javascript\">";
Пример #7
0
<?php

require_once '../../class.interpool.php';
require_once '../class.playoffs2.php';
$playoffs2 = new playoffs2();
$pool = new interPool();
$id_pool = $_GET["id_pool"];
$id_saison = $_GET["id_saison"];
$type = $_GET["type"];
$gerant = $_GET["gerant"];
$gerant_sel = $gerant;
$poolName = $_GET["poolName"];
$pool->dbConnect(strtolower($poolName));
// pour les accents français
header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
echo "<table cellpadding=0 cellspacing=0 border=0 width=100%>\n";
echo "<tr>\n";
echo "<td class=\"tableCellBold1\" style=\"padding-top:3px;padding-bottom:3px;\">Rg</td>\n";
echo "<td class=\"tableCellBold3\" style=\"padding-top:3px;padding-bottom:3px;\">Joueur</td>\n";
echo "<td class=\"tableCellBold3\" style=\"padding-top:3px;padding-bottom:3px;\">Pts</td>\n";
echo "<td class=\"tableCellBold4\" style=\"padding-top:3px;padding-bottom:3px;padding-left:10px;\">À</td>\n";
echo "</tr>\n";
$dataTop15SeriesA = $playoffs2->getTop15($id_pool, $id_saison, "{$type}", 15, $pool);
$rang = 1;
if (count($dataTop15SeriesA) > 0) {
    foreach ($dataTop15SeriesA as $itemA) {
        $first_name = $itemA["first_name"];
        $last_name = $itemA["last_name"];
        $pts = $itemA["pts"];
        $id_player = $itemA["id_player"];
        $pos = $itemA["pos"];
Пример #8
0
$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');
$gerant_sel = $gerant;
$poolName = strtolower($sess->getSessVar('poolName', ''));
//$poolLogo = $sess->getSessVar('logo_pool','');
$tab = $sess->getSessVar('tab_accueil', 'pool');
if (isset($_REQUEST["tab"])) {
    $tab = $_REQUEST["tab"];
    $sess->setSessVar('tab_accueil', $tab);
}
// Connexion a la bd
if (!$pool->dbConnect(strtolower($poolName))) {
Пример #9
0
<?php

require_once '../../class.interpool.php';
require_once '../class.playoffs2.php';
$playoffs2 = new playoffs2();
$pool = new interPool();
$pool->dbConnect();
// Scoreboard à la NHL...
//$playoffs2->affichage_scoreboard($pool);
$playoffs2->affichage_scoreboard($pool);
$pool->dbClose();
Пример #10
0
<?php

require_once '../../class.interpool.php';
require_once '../class.playoffs2.php';
require_once 'config.DB_eSession.php';
require_once 'class.DB_eSession.php';
require_once '../../class.db.php';
$sess_param['name'] = "INTERPOOL";
$sess = new DB_eSession($sess_param);
// session_start() done.
$playoffs2 = new playoffs2();
$pool = new interPool();
$pool->dbConnect();
// Scoreboard à la NHL...
$playoffs2->affichage_scoreboard($pool, $sess);
$pool->dbClose();