-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathewsession14.php
61 lines (50 loc) · 1.23 KB
/
ewsession14.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
if (session_id() == "") session_start(); // Init session data
ob_start(); // Turn on output buffering
?>
<?php include_once "ewcfg14.php" ?>
<?php include_once ((EW_USE_ADODB) ? "adodb5/adodb.inc.php" : "ewmysql14.php") ?>
<?php include_once "phpfn14.php" ?>
<?php include_once "userfn14.php" ?>
<?php
ew_Header(FALSE);
$session = new cewsession;
$session->Page_Main();
//
// Page class for session
//
class cewsession {
// Page ID
var $PageID = "session";
// Project ID
var $ProjectID = "{7dac28fc-e6ee-49d2-b722-398a2b30146f}";
// Page object name
var $PageObjName = "session";
// Page name
function PageName() {
return ew_CurrentPage();
}
// Page URL
function PageUrl() {
return ew_CurrentPage() . "?";
}
// Main
// - Uncomment ** for database connectivity / Page_Loading / Page_Unloaded server event
function Page_Main() {
global $conn;
$GLOBALS["Page"] = &$this;
//**$conn = ew_Connect();
// Global Page Loading event (in userfn*.php)
//**Page_Loading();
if (ob_get_length())
ob_end_clean();
$time = time();
$_SESSION["EW_LAST_REFRESH_TIME"] = $time;
echo ew_Encrypt($time);
// Global Page Unloaded event (in userfn*.php)
//**Page_Unloaded();
// Close connection
//**ew_CloseConn();
}
}
?>