- Kod: Tümünü seç
##############################################################
## MOD Title: Forum Information - ALEXIS edition
## MOD Author: lowjoel <webmaster@joelsplace.sg> Joel Low - http://joelsplace.sg/
## MOD Description: Displays the Number of script queries executed, GZIP
## compression information and page execution time.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: extension.inc,
## language/lang_turkish/lang_main.php
## includes/page_tail.php
## templates/subSilver/overall_footer.tpl
##
##############################################################
## MOD History:
##
## 2005-03-17 - Version 1.0.1
## - Updated installation instructions
## - Created folder hierachy for easy extraction
##
## 2005-03-12 - Version 1.0.0
## - Original release
##
##############################################################
## Author Notes:
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#
#-----[ OPEN ]------------------------------------------
#
extension.inc
#
#-----[ FIND ]------------------------------------------
#
$starttime = 0;
#
#-----[ REPLACE WITH ]------------------------------------------
#
//-- [+] MOD: Forum Information ------------------------------------------
//-- replace
//
// $starttime = 0;
//
$starttime = time();
//
//-- [-] MOD: Forum Information ------------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
language/lang_turkish/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
// That's all, Folks!
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Forum Information
$lang['L_GZIP_ENABLED'] = 'GZIP: Açık';
$lang['L_GZIP_DISABLED'] = 'GZIP: Kapalı';
// [+] ALEXIS
$lang['L_DEBUG_ENABLED'] = 'DEBUG: Açık';
$lang['L_DEBUG_DISABLED'] = 'DEBUG: Kapalı';
// [-] ALEXIS
$lang['L_GENERATION_TIME'] = 'Sayfa oluşturma: %s s';
$lang['L_MYSQL_QUERIES'] = 'Sorgular: %s';
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_footer');
#
#-----[ REPLACE WITH ]------------------------------------------
#
//-- [+] MOD: Forum Information ------------------------------------------
//-- delete
//
//$template->pparse('overall_footer');
//
//-- [-] MOD: Forum Information ------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
echo $gzip_contents;
echo pack('V', $gzip_crc);
echo pack('V', $gzip_size);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- [+] MOD: Forum Information ------------------------------------------
//-- add
//
$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'],
// [+] ALEXIS
'L_DEBUG_ON' => (DEBUG == 1) ? $lang['L_DEBUG_ENABLED'] : $lang['L_DEBUG_DISABLED'],
// [-] ALEXIS
)
);
$template->pparse('overall_footer');
//
//-- [-] MOD: Forum Information ------------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
{TRANSLATION_INFO}
#
#-----[ AFTER, ADD ]------------------------------------------
#
{L_GZIP_ON}
<!-- [+] ALEXIS //-->
{L_DEBUG_ON}
<!-- [-] ALEXIS //-->
{L_NUMBER_QUERIES}
{L_GENERATION_TIME}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM