• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP interPool类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中interPool的典型用法代码示例。如果您正苦于以下问题:PHP interPool类的具体用法?PHP interPool怎么用?PHP interPool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了interPool类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: playoffs2

<?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";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:equipes.php


示例2: DB_eSession

<?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;
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:draft_online_main.php


示例3: session_destroy

// 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 = $gerant;
$id_saison = $sess->getSessVar('id_saison', '0');
$poolName = $sess->getSessVar('poolName', '');
$msg_draft_online_random = "";
// 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.');";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:draft_online.php


示例4: session_destroy

// 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 = $gerant;
$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\">";
    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\";";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:admin_series.php


示例5: session_destroy

// 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);
$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');
$id_saison = $sess->getSessVar('id_saison', '0');
$poolName = $sess->getSessVar('poolName', '');
$kit_rapport_choix_team = $sess->getSessVar('kit_rapport_choix_team', '0');
$kit_rapport_choix_pos = $sess->getSessVar('kit_rapport_choix_pos', '10000');
$kit_rapport_limite_aff = $sess->getSessVar('kit_rapport_limite_aff', '50');
// Connexion a la bd
if (!$pool->dbConnect(strtolower($poolName))) {
    session_destroy();
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:rapport_draftKit_impr_ref.php


示例6: DB_eSession

$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');
$gerant_sel = $gerant;
$id_saison = $sess->getSessVar('id_saison', '0');
$id_saison2show = $sess->getSessVar('id_saison2show_fantasy_salaryCap', $id_saison);
$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\">";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:fantasy_salaryCap.php


示例7: DB_eSession

$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)
    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($_GET[id_team])) {
    $id_team = $_GET[id_team];
}
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:admin_add_new_player.php


示例8: DB_eSession

$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);
$userName = $sess->getSessVar('user', '');
$periode = $sess->getSessVar('periode', '1');
//$periode_sel = $sess->getSessVar('periode_sel','1');
$gerant = $sess->getSessVar('gerant', '1');
$gerant_sel = $gerant;
$id_saison = $sess->getSessVar('id_saison', '0');
$poolName = $sess->getSessVar('poolName', '');
$pool_type = $sess->getSessVar('poolType', '');
// Connexion a la bd
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:accueil.php


示例9: interPool

<?php

//pour la dev
//$dev = "-dev";
require_once '../class.interpool.php';
require_once 'config.DB_eSession.php';
require_once 'class.DB_eSession.php';
$poolname = $_GET["poolname"];
$email = $_GET["email"];
$pool = new interPool();
$pool->dbConnect(strtolower($poolName));
// passe croche pour le pool K&G (le problème du signe & dans l'url...)
$poolname = str_replace("^", "&", $poolname);
// pour les accents français
//header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
// id du pool
$query = "select id,saison from pools where name = '{$poolname}'";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID, MYSQL_ASSOC);
mysql_free_result($resultID);
$id_pool = $data[id];
$id_saison = $data[saison];
// recherche du email entré en paramètre parmi les gérants du pool
$query = "select username,password\n          from accounts\n          where id_pool = {$id_pool}\n          and saison_id = {$id_saison}\n          and email like '%{$email}%'";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID, MYSQL_ASSOC);
mysql_free_result($resultID);
if ($data != "") {
    $username = $data[username];
    $password = $data[password];
    $headers = "MIME-Version: 1.0\n";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:forgot_login_password.php


示例10: session_destroy

// 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);
$userName = $sess->getSessVar('user', '');
$periode = $sess->getSessVar('periode', '1');
$periode_sel = $periode;
$gerant = $sess->getSessVar('gerant', '1');
$gerant_sel = $sess->getSessVar('gerant_sel_stats_gerants', $gerant);
$poolName = $sess->getSessVar('poolName', '');
$id_saison = $sess->getSessVar('id_saison', '0');
$choix_stats = $sess->getSessVar('stats_gerant', "pts");
$cur_id_saison = $id_saison;
// Connexion a la bd
if (!$pool->dbConnect(strtolower($poolName))) {
    session_destroy();
    // Delete session created (new DB_eSession)
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:stats-gerant.php


示例11: session_destroy

// 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 = $gerant;
$id_saison = $sess->getSessVar('id_saison', '0');
$poolName = $sess->getSessVar('poolName', '');
$edit_player_choix = $sess->getSessVar('edit_player_choix', 'all');
$edit_player_choix_pos = $sess->getSessVar('edit_player_choix_pos', 'all');
$edit_player_sel_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)
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:maj_joueurs.php


示例12: DB_eSession

$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');
$gerant_sel = $gerant;
$id_saison = $sess->getSessVar('id_saison', '0');
$poolName = $sess->getSessVar('poolName', '');
$tab = $sess->getSessVar('tab_draft', 'draft_by_year');
$id_saison_overall_draft = $sess->getSessVar('id_saison_overall_draft', $id_saison);
$choix_overall_draft = $sess->getSessVar('choix_overall_draft', 'all');
$choix_pos_statsDraft = $sess->getSessVar('choix_pos_statsDraft', 'all');
$statsDraft_limite_aff = $sess->getSessVar('statsDraft_limite_aff', 'top20');
$choix_pos_statsDraft2 = $sess->getSessVar('choix_pos_statsDraft2', 'all');
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:draft_stats.php


示例13: playoffs2

<?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;
        }
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:classement.php


示例14: header

                        $sess->setSessVar('admin', $rtnL[2]);
                        $sess->setSessVar('id_saison', $id_saison);
                        $sess->setSessVar('poolName', $rtnL[3]);
                        $sess->setSessVar('pool_type', $pool_type);
                        header("Location: /src/main2.php");
                        $pool->dbClose();
                        exit;
                    }
                }
            }
        } else {
            $message = "";
        }
    }
}
$pool = new interPool();
if (!$pool->dbConnect("pmh")) {
    $message = "Problèmes avec la base de données. Ré-essayez plus tard...";
} else {
    $poolsA = $pool->getAllPools();
}
?>
<HTML>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<HEAD>
<TITLE>PMH</TITLE>
<link rel="shortcut icon" type="image/x-icon" href="http://www.pmh.lamoria.ca/images/PMH.ico" />
<link rel="shortcut" type="image/x-icon" href="http://www.pmh.lamoria.ca/images/PMH.ico" />
	<?php 
$browser = Browser_Detection::get_browser($_SERVER['HTTP_USER_AGENT']);
echo "<LINK REL=stylesheet TYPE=\"text/css\" HREF=\"/css/interpool-" . $browser . ".css\">";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:index_pmh.php


示例15: interPool

<?php

require_once '../../class.interpool.php';
$id_pool = $_GET["id_pool"];
$id_saison = $_GET["saison_id"];
$gerant = $_GET["gerant"];
$poolName = $_GET["poolName"];
$salary_cap_enabled = $_GET["salary_cap"];
$ronde_rendue = $_GET["ronde"];
$pool = new interPool();
$pool->dbConnect(strtolower($poolName));
// quelques config du pool...
$query = "select nbre_forwards_total,nbre_defense_total,nbre_goalie_total,nbre_team_total,nbreJoueurGrandClub\n      from configPool\n      where\n         id_pool = {$id_pool}\n         and saison_id = {$id_saison}";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID, MYSQL_ASSOC);
mysql_free_result($resultID);
$nbre_avants_GC = $data["nbre_forwards_total"];
$nbre_defenseurs_GC = $data["nbre_defense_total"];
$nbre_gardiens_GC = $data["nbre_goalie_total"];
$nbre_teams_GC = $data["nbre_team_total"];
$nbre_joueur_GC = $data["nbreJoueurGrandClub"];
// config du draft
$query = "select draft_equipes from draft_config\n          where\n            id_pool = {$id_pool}\n            and saison_id = {$id_saison}";
$resultID = mysql_query($query, $pool->handle);
$data = mysql_fetch_array($resultID, MYSQL_ASSOC);
mysql_free_result($resultID);
$draft_equipes = $data['draft_equipes'];
// si les équipes font partie du repêchage, il faut en tenir compte comme joueur du GC
if ($draft_equipes != "Y") {
    $nbre_joueur_GC_2_use = $nbre_joueur_GC;
} else {
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:getAutreGerantTeam.php


示例16: session_destroy

// 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();
    // 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;
}
$data = $pool->getConfigPool($id_pool, $id_saison);
$rules_version = $data["rules_version"];
$rules_filename = $data[rules_filename];
if ($rules_filename == "") {
    $query = "select texte1 from saison\n                    where id_pool = {$id_pool}\n                    and id = {$id_saison}";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:reglements.php


示例17: DB_eSession

$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');
$gerant_sel = $gerant;
$id_saison = $sess->getSessVar('id_saison', '0');
$poolName = $sess->getSessVar('poolName', '');
$kit_choix_team = $sess->getSessVar('kit_choix_team', '1');
$kit_choix_pos = $sess->getSessVar('kit_choix_pos', 'all');
$kit_choix_sortCol = $sess->getSessVar('kit_choix_sortCol', 'res2');
$kit_detail_abrege = $sess->getSessVar('kit_detail_abrege', 'abrege');
$kit_limite_aff = $sess->getSessVar('kit_limite_aff', '50');
$kit_aff_first = $sess->getSessVar('kit_aff_first', '1');
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:draft_kit.php


示例18: isset

<?php

require_once '../class.interpool.php';
$id_pool = $_GET["id_pool"];
$id_saison = $_GET["id_saison"];
$periode = $_GET["periode"];
$gerant = $_GET["gerant"];
$type = $_GET["type"];
$choix_scratchs = isset($_GET["choix_scratchs"]) ? $_GET["choix_scratchs"] : "";
$data2 = $_GET["data"];
$poolName = $_GET["poolName"];
$gerant_sel = $gerant;
$pool = new interPool();
$pool->dbConnect(strtolower($poolName));
$nhl_team_as_gerant_name = "Y";
$data = $pool->getConfigPool($id_pool, $id_saison);
$nbre_periodes = $data["nbre_periodes"];
if ($periode > $nbre_periodes) {
    $periode_sel = $nbre_periodes;
} else {
    $periode_sel = $periode;
}
if ($periode_sel >= $periode) {
    $date_injury = $pool->today;
} else {
    $datesA = $pool->getDatesPeriode($id_pool, $periode_sel, $id_saison);
    $date_injury = $datesA[0];
}
// pour les accents français
header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
echo "<INPUT TYPE=\"HIDDEN\" ID=\"id_pool\" VALUE=\"{$id_pool}\" />\n";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:face2face.php


示例19: DB_eSession

$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');
$gerant_sel = $gerant;
$id_saison = $sess->getSessVar('id_saison', '0');
$id_saison2show = $sess->getSessVar('id_saison2show', $id_saison);
$poolName = $sess->getSessVar('poolName', '');
$tab = $sess->getSessVar('tab_fantasy', 'pred_classements');
// Connexion a la bd
if (!$pool->dbConnect(strtolower($poolName))) {
    session_destroy();
    // Delete session created (new DB_eSession)
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:fantasy.php


示例20: interPool

    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";
}
$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 de Poolsvr.');";
    echo "top.location.href=\"/interPool/index.php\";";
    echo "</SCRIPT>";
    exit;
}
switch ($tab) {
    case "calendrier":
        header("Location:/interPool/src/series/calendrier.php");
        break;
    case "face2face":
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:frame_main.php



注:本文中的interPool类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP invoice类代码示例发布时间:2022-05-23
下一篇:
PHP integrate类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap