forked from sjsrey/gtd-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathses.inc.php
More file actions
29 lines (27 loc) · 988 Bytes
/
ses.inc.php
File metadata and controls
29 lines (27 loc) · 988 Bytes
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
<?php
session_start();
global $pagename,$starttime,$totalquerytime;
list($usec, $sec) = explode(" ", microtime());
$starttime=(float)$usec + (float)$sec;
$totalquerytime=0;
if(isset($_SESSION['views']) && isset($_SESSION['addonsdir']))
$_SESSION['views']++;
else{
$_SESSION['categoryId'] = $_SESSION['contextId'] = 0;
$_SESSION['debug']=$_SESSION['sort']=$_SESSION['keys']=$_SESSION['config']=
$_SESSION['hierarchy']=$_SESSION['message']=$_SESSION['addons']=array();
$_SESSION['version'] = '';
$_SESSION['views'] = 1;
$_SESSION['uid'] = 0;
$_SESSION['addonsdir']='addons/';
}
ignore_user_abort(false);
$thisurl=parse_url($_SERVER[
(empty($_SERVER['SCRIPT_NAME']))
? ( (empty($_SERVER['PHP_SELF']))
? 'REQUEST_URI'
: 'PHP_SELF' )
: 'SCRIPT_NAME'
]);
$pagename=basename($thisurl['path'],".php");
// php closing tag has been omitted deliberately, to avoid unwanted blank lines being sent to the browser