summaryrefslogtreecommitdiff
blob: 96ba9b9ee07ec71c11e452fae20550f944b2e479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</div><div id="bottom" class="box">
<?php
global $conf, $S;
if (isset($S['start'])) {
	$diff=round(microtime(true)-$S['start'], 3);
	echo 'Execution took '.$diff.' seconds.<br/>'."\n";
}
echo /*'&#169; Eitan Mosenkis '.date('Y').*/'</div>';
if ($conf['debug']) {
	echo '<br/><div id="debug"><div class="heading" onclick="toggledebugbox()">Debug (<span id="debugcount">'.$S['debugrow'].'</span>) <span id="debugactions">[<a href="javascript:cleardebug()" id="debugclear">Clear</a>] [<a href="javascript:closedebug()" id="debugclose">X</a>]</span></div><div id="debugbox">'./*$state->debug.*/'</div></div>'."\n";
	echo '<script type="text/javascript">
	<!--
	toggledebugbox();'."\n";
	foreach ($S['debug'] as $row) {
		list($type, $text)=$row;
		$text=str_replace(array('"', "\r", "\n", "\t"), array('\"', '\\r', '\\n', '\\t'), $text);
		// $text used to have htmlentities() run on it, but that killed the SQL output tables
		if ($type == null) {
			echo 'debug("'.$text.'");'."\n";
		} else {
			echo 'debug("'.$type.'", "'.$text.'");'."\n";
		}
	}
	echo 'showdebug(debugrow);
	-->
	</script>';
}
?>
</body>
</html>