1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 17:39:46 +01:00

Display number of included files in debug-includes mode.

This commit is contained in:
Cameron 2013-02-26 21:44:12 -08:00
parent 31e658a2ae
commit b1bc9c6a11

View File

@ -33,6 +33,13 @@ class e107_db_debug {
var $scbcount; var $scbcount;
var $deprecated_funcs = array(); var $deprecated_funcs = array();
var $aLog = array(); // Generalized debug log (only seen during debug) var $aLog = array(); // Generalized debug log (only seen during debug)
function __construct()
{
}
function e107_db_debug() { function e107_db_debug() {
global $eTimingStart; global $eTimingStart;
@ -64,7 +71,11 @@ class e107_db_debug {
$this->ShowIf('Shortcodes / BBCode',$this->Show_SC_BB()); $this->ShowIf('Shortcodes / BBCode',$this->Show_SC_BB());
$this->ShowIf('Paths', $this->Show_PATH()); $this->ShowIf('Paths', $this->Show_PATH());
$this->ShowIf('Deprecated Function Usage', $this->Show_DEPRECATED()); $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) function ShowIf($title,$str)
@ -635,10 +646,11 @@ class e107_db_debug {
{ {
if (!E107_DBG_INCLUDES) return FALSE; if (!E107_DBG_INCLUDES) return FALSE;
$aIncList = get_included_files();
$text = "<table class='fborder table table-striped'>\n"; $text = "<table class='fborder table table-striped'>\n";
$text .= "<tr><td class='forumheader3'>". $text .= "<tr><td class='forumheader3'>".
implode("&nbsp;</td></tr>\n<tr><td class='forumheader3'>", $aIncList). implode("&nbsp;</td></tr>\n<tr><td class='forumheader3'>", $this->aIncList).
"&nbsp;</td></tr>\n"; "&nbsp;</td></tr>\n";
$text .= "</table>\n"; $text .= "</table>\n";
return $text; return $text;