Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Taki mały dyngs
Konnekt | Forum > Offtopic > Hydepark
BaGRoS
Jak się włącza w phpBB2 takie cosik jak na dole:

phpBB Created this page in 1.68 seconds : 17 queries executed : GZIP compression enabled

??
hao
O tak:

CODE
#################################################################
## Mod Title:   Generation Creation
## Mod Version:  1.0.0 Final
## Author:   Brewjah < blackhash@rogers.com >
## Description:
##
## This adds
## phpBB Created this page in 2.902957 seconds : 16 queries executed : GZIP compression disabled
## at the very bottom of every page..
##
## Installation Level:  Easy
## Installation Time:  2 Minutes
## Files To Edit:  extension.inc
##    page_tail.php
## Included Files: n/a
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
#################################################################
##
## Author Note:
## No Notes.
##
## the phpBB Group Reserves The Right To Remove/Edit Author Notes,
## Should It Be Warranted
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php

#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_footer');

#
#-----[ AFTER, ADD ]------------------------------------------
#
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);

$gzip_text = ($board_config['gzip_compress']) ? "GZIP compression enabled" : "GZIP compression disabled";
$debug_mode = (DEBUG) ? " : Debug Mode" : "";


#
#-----[ FIND ]------------------------------------------
#
exit;

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$generation_time =  printf("<br /><center><font size=\"-2\">phpBB Created this page in %f seconds : " . $db->num_queries . " queries executed : $gzip_text".$debug_mode."</font></center>", $totaltime);

#
#-----[ OPEN ]------------------------------------------
#
extension.inc

#
#-----[ FIND ]------------------------------------------
#
$starttime = 0;

#
#-----[ REPLACE WITH ]------------------------------------------
#
$mtime = microtime();    
$mtime = explode(" ",$mtime);    
$mtime = $mtime[1] + $mtime[0];    
$starttime = $mtime;

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
"nasze" :] forum ma wersje 2.0.2 a juz jest 2.0.3 czyz nie? wink.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2012 Invision Power Services, Inc.