parent
6fd7dcc3b5
commit
3f645612e0
12
index.php
12
index.php
@ -3,16 +3,6 @@
|
|||||||
# All rights reserved. See LICENSE file for licensing details
|
# All rights reserved. See LICENSE file for licensing details
|
||||||
|
|
||||||
|
|
||||||
#apd_set_pprof_trace();
|
|
||||||
|
|
||||||
function microtime_float() {
|
|
||||||
list($usec, $sec) = explode(" ", microtime());
|
|
||||||
return ((float)$usec + (float)$sec);
|
|
||||||
}
|
|
||||||
|
|
||||||
$time_start = microtime_float();
|
|
||||||
|
|
||||||
|
|
||||||
// We need to set this to return a 200 since we use .htaccess ErrorDocument
|
// We need to set this to return a 200 since we use .htaccess ErrorDocument
|
||||||
// rules to handle archives.
|
// rules to handle archives.
|
||||||
header('HTTP/1.0 200');
|
header('HTTP/1.0 200');
|
||||||
@ -146,6 +136,4 @@ if (!defined('NO_EXIT')) {
|
|||||||
$serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath'));
|
$serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_object($serendipity['logger'])) $serendipity['logger']->debug('Page delivered in '. round(microtime_float()-$time_start,6) .' seconds, '. sizeof(get_included_files()) .' files included');
|
|
||||||
|
|
||||||
/* vim: set sts=4 ts=4 expandtab : */
|
/* vim: set sts=4 ts=4 expandtab : */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user