-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsessionlog.php
More file actions
executable file
·57 lines (54 loc) · 1.91 KB
/
Copy pathsessionlog.php
File metadata and controls
executable file
·57 lines (54 loc) · 1.91 KB
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
<?php
/**
* @copyright Copyright (C) DocuSign, Inc. All rights reserved.
*
* This source code is intended only as a supplement to DocuSign SDK
* and/or on-line documentation.
* This sample is designed to demonstrate DocuSign features and is not intended
* for production use. Code and policy for a production application must be
* developed to meet the specific data and security requirements of the
* application.
*
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*/
// start session and some helper functions
include("include/session.php");
// grab error message from session
$demoTitle = "Session Log";
if($_SERVER["REQUEST_METHOD"]=="POST"){
// clear session var
$_SESSION["traceLog"] = array();
header("Location: sessionlog.php");
die();
} else if ($_SERVER["REQUEST_METHOD"]=="GET") {
$sessionLogText = implode("<br/>",$_SESSION["traceLog"]);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
<title>DocuSign, Inc. ESIGN Sample</title>
<link href="css/style.css" rel="stylesheet" type="text/css"></link>
</head>
<body>
<div id="header">
<div class="logo"> </div>
<div class="logorepeat"> </div>
</div>
<div id="content">
<div>
<div class="SessionLogDisplay"><pre><?php echo $sessionLogText; ?><pre></div>
<br/>
<form name="sessionLogForm" method="post">
<input type="submit" name="btnNext" id="btnNext" value="Clear Log" style="float: right;" />
</form>
</div>
</div>
<div id="footer"> </div>
</div>
</body>
</html>