summaryrefslogtreecommitdiff
blob: 9b42bcc69e22ebb20eaa9b063d32a3ca522e5e4a (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 $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 ($S['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>