-
Notifications
You must be signed in to change notification settings - Fork 2
/
session_details.php
56 lines (48 loc) · 1.1 KB
/
session_details.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
<?php
// ===========================================================================================
//
// Origin: http://github.com/mosbth/Utility
//
// Filename: session_details.php
//
// Description: Check and set details about session.
//
// Author: Mikael Roos, mos@bth.se
//
// Revision history:
//
// 2010-05-17: Initial effort to put it together.
//
// -------------------------------------------------------------------------------------------
//
// Print out details of the current session
//
$html = <<<EOD
<h1>nnn</h1>
EOD;
// -------------------------------------------------------------------------------------------
//
// Create and print out the html-page
//
$title = "Session details";
$charset = "utf-8";
$language = "en";
$html = <<< EOD
<!DOCTYPE html>
<html lang="{$language}">
<head>
<meta charset="{$charset}" />
<title>{$title}</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
{$html}
</body>
</html>
EOD;
// Print the header and page
header("Content-Type: text/html; charset={$charset}");
echo $html;
exit;