debug)
{
$debug = "\n
";
// templates
if ($dotemplates)
{
$optlist = array();
$usage = array();
foreach ($this->modules['template']->usage AS $name => $count)
{
if (in_array($name, $this->modules['template']->uncached))
{
$optlist[] = $name . '[' . $count . ']';
}
$usage[] = $name . " ($count)";
}
$sizeof = sizeof($this->modules['template']->uncached);
if ($sizeof > 0)
{
$debug .= "\n\t- Uncached Template(s): $sizeof ( " . implode(' ', $optlist) . " )
";
}
}
// source control
if (defined('SVN') AND preg_match('#\$Id:?\s*\$#', constant('SVN')))
{
$debug .= "\n\t- Source Control: " . preg_replace('#\$' . 'Id: (.+?) ([0-9].+?) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.+?) (.+?) \$#', '\\1 - SVN \\2', constant('SVN')) . "
";
}
// query information
if (is_object($this->modules[ISSO_DB_LAYER]))
{
$debug .= "\n\t- Total Queries: " . sizeof($this->modules[ISSO_DB_LAYER]->history) . " (sanitize($_SERVER['REQUEST_URI']) . ((strpos($_SERVER['REQUEST_URI'], '?') !== false) ? '&query=1' : '?query=1') . "\">?)
";
}
// total execution time
if (defined('ISSO_MT_START'))
{
$this->load('functions', 'functions');
$debug .= "\n\t- Total Execution Time: " . round($this->modules['functions']->fetch_microtime_diff(ISSO_MT_START), 10) . "
";
}
// debug notices
$debug .= "\n\t- \n\t\t\n\t
";
// template usage
if ($dotemplates)
{
$debug .= "\n\t- \n\t\t\n\t
";
}
$debug .= "\n
";
$debug = "\n\n\n\n\n
\n" . $this->message('Debug Information', $debug, 1, true, false) . "\n\n\n\n";
}
return $debug;
}
}
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>