本文整理汇总了PHP中DB_eSession类的典型用法代码示例。如果您正苦于以下问题:PHP DB_eSession类的具体用法?PHP DB_eSession怎么用?PHP DB_eSession使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DB_eSession类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: DB_eSession
<?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;
}
$sessVarName = $_GET["sessVar"];
$sessVarValue = $_GET["value"];
$sess->setSessVar("{$sessVarName}", "{$sessVarValue}");
开发者ID:jfanctil,项目名称:lamoria,代码行数:20,代码来源:setSessVar.php
示例17: 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'] = "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
示例18: DB_eSession
<?php
//pour la 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_pool = $_GET["id_pool"];
$id_saison = $_GET["id_saison"];
$id_gerant = $_GET["gerant"];
$id_player = $_GET["id_player"];
$function = $_GET["func"];
$poolName = $_GET["poolName"];
$pool = new interPool();
$pool->dbConnect(strtolower($poolName));
// pour les accents français
//header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
switch ($function) {
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:fantasy_dreamteam.php
示例19: substr
}
$highlight = '<span class="hl_results">' . substr($label, $pos, $len) . '</span>';
$label_highlight .= $highlight;
$start = $pos + $len;
}
if ($label_len - $start > 0) {
$no_highlight = substr($label, $start);
$label_highlight .= $no_highlight;
}
$a_json[$row]["label"] = $label_highlight;
}
}
return $a_json;
}
$sess_param['name'] = "DRAFT_INTERPOOL";
$sess = new DB_eSession($sess_param);
// session_start() done.
$id_pool = $sess->getSessVar('id_pool', 0);
$id_saison = $sess->getSessVar('id_saison', 0);
$poolName = $sess->getSessVar('poolName', 0);
$pool = new interPool();
$pool->dbConnect(strtolower($poolName));
$q = trim($_GET["term"]);
//$limit = $_GET["limit"];
$limit = 10;
$a_json = array();
$a_json_row = array();
// replace multiple spaces with one
$q = preg_replace('/\\s+/', ' ', $q);
$parts = explode(' ', $q);
$date = new DateTime(null, new DateTimeZone("America/Montreal"));
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:searchPlayer.php
示例20: DB_eSession
$pswd = "";
$message = "";
// fichier de contrôle pour la maintenance du site
$control_file = "/data/disk1/www/pmh/maintenance";
if (file_exists($control_file)) {
echo "<SCRIPT language=\"javascript\">";
echo "top.location.href=\"/maintenance.php\";";
echo "</SCRIPT>";
exit;
}
$sess_param['errors_path'] = "./src/";
$sess_param['new_sid'] = TRUE;
// Create new session ID to be safe.
$sess_param['name'] = "INTERPOOL";
//$sess_param['gc_maxlifetime'] = 600; // Inactivity timeout of 600 seconds (10 minutes)
$sess = new DB_eSession($sess_param);
// session_start() done.
// 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);
}
// See if relevant fields have been set.
$submitted_login = isset($_REQUEST['Submit_login']) ? TRUE : FALSE;
$resetted_login = isset($_REQUEST['Reset_login']) ? TRUE : FALSE;
if ($resetted_login) {
$user = "";
$pswd = "";
} else {
if ($submitted_login) {
$user = isset($_REQUEST['username']) ? $_REQUEST['username'] : '';
$pswd = isset($_REQUEST['password']) ? $_REQUEST['password'] : '';
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:index_pmh.php
注:本文中的DB_eSession类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论