Skip to content

Commit 459ab14

Browse files
author
Kristan Kenney
committed
Add GET/POST to debug mode
1 parent ff9e51b commit 459ab14

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

web/templates/header.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</head>
3838
<body class="body-<?=strtolower($TAB)?> lang-<?=$_SESSION['language']?>">
3939
<?php if (($_SESSION['DEBUG_MODE']) == "true" ) {?>
40-
<div style="font-size:12px !important; padding:12px;position:sticky;top:0;z-index:3000;background-color:#fff;">
40+
<div style="font-size:12px !important; padding:12px;position:sticky;top:0;z-index:3000;background-color:#fff;height:200px;overflow:scroll;">
4141
<?php
4242
echo "<h3>Server Variables</h3>";
4343
foreach ($_SERVER as $key=>$val)
@@ -48,6 +48,16 @@
4848
foreach ($_SESSION as $key=>$val)
4949
echo "<b>".$key."= </b> ".$val." ";
5050
?>
51+
<?php
52+
echo "<h3>POST Variables</h3>";
53+
foreach ($_POST as $key=>$val)
54+
echo "<b>".$key."= </b> ".$val." ";
55+
?>
56+
<?php
57+
echo "<h3>GET Variables</h3>";
58+
foreach ($_GET as $key=>$val)
59+
echo "<b>".$key."= </b> ".$val." ";
60+
?>
5161
</div>
5262
<?php } ?>
5363

0 commit comments

Comments
 (0)