[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 27/65: Better debugging : add a button to sho
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 27/65: Better debugging : add a button to show the request $_POST and $_GET |
Date: |
Wed, 09 Sep 2015 08:27:15 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 089e5936a6ebd6ddcd8f0d8cfe1a42ad6ae03dd7
Author: Dany De Bontridder <address@hidden>
Date: Tue Sep 1 01:26:42 2015 +0200
Better debugging : add a button to show the request $_POST and $_GET
---
html/do.php | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/html/do.php b/html/do.php
index 5bd759f..a8ceef2 100644
--- a/html/do.php
+++ b/html/do.php
@@ -51,7 +51,35 @@ if ( ! isset ($_SESSION['g_theme']))
$style_user=HtmlInput::default_value_post("style_user",$_SESSION['g_theme']);
html_page_start($style_user);
+if ( DEBUG ) {
+ ?>
+<div id="debug_div" style="border:slategray solid
1px;position:absolute;background:white;display:fixed;top:2px;left:50px;z-index:1000;display:none">
+ <h2>$_POST</h2>
+ <?php
+ var_dump($_POST);
+ ?>
+ <h2>$_GET</h2>
+ <?php
+ var_dump($_GET);
+ ?>
+</div>
+<script>
+ function show_debug_request() {
+ var visible=document.getElementById('debug_div').style.display;
+ console.log(visible);
+ var new_state="";
+ if ( visible == 'block') { new_state='none';}
+ else
+ if ( visible == 'none') { new_state='block';}
+ else
+ console.log('erreur');
+ document.getElementById('debug_div').style.display=new_state;
+ }
+</script>
+<input type="button" class="tinybutton"
style="position:absolute;display:fixed;top:40px;margin-left:580px;z-index:1000"
value="show request" onclick="show_debug_request()">
+<?php
+}
global $g_user, $cn,$g_parameter;
- [Noalyss-commit] [noalyss] 11/65: Esthetic, (continued)
- [Noalyss-commit] [noalyss] 11/65: Esthetic, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 17/65: When creating a new event from dashboard then the event date is the remind date, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 18/65: Update the template for the config file, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 19/65: remove margin in tabs_, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 20/65: Bug#1170 : button with wrong redirect, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 21/65: Bug#1166 : in No VAT mode , the amount is divided by 1000, due to an excedent of nbm, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 23/65: beter size for subject, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 15/65: bug in redirect, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 24/65: Update documentation, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 22/65: Script SQL à ajouter, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 27/65: Better debugging : add a button to show the request $_POST and $_GET,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 25/65: insert contact, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 29/65: Bug#1158 : sign and side of Analytic accountancy, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 30/65: comment, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 31/65: Fix issue : cannot zoom an operation after saving it., Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 35/65: Esthetic : message is nothing found in menu, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 33/65: Task#1173 : create a empty database to restaure in command line, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 36/65: Missing file, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 37/65: Use the profile instead of the login name in the view, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 39/65: Add the side D/C to aged balance, Dany De Bontridder, 2015/09/09
- [Noalyss-commit] [noalyss] 38/65: translation, Dany De Bontridder, 2015/09/09