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
35 lines (35 loc) · 1022 Bytes
/
debug_panel.php
File metadata and controls
35 lines (35 loc) · 1022 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
32
33
34
35
<div x-data="{ open: false }" class="debug-panel">
<button
type="button"
class="debug-panel-toggle"
x-on:click="open = !open"
x-text="open ? '<?= _("Close debug panel") ?>' : '<?= _("Open debug panel") ?>'">
<?= _("Open debug panel") ?>
</button>
<div x-cloak x-show="open" 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>