-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinfo.php
More file actions
executable file
·52 lines (51 loc) · 1.03 KB
/
info.php
File metadata and controls
executable file
·52 lines (51 loc) · 1.03 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
<?php
define("BASEPATH", true);
include './system/config.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Server and session info</title>
</head>
<body>
<h1>Server and session info</h1>
<h2>Server info: </h2>
<table style="border: 2px solid #000;border-collapse: collapse"
border="2px">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<?php
foreach ($_SERVER as $Key => $Value) {
echo "<tr><td>$Key</td><td>$Value</td></tr>";
}
?>
</tbody>
</table>
<h2>Session info</h2>
<table style="border: 2px solid #000;border-collapse: collapse"
border="2px">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<?php
foreach ($_SESSION as $Key => $Value) {
if (is_array($Value)) {
echo "<tr><td>$Key</td><td>" . var_export($Value, true) . "</td></tr>";
} else {
echo "<tr><td>$Key</td><td>$Value</td></tr>";
}
}
?>
</tbody>
</table>
</body>
</html>