mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Display number of included files in debug-includes mode.
This commit is contained in:
parent
31e658a2ae
commit
b1bc9c6a11
@ -33,6 +33,13 @@ class e107_db_debug {
|
||||
var $scbcount;
|
||||
var $deprecated_funcs = array();
|
||||
var $aLog = array(); // Generalized debug log (only seen during debug)
|
||||
|
||||
function __construct()
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function e107_db_debug() {
|
||||
global $eTimingStart;
|
||||
@ -64,7 +71,11 @@ class e107_db_debug {
|
||||
$this->ShowIf('Shortcodes / BBCode',$this->Show_SC_BB());
|
||||
$this->ShowIf('Paths', $this->Show_PATH());
|
||||
$this->ShowIf('Deprecated Function Usage', $this->Show_DEPRECATED());
|
||||
$this->ShowIf('Included Files', $this->Show_Includes());
|
||||
if(E107_DBG_INCLUDES)
|
||||
{
|
||||
$this->aIncList = get_included_files();
|
||||
}
|
||||
$this->ShowIf('Included Files: '.count($this->aIncList), $this->Show_Includes());
|
||||
}
|
||||
|
||||
function ShowIf($title,$str)
|
||||
@ -635,10 +646,11 @@ class e107_db_debug {
|
||||
{
|
||||
if (!E107_DBG_INCLUDES) return FALSE;
|
||||
|
||||
$aIncList = get_included_files();
|
||||
|
||||
|
||||
$text = "<table class='fborder table table-striped'>\n";
|
||||
$text .= "<tr><td class='forumheader3'>".
|
||||
implode(" </td></tr>\n<tr><td class='forumheader3'>", $aIncList).
|
||||
implode(" </td></tr>\n<tr><td class='forumheader3'>", $this->aIncList).
|
||||
" </td></tr>\n";
|
||||
$text .= "</table>\n";
|
||||
return $text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user