noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 12/13: Development : tools for debugging, add


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 12/13: Development : tools for debugging, add button for the $_REQUEST and correct a bug in dbg.php
Date: Sun, 16 Oct 2022 17:26:15 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4fb5154fa1fce04968689f4bf96c0e9c37888de7
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Oct 16 23:18:28 2022 +0200

    Development : tools for debugging, add button for the $_REQUEST and correct 
a bug in dbg.php
---
 html/admin-noalyss.php | 9 +++++++++
 include/lib/dbg.php    | 1 +
 2 files changed, 10 insertions(+)

diff --git a/html/admin-noalyss.php b/html/admin-noalyss.php
index 4965c7676..c6d273783 100644
--- a/html/admin-noalyss.php
+++ b/html/admin-noalyss.php
@@ -31,7 +31,16 @@ if (file_exists("../include/config.inc.php") ) {
     define ('ALLOWED',1);
     define ('ALLOWED_ADMIN',1);
     require_once '../include/constant.php';
+
     \Noalyss\Dbg::echo_file(__FILE__);
+    if ( DEBUGNOALYSS > 1 ) {
+        /**
+         * Debug Design
+         */
+        \Noalyss\Dbg::display_size();
+        \Noalyss\Dbg::display_request();
+        \Noalyss\Dbg::display_global();
+    } //<--- if DEBUG
     require_once NOALYSS_INCLUDE.'/admin_repo.inc.php';
 } else {
     // Redirect to install file , if this file exists then 
diff --git a/include/lib/dbg.php b/include/lib/dbg.php
index 03232c897..5b6425853 100644
--- a/include/lib/dbg.php
+++ b/include/lib/dbg.php
@@ -1,6 +1,7 @@
 <?php
 
 namespace Noalyss;
+require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
 
 class Dbg
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]