[分享]Generation Creation v1.0.0
發表於 : 2002-08-08 15:47
感覺滿好用的
好像沒人貼過 我把它中文化了
若不喜歡再自己改ㄅ
好像沒人貼過 我把它中文化了
若不喜歡再自己改ㄅ
代碼: 選擇全部
#################################################################
## 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
#################################################################
#
#-----[ 打開 ]------------------------------------------
#
includes/page_tail.php
#
#-----[ 尋找 ]------------------------------------------
#
$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 壓縮 開啟" : "GZIP 壓縮 關閉";
$debug_mode = (DEBUG) ? " : Debug Mode" : "";
#
#-----[尋找 ]------------------------------------------
#
exit;
#
#-----[ 在前面加入 ]------------------------------------------
#
$generation_time = printf("<br /><center><font size=\"-2\">完成時間 %f 秒 : " . $db->num_queries . " 個資料庫 : $gzip_text".$debug_mode."</font></center>", $totaltime);
#
#-----[打開]------------------------------------------
#
extension.inc
#
#-----[ 尋找 ]------------------------------------------
#
$starttime = 0;
#
#-----[ 修改 ]------------------------------------------
#
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
#
#-----[ 存檔]------------------------------------------
#
# EoM