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


PHP DB_eSession类代码示例

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


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

示例1: DB_eSession

<?php

// 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';
$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,代码来源:show_liste_bullseye.php

示例2: DB_eSession

<?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: DB_eSession

<?php

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

示例4: DB_eSession

<?php

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

示例5: DB_eSession

<?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: 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';
$sess_param['name'] = "DRAFT_INTERPOOL";
$sess = new DB_eSession($sess_param);
// session_start() done.
// 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);
$pool = new interPool();
// Connexion a la bd
DB::dbConnect(strtolower($poolName)) or die("Erreur de connexion à la bd '{$poolName}'");
//$pool->dbConnect(strtolower($poolName)) or die("Erreur de connexion à la bd '$poolName'");
$query = "select do_refresh\r\n          from\r\n               draft_refresh_screen\r\n          where\r\n               id_pool = {$id_pool}\r\n               and saison_id = {$id_saison}\r\n               and id_gerant = {$gerant}";
$data = DB::dbSelect($query);
$data = $data[0];
$do_refresh = $data['do_refresh'];
if ($do_refresh != 0) {
    $query = "update draft_refresh_screen set do_refresh=0\r\n                     where\r\n                         id_pool = {$id_pool}\r\n                         and saison_id = {$id_saison}\r\n                         and id_gerant = {$gerant}";
    DB::dbUpdate($query);
}
//$pool -> dbClose();
DB::dbClose();
echo $do_refresh;
unset($query, $resultID, $message, $pool, $id_pool, $id_saison, $poolName, $gerant, $sess, $data, $do_refresh);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:refresh_screen_post.php

示例7: DB_eSession

<?php

// 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:jfanctil,项目名称:lamoria,代码行数:31,代码来源:ballotage.php

示例8: DB_eSession

<?php

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

示例9: DB_eSession

<?php

//pour la dev
//$dev = "-dev";
$dev = "";
require_once '../class.interpool.php';
require_once 'config.DB_eSession.php';
require_once 'class.DB_eSession.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;
}
$id_player = $_GET['id_player'];
$id_pool = isset($_GET['id_pool']) ? $_GET['id_pool'] : "";
$id_saison = isset($_GET['saison_id']) ? $_GET['saison_id'] : "";
isset($_GET['aff']) ? $aff = $_GET['aff'] : ($aff = "");
if ($aff == "") {
    $aff = "menu";
}
//$aff = "menu";
$gerant = $sess->getSessVar('gerant', '1');
$poolName = $sess->getSessVar('poolName', '');
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:show_detail_player.php

示例10: DB_eSession

<?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'] = "DRAFT_SERIES_INTERPOOL";
$sess = new DB_eSession($sess_param);
// session_start() done.
// 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);
$pool = new interPool();
// Connexion a la bd
$pool->dbConnect(strtolower($poolName)) or die("Erreur de connexion א la bd '{$poolName}'");
//print_r($_POST);
// rיcupיrer le nouveau message
isset($_POST['message']) ? $message = $_POST['message'] : ($message = "");
$message = str_replace("\"", "'", $message);
// S'il y a un nouveau message, on l'insטre dans la bd
if ($message != "") {
    //$temps = date("Y-m-d H:i:s",time());
    $today = new Datetime(null, new DateTimeZone('America/Montreal'));
    $temps = $today->format("Y-m-d H:i:s");
    $query = "insert into chat_draft_series (id_pool,saison_id,message,id_gerant,temps)\r\n               values ({$id_pool},{$id_saison},\"{$message}\",{$gerant},\"{$temps}\")";
    mysql_query($query, $pool->handle);
}
// On va chercher TOUS les messages du chat
$query = "select a.message,a.id_gerant,a.temps,b.real_name_abrege\r\n            from chat_draft_series a, accounts b\r\n            where\r\n               a.id_gerant = b.id\r\n               and a.id_pool = b.id_pool\r\n               and a.saison_id = b.saison_id\r\n               and a.id_pool = {$id_pool}\r\n               and a.saison_id = {$id_saison}\r\n            order by a.id desc";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:chat_server.php

示例11: require_once

<?php

/* $Id: calendar.php,v 2.10 2005/12/04 23:14:41 nijel Exp $ */
/*
require_once('./libraries/common.lib.php');
require_once('./libraries/header_http.inc.php');
$page_title = $strCalendar;
require('./libraries/header_meta_style.inc.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']);
?>
<HTML>
<HEAD>
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:calendar.php

示例12: DB_eSession

<?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.php

示例13: DB_eSession

<?php

// 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 'phpMyBorder2.class.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();
// Traitement si le gerant a ete change dans le comboBox
if (isset($_REQUEST['comboBoxGerants'])) {
    $sess->setSessVar('gerant_sel_profil', $_REQUEST['comboBoxGerants']);
}
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:profil.php

示例14: DB_eSession

<?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

示例15: DB_eSession

<?php

// pour la dev...
//$dev = "-dev";
$dev = "";
require_once 'config.DB_eSession.php';
require_once 'class.DB_eSession.php';
require_once 'class.interpool.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;
}
$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();
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:reglements.php


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