From 83fcf9487d082dfca821124a37e42c826e2a2031 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Fri, 30 Sep 2022 15:35:42 +0200 Subject: [PATCH] Improve DEBUG --- html/do.php | 73 ++++----------------------------------- html/user_login.php | 8 +++++ include/lib/ac_common.php | 57 +++++++++++++++++++++++++++++- 3 files changed, 70 insertions(+), 68 deletions(-) diff --git a/html/do.php b/html/do.php index d668aa8e7..8fa3c80d8 100644 --- a/html/do.php +++ b/html/do.php @@ -78,73 +78,12 @@ $style_user=$http->post("style_user","string",$_SESSION[SESSION_KEY.'g_theme']); html_page_start($style_user); if ( DEBUGNOALYSS > 1 ) { -/** - * Debug Design - */ -echo <<Small -
Medium
-
Large
-
X Large
-EOF; - - ?> - - - - - 1 ) { + /** + * Debug Design + */ + debug_show_size(); + debug_show_request(); + debug_show_global(); +} //<--- if DEBUG $ac=new Database(); $hi=new HttpInput(); diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php index a6955346d..4c390adc3 100644 --- a/include/lib/ac_common.php +++ b/include/lib/ac_common.php @@ -1682,4 +1682,59 @@ function linkTo($p_url) } else { return $p_url; } -} \ No newline at end of file +} +function debug_show_size() +{ + echo <<Xtra Small +
Small
+
Medium
+
Large
+
X Large
+EOF; +} +/** + * @brief for development , show request (POST, GET) + * @return void + */ + function debug_show_request() { + $id=uniqid("debug"); + $title=\HtmlInput::title_box(_("REQUEST"),$id,"hide"); + ?> + + + + + +