Gazelle/sections/tools/misc/analysis.php

29 lines
781 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
2013-05-14 08:00:34 +00:00
if (!check_perms('site_debug')) {
error(403);
}
2011-03-28 14:21:28 +00:00
2013-05-14 08:00:34 +00:00
if (!isset($_GET['case']) || !$Analysis = $Cache->get_value('analysis_'.$_GET['case'])) {
error(404);
}
2011-03-28 14:21:28 +00:00
2012-10-11 08:00:15 +00:00
View::show_header('Case Analysis');
2011-03-28 14:21:28 +00:00
?>
2012-08-19 08:00:19 +00:00
<div class="header">
<h2>Case Analysis (<a href="<?=display_str($Analysis['url'])?>"><?=$_GET['case']?></a>)</h2>
</div>
2013-10-11 08:01:04 +00:00
<pre id="debug_report"><?=display_str($Analysis['message'])?></pre>
2011-03-28 14:21:28 +00:00
<?
2012-10-30 08:00:18 +00:00
$Debug->perf_table($Analysis['perf']);
2011-03-28 14:21:28 +00:00
$Debug->flag_table($Analysis['flags']);
$Debug->include_table($Analysis['includes']);
$Debug->error_table($Analysis['errors']);
$Debug->query_table($Analysis['queries']);
$Debug->cache_table($Analysis['cache']);
$Debug->class_table();
$Debug->extension_table();
$Debug->constant_table();
2011-10-29 08:00:15 +00:00
$Debug->vars_table($Analysis['vars']);
2012-10-11 08:00:15 +00:00
View::show_footer();
2011-10-29 08:00:15 +00:00
?>