本文整理汇总了PHP中ew_SessionTimeoutTime函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_SessionTimeoutTime函数的具体用法?PHP ew_SessionTimeoutTime怎么用?PHP ew_SessionTimeoutTime使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_SessionTimeoutTime函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
global $conn, $Language;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (projects)
if (!isset($GLOBALS["projects"]) || get_class($GLOBALS["projects"]) == "cprojects") {
$GLOBALS["projects"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["projects"];
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'blobview', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'projects', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
}
示例2: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (upload_file)
if (!isset($GLOBALS["upload_file"]) || get_class($GLOBALS["upload_file"]) == "cupload_file") {
$GLOBALS["upload_file"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["upload_file"];
}
// Table object (user)
if (!isset($GLOBALS['user'])) {
$GLOBALS['user'] = new cuser();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'blobview', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'upload_file', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// User table object (user)
if (!isset($UserTable)) {
$UserTable = new cuser();
$UserTableConn = Conn($UserTable->DBID);
}
}
示例3: __construct
function __construct()
{
global $conn, $Language;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (sub_category)
if (!isset($GLOBALS["sub_category"]) || get_class($GLOBALS["sub_category"]) == "csub_category") {
$GLOBALS["sub_category"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["sub_category"];
}
$KeyUrl = "";
if (@$_GET["scat_id"] != "") {
$this->RecKey["scat_id"] = $_GET["scat_id"];
$KeyUrl .= "&scat_id=" . urlencode($this->RecKey["scat_id"]);
}
$this->ExportPrintUrl = $this->PageUrl() . "export=print" . $KeyUrl;
$this->ExportHtmlUrl = $this->PageUrl() . "export=html" . $KeyUrl;
$this->ExportExcelUrl = $this->PageUrl() . "export=excel" . $KeyUrl;
$this->ExportWordUrl = $this->PageUrl() . "export=word" . $KeyUrl;
$this->ExportXmlUrl = $this->PageUrl() . "export=xml" . $KeyUrl;
$this->ExportCsvUrl = $this->PageUrl() . "export=csv" . $KeyUrl;
$this->ExportPdfUrl = $this->PageUrl() . "export=pdf" . $KeyUrl;
// Table object (category)
if (!isset($GLOBALS['category'])) {
$GLOBALS['category'] = new ccategory();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'view', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'sub_category', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// Export options
$this->ExportOptions = new cListOptions();
$this->ExportOptions->Tag = "div";
$this->ExportOptions->TagClassName = "ewExportOption";
// Other options
$this->OtherOptions['action'] = new cListOptions();
$this->OtherOptions['action']->Tag = "div";
$this->OtherOptions['action']->TagClassName = "ewActionOption";
$this->OtherOptions['detail'] = new cListOptions();
$this->OtherOptions['detail']->Tag = "div";
$this->OtherOptions['detail']->TagClassName = "ewDetailOption";
}
示例4: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
if (!isset($GLOBALS["nos_roster_admin"])) {
$GLOBALS["nos_roster_admin"] = new cnos_roster_admin();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'logout', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
// User table object (nos_roster_admin)
if (!isset($UserTable)) {
$UserTable = new cnos_roster_admin();
$UserTableConn = Conn($UserTable->DBID);
}
}
示例5: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (nos_members)
if (!isset($GLOBALS["nos_members"]) || get_class($GLOBALS["nos_members"]) == "cnos_members") {
$GLOBALS["nos_members"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["nos_members"];
}
// Table object (nos_roster_admin)
if (!isset($GLOBALS['nos_roster_admin'])) {
$GLOBALS['nos_roster_admin'] = new cnos_roster_admin();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'edit', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'nos_members', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// User table object (nos_roster_admin)
if (!isset($UserTable)) {
$UserTable = new cnos_roster_admin();
$UserTableConn = Conn($UserTable->DBID);
}
}
示例6: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (air_port)
if (!isset($GLOBALS["air_port"]) || get_class($GLOBALS["air_port"]) == "cair_port") {
$GLOBALS["air_port"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["air_port"];
}
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print";
$this->ExportExcelUrl = $this->PageUrl() . "export=excel";
$this->ExportWordUrl = $this->PageUrl() . "export=word";
$this->ExportHtmlUrl = $this->PageUrl() . "export=html";
$this->ExportXmlUrl = $this->PageUrl() . "export=xml";
$this->ExportCsvUrl = $this->PageUrl() . "export=csv";
$this->ExportPdfUrl = $this->PageUrl() . "export=pdf";
$this->AddUrl = "air_portadd.php";
$this->InlineAddUrl = $this->PageUrl() . "a=add";
$this->GridAddUrl = $this->PageUrl() . "a=gridadd";
$this->GridEditUrl = $this->PageUrl() . "a=gridedit";
$this->MultiDeleteUrl = "air_portdelete.php";
$this->MultiUpdateUrl = "air_portupdate.php";
// Table object (user)
if (!isset($GLOBALS['user'])) {
$GLOBALS['user'] = new cuser();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'list', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'air_port', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// User table object (user)
if (!isset($UserTable)) {
$UserTable = new cuser();
$UserTableConn = Conn($UserTable->DBID);
}
// List options
$this->ListOptions = new cListOptions();
$this->ListOptions->TableVar = $this->TableVar;
// Export options
$this->ExportOptions = new cListOptions();
$this->ExportOptions->Tag = "div";
$this->ExportOptions->TagClassName = "ewExportOption";
// Other options
$this->OtherOptions['addedit'] = new cListOptions();
$this->OtherOptions['addedit']->Tag = "div";
$this->OtherOptions['addedit']->TagClassName = "ewAddEditOption";
$this->OtherOptions['detail'] = new cListOptions();
$this->OtherOptions['detail']->Tag = "div";
$this->OtherOptions['detail']->TagClassName = "ewDetailOption";
$this->OtherOptions['action'] = new cListOptions();
$this->OtherOptions['action']->Tag = "div";
$this->OtherOptions['action']->TagClassName = "ewActionOption";
// Filter options
$this->FilterOptions = new cListOptions();
$this->FilterOptions->Tag = "div";
$this->FilterOptions->TagClassName = "ewFilterOption fair_portlistsrch";
// List actions
$this->ListActions = new cListActions();
}
示例7: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'custom', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'PrincipalDestinations.php', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
// User table object (user)
if (!isset($UserTable)) {
$UserTable = new cuser();
$UserTableConn = Conn($UserTable->DBID);
}
}
示例8: ew_SessionTimeoutTime
"; // Default date format
var EW_DECIMAL_POINT = "<?php
echo $DEFAULT_DECIMAL_POINT;
?>
";
var EW_THOUSANDS_SEP = "<?php
echo $DEFAULT_THOUSANDS_SEP;
?>
";
var EW_GENERATE_PASSWORD_LENGTH = 16;
var EW_GENERATE_PASSWORD_UPPERCASE = true;
var EW_GENERATE_PASSWORD_LOWERCASE = true;
var EW_GENERATE_PASSWORD_NUMBER = true;
var EW_GENERATE_PASSWORD_SPECIALCHARS = false;
var EW_SESSION_TIMEOUT = <?php
echo EW_SESSION_TIMEOUT > 0 ? ew_SessionTimeoutTime() : 0;
?>
; // Session timeout time (seconds)
var EW_SESSION_TIMEOUT_COUNTDOWN = <?php
echo EW_SESSION_TIMEOUT_COUNTDOWN;
?>
; // Count down time to session timeout (seconds)
var EW_SESSION_KEEP_ALIVE_INTERVAL = <?php
echo EW_SESSION_KEEP_ALIVE_INTERVAL;
?>
; // Keep alive interval (seconds)
var EW_RELATIVE_PATH = "<?php
echo $EW_RELATIVE_PATH;
?>
"; // Relative path
var EW_SESSION_URL = EW_RELATIVE_PATH + "ewsession12.php"; // Session URL
示例9: ew_CheckToken
function ew_CheckToken($token, $timeout = 0)
{
if ($timeout <= 0) {
$timeout = ew_SessionTimeoutTime();
}
return time() - intval(ew_Decrypt($token)) < $timeout;
}
示例10: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (user)
if (!isset($GLOBALS["user"]) || get_class($GLOBALS["user"]) == "cuser") {
$GLOBALS["user"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["user"];
}
if (!isset($GLOBALS["user"])) {
$GLOBALS["user"] =& $this;
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'forgotpwd', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// User table object (user)
if (!isset($UserTable)) {
$UserTable = new cuser();
$UserTableConn = Conn($UserTable->DBID);
}
}
示例11: __construct
function __construct()
{
global $conn, $Language;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'default', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect();
}
}
示例12: ew_SessionTimeoutTime
var EW_DECIMAL_POINT = "<?php
echo $DEFAULT_DECIMAL_POINT;
?>
";
var EW_THOUSANDS_SEP = "<?php
echo $DEFAULT_THOUSANDS_SEP;
?>
";
var EW_MIN_PASSWORD_STRENGTH = 60;
var EW_GENERATE_PASSWORD_LENGTH = 16;
var EW_GENERATE_PASSWORD_UPPERCASE = true;
var EW_GENERATE_PASSWORD_LOWERCASE = true;
var EW_GENERATE_PASSWORD_NUMBER = true;
var EW_GENERATE_PASSWORD_SPECIALCHARS = false;
var EW_SESSION_TIMEOUT = <?php
echo ew_SessionTimeoutTime();
?>
; // Session timeout time (seconds)
var EW_SESSION_TIMEOUT_COUNTDOWN = <?php
echo EW_SESSION_TIMEOUT_COUNTDOWN;
?>
; // Count down time to session timeout (seconds)
var EW_SESSION_KEEP_ALIVE_INTERVAL = <?php
echo EW_SESSION_KEEP_ALIVE_INTERVAL;
?>
; // Keep alive interval (seconds)
var EW_RELATIVE_PATH = "<?php
echo $EW_RELATIVE_PATH;
?>
"; // Relative path
var EW_SESSION_URL = EW_RELATIVE_PATH + "ewsession12.php"; // Session URL
示例13: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (upload_file_detail_status)
if (!isset($GLOBALS["upload_file_detail_status"]) || get_class($GLOBALS["upload_file_detail_status"]) == "cupload_file_detail_status") {
$GLOBALS["upload_file_detail_status"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["upload_file_detail_status"];
}
$KeyUrl = "";
if (@$_GET["UPLOAD_FILE_DETAIL_STATUS_ID"] != "") {
$this->RecKey["UPLOAD_FILE_DETAIL_STATUS_ID"] = $_GET["UPLOAD_FILE_DETAIL_STATUS_ID"];
$KeyUrl .= "&UPLOAD_FILE_DETAIL_STATUS_ID=" . urlencode($this->RecKey["UPLOAD_FILE_DETAIL_STATUS_ID"]);
}
$this->ExportPrintUrl = $this->PageUrl() . "export=print" . $KeyUrl;
$this->ExportHtmlUrl = $this->PageUrl() . "export=html" . $KeyUrl;
$this->ExportExcelUrl = $this->PageUrl() . "export=excel" . $KeyUrl;
$this->ExportWordUrl = $this->PageUrl() . "export=word" . $KeyUrl;
$this->ExportXmlUrl = $this->PageUrl() . "export=xml" . $KeyUrl;
$this->ExportCsvUrl = $this->PageUrl() . "export=csv" . $KeyUrl;
$this->ExportPdfUrl = $this->PageUrl() . "export=pdf" . $KeyUrl;
// Table object (user)
if (!isset($GLOBALS['user'])) {
$GLOBALS['user'] = new cuser();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'view', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'upload_file_detail_status', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// User table object (user)
if (!isset($UserTable)) {
$UserTable = new cuser();
$UserTableConn = Conn($UserTable->DBID);
}
// Export options
$this->ExportOptions = new cListOptions();
$this->ExportOptions->Tag = "div";
$this->ExportOptions->TagClassName = "ewExportOption";
// Other options
$this->OtherOptions['action'] = new cListOptions();
$this->OtherOptions['action']->Tag = "div";
$this->OtherOptions['action']->TagClassName = "ewActionOption";
$this->OtherOptions['detail'] = new cListOptions();
$this->OtherOptions['detail']->Tag = "div";
$this->OtherOptions['detail']->TagClassName = "ewDetailOption";
}
示例14: __construct
function __construct()
{
global $conn, $Language;
$this->FormActionName .= '_' . $this->FormName;
$this->FormKeyName .= '_' . $this->FormName;
$this->FormOldKeyName .= '_' . $this->FormName;
$this->FormBlankRowName .= '_' . $this->FormName;
$this->FormKeyCountName .= '_' . $this->FormName;
$GLOBALS["Grid"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (products)
if (!isset($GLOBALS["products"]) || get_class($GLOBALS["products"]) == "cproducts") {
$GLOBALS["products"] =& $this;
// $GLOBALS["MasterTable"] = &$GLOBALS["Table"];
// if (!isset($GLOBALS["Table"])) $GLOBALS["Table"] = &$GLOBALS["products"];
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'grid', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'products', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// List options
$this->ListOptions = new cListOptions();
$this->ListOptions->TableVar = $this->TableVar;
// Other options
$this->OtherOptions['addedit'] = new cListOptions();
$this->OtherOptions['addedit']->Tag = "div";
$this->OtherOptions['addedit']->TagClassName = "ewAddEditOption";
}
示例15: __construct
function __construct()
{
global $conn, $Language;
global $UserTable, $UserTableConn;
$GLOBALS["Page"] =& $this;
$this->TokenTimeout = ew_SessionTimeoutTime();
// Language object
if (!isset($Language)) {
$Language = new cLanguage();
}
// Parent constuctor
parent::__construct();
// Table object (ReportePrueba)
if (!isset($GLOBALS["ReportePrueba"]) || get_class($GLOBALS["ReportePrueba"]) == "cReportePrueba") {
$GLOBALS["ReportePrueba"] =& $this;
$GLOBALS["Table"] =& $GLOBALS["ReportePrueba"];
}
// Initialize URLs
$this->ExportPrintUrl = $this->PageUrl() . "export=print";
$this->ExportExcelUrl = $this->PageUrl() . "export=excel";
$this->ExportWordUrl = $this->PageUrl() . "export=word";
// Table object (user)
if (!isset($GLOBALS['user'])) {
$GLOBALS['user'] = new cuser();
}
// Page ID
if (!defined("EW_PAGE_ID")) {
define("EW_PAGE_ID", 'report', TRUE);
}
// Table name (for backward compatibility)
if (!defined("EW_TABLE_NAME")) {
define("EW_TABLE_NAME", 'ReportePrueba', TRUE);
}
// Start timer
if (!isset($GLOBALS["gTimer"])) {
$GLOBALS["gTimer"] = new cTimer();
}
// Open connection
if (!isset($conn)) {
$conn = ew_Connect($this->DBID);
}
// User table object (user)
if (!isset($UserTable)) {
$UserTable = new cuser();
$UserTableConn = Conn($UserTable->DBID);
}
// Export options
$this->ExportOptions = new cListOptions();
$this->ExportOptions->Tag = "div";
$this->ExportOptions->TagClassName = "ewExportOption";
}