当前位置: 首页>>代码示例>>PHP>>正文


PHP DB_eSession::getSessVar方法代码示例

本文整理汇总了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');
开发者ID:jfanctil,项目名称:lamoria,代码行数:30,代码来源:autres_stats.php

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

示例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');
开发者ID:jfanctil,项目名称:lamoria,代码行数:30,代码来源:draft_online.php

示例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');
开发者ID:jfanctil,项目名称:lamoria,代码行数:30,代码来源:fantasy.php

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

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

示例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);
开发者ID:jfanctil,项目名称:lamoria,代码行数:30,代码来源:ballotage.php

示例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"]) {
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:draft_admin_series.php

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

示例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();
开发者ID:jfanctil,项目名称:lamoria,代码行数:30,代码来源:face2face.php

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

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

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

示例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');
开发者ID:jfanctil,项目名称:lamoria,代码行数:30,代码来源:classement.php

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


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