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
23 lines (23 loc) · 744 Bytes
/
debug_panel.php
File metadata and controls
23 lines (23 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div class="debug-panel-header"><?=_('Debug mode is enabled.');?> <a href="javascript:elementHideShow('debug-panel')"><?=_('Show / Hide Panel');?></a></div>
<div class="debug-panel-contents animate__animated animate__fadeIn" id="debug-panel" style="display:none;">
<?php
echo "<h3>Server Variables</h3>";
foreach ($_SERVER as $key=>$val)
echo "<b>".$key."= </b> ".$val." ";
?>
<?php
echo "<h3>Session Variables</h3>";
foreach ($_SESSION as $key=>$val)
echo "<b>".$key."= </b> ".$val." ";
?>
<?php
echo "<h3>POST Variables</h3>";
foreach ($_POST as $key=>$val)
echo "<b>".$key."= </b> ".$val." ";
?>
<?php
echo "<h3>GET Variables</h3>";
foreach ($_GET as $key=>$val)
echo "<b>".$key."= </b> ".$val." ";
?>
</div>