PHP Code:
$lang['GZIP_Enabled'] = 'GZIP: Enabled';
$lang['GZIP_Disabled'] = 'GZIP: Disabled';
$lang['Gen_Time'] = 'Generation Time: %s Seconds';
$lang['Queries'] = 'Queries: %s';
$gzip = ($board_config['gzip_compress']) ? $lang['GZIP_Enabled'] : $lang['GZIP_Disabled'];
$excuted_queries = $db->num_queries;
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$gentime = round(($endtime - $starttime), 2);
$template->assign_vars(array(
'GENERATION_TIME' => sprintf($lang['Gen_Time'], $gentime),
'NUMBER_QUERIES' => sprintf($lang['Queries'], $excuted_queries),
'GZIP_TEXT' => $gzip,
)
);
$template->assign_block_vars('generation_time_switch', array() );
For some reason it gives me the seconds all wrong..
Quote:
[Generation Time: 1114635571.26 Seconds] | [Queries: 3] | [GZIP: Enabled]
|