forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_panel.php
More file actions
31 lines (31 loc) · 936 Bytes
/
Copy pathdebug_panel.php
File metadata and controls
31 lines (31 loc) · 936 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
30
31
<div x-data="{ open: false }" class="debug-panel">
<a x-on:click="open = !open" class="debug-panel-toggle">
<?= _("Toggle Debug Panel") ?>
</a>
<div x-cloak x-show="open" id="debug-panel-content" class="debug-panel-content animate__animated animate__fadeIn">
<?php
echo "<h3 class=\"u-mb10\">Server Variables</h3>";
foreach ($_SERVER as $key => $val) {
echo "<b>" . $key . "= </b> " . $val . " ";
}
?>
<?php
echo "<h3 class=\"u-mb10 u-mt10\">Session Variables</h3>";
foreach ($_SESSION as $key => $val) {
echo "<b>" . $key . "= </b> " . $val . " ";
}
?>
<?php
echo "<h3 class=\"u-mb10 u-mt10\">POST Variables</h3>";
foreach ($_POST as $key => $val) {
echo "<b>" . $key . "= </b> " . $val . " ";
}
?>
<?php
echo "<h3 class=\"u-mb10 u-mt10\">GET Variables</h3>";
foreach ($_GET as $key => $val) {
echo "<b>" . $key . "= </b> " . $val . " ";
}
?>
</div>
</div>