本文整理汇总了PHP中interPool类的典型用法代码示例。如果您正苦于以下问题:PHP interPool类的具体用法?PHP interPool怎么用?PHP interPool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了interPool类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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";
示例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;
示例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.');";
示例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\";";
示例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();
示例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\">";
示例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];
}
示例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
示例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";
示例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)
示例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)
示例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');
示例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;
}
示例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\">";
示例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 {