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