Code: Select all
<br /><img src="{S_GZIP_IMG}" alt="{L_GZIP_ON}" /> {L_GZIP_ON} <img src="{S_QUERIES_IMG}" alt="{L_NUMBER_QUERIES}" alt="{L_NUMBER_QUERIES}" />{L_NUMBER_QUERIES} <img src="{S_GENERATION_IMG}" alt="{L_GENERATION_TIME}" /> {L_GENERATION_TIME}
Code: Select all
<img src="{S_QUERIES_IMG}" alt="{L_NUMBER_QUERIES}" alt="{L_NUMBER_QUERIES}" />
Parse error: parse error, unexpected $ in /var/www/html/phpbb/includes/page_tail.php on line 83
Code: Select all
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$template->set_filenames(array(
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);
$template->assign_vars(array(
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '',
'ADMIN_LINK' => $admin_link)
);
//-------------------------- MOD: Forum Information MOD --------------------------
//delete
//$template->pparse('overall_footer');
//-------------------------- End MOD: Forum Information MOD --------------------------
//
// Close our DB connection.
//
$db->sql_close();
//
// Compress buffered output if required and send to browser
//
if ( $do_gzip_compress )
{
//
// Borrowed from php.net!
//
$gzip_contents = ob_get_contents();
ob_end_clean();
$gzip_size = strlen($gzip_contents);
$gzip_crc = crc32($gzip_contents);
$gzip_contents = gzcompress($gzip_contents, 9);
$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
//-------------------------- MOD: Forum Information MOD --------------------------
$endtime = microtime();
$endtime = explode(" ", microtime());
$endtime = $endtime[1] + $endtime[0];
$gentime = round(($endtime - $starttime), 5);
$template->assign_vars(array(
'L_GENERATION_TIME' => sprintf($lang['L_GENERATION_TIME'], $gentime),
'L_NUMBER_QUERIES' => sprintf($lang['L_MYSQL_QUERIES'], $db->num_queries),
'L_GZIP_ON' => ($board_config['gzip_compress']) ? $lang['L_GZIP_ENABLED'] : $lang['L_GZIP_DISABLED'],
'S_GZIP_IMG' => $images['gzip'],
'S_QUERIES_IMG' => $images['queries'],
'S_GENERATION_IMG' => $images['generation']
)
);
$template->pparse('overall_footer');
//-------------------------- End MOD: Forum Information MOD --------------------------
exit;
?>
Code: Select all
//-------------------------- End MOD: Forum Information MOD --------------------------
Code: Select all
$template->pparse('overall_footer');
Code: Select all
if ( $do_gzip_compress )
{
//
// Borrowed from php.net!
//
$gzip_contents = ob_get_contents();
ob_end_clean();
$gzip_size = strlen($gzip_contents);
$gzip_crc = crc32($gzip_contents);
$gzip_contents = gzcompress($gzip_contents, 9);
$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
Code: Select all
echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
echo $gzip_contents;
echo pack('V', $gzip_crc);
echo pack('V', $gzip_size);
}