Browse Source

Add GET/POST to debug mode

Kristan Kenney 5 years ago
parent
commit
459ab142e1
1 changed files with 11 additions and 1 deletions
  1. 11 1
      web/templates/header.html

+ 11 - 1
web/templates/header.html

@@ -37,7 +37,7 @@
 </head>
 <body class="body-<?=strtolower($TAB)?> lang-<?=$_SESSION['language']?>">
     <?php if (($_SESSION['DEBUG_MODE']) == "true" ) {?>
-    <div style="font-size:12px !important; padding:12px;position:sticky;top:0;z-index:3000;background-color:#fff;">
+    <div style="font-size:12px !important; padding:12px;position:sticky;top:0;z-index:3000;background-color:#fff;height:200px;overflow:scroll;">
         <?php
             echo "<h3>Server Variables</h3>";
             foreach ($_SERVER as $key=>$val)
@@ -48,6 +48,16 @@
             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>
 <?php } ?>