time); $foot[] = sprintf(_PAGEFOOTER, round($total_time,4), $db->num_queries, round($db->time,4)); // only works if your PHP is compiled with the --enable-memory-limit configuration option if (function_exists('memory_get_usage') && $start_mem > 0) { $total_mem = memory_get_usage()-$start_mem; $foot[] = 'Memory Usage: '.(($total_mem >= 1048576) ? round((round($total_mem / 1048576 * 100) / 100), 2).' MB' : (($total_mem >= 1024) ? round((round($total_mem / 1024 * 100) / 100), 2).' KB' : $total_mem.' Bytes')); } $foot[] = ''; $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', (CPG_DEBUG || $GLOBALS['MAIN_CFG']['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false)); $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', $GLOBALS['cpgdebugger']->get_report('php')); } return '
'; } $Blocks->display('d'); themefooter(); $cpgtpl->__destruct(); // FORCING closure now $SESS->write_close(); $db->sql_close(); exit;