From e87056fa0ed9d6feddd1ee4a5b31b8bfd0123fbb Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 17 Jul 2012 02:03:51 -0500 Subject: [PATCH] modified: config.php modified: yotsubanome.php --- config.php | 1 + yotsubanome.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/config.php b/config.php index c675b73..d9c0034 100755 --- a/config.php +++ b/config.php @@ -109,6 +109,7 @@ if(is_file('../../conk/.pass.php')) include('../../conk/.pass.php'); // The pass // 伺服器常態設定 if(!defined("PHP_SELF")) define("PHP_SELF", 'yotsubanome.php'); // このスクリプト名 // 主程式名 (若是修改了主程式名,請配合修改) //----define("TIME_ZONE", '-6'); // 時區設定 (GMT時區,參照 http://wwp.greenwichmeantime.com/ ) +date_default_timezone_set("America/Chicago"); $config['DATE_FORMAT'] = "Y/m/d"; // date format //++++$config['YOUBI'] = array(_T('sun'),_T('mon'),_T('tue'),_T('wed'),_T('thu'),_T('fri'),_T('sat')); // week format $config['TIME_FORMAT'] = 'H:i:s'; // time format diff --git a/yotsubanome.php b/yotsubanome.php index 021abc3..7d93d9c 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -1463,6 +1463,11 @@ function showstatus(){ $counttree = $PIO->threadCount(); // 計算樹狀結構記錄檔目前資料筆數 $tmp_total_size = total_size(); // 附加圖檔使用量總大小 $tmp_ts_ratio = STORAGE_MAX > 0 ? $tmp_total_size / STORAGE_MAX : 0; // 附加圖檔使用量 + //++++ + $tome = time()+0*60*60; + $youbi = array(_T('sun'),_T('mon'),_T('tue'),_T('wed'),_T('thu'),_T('fri'),_T('sat')); + $yd = $youbi[date('w', $tome)]; + $nowt = date($config['DATE_FORMAT'], $tome).'('.(string)$yd.')'.date($config['TIME_FORMAT'], $tome); if(!$config['KB']) $kbb = ' B'; else $kbb = ' KB'; @@ -1517,6 +1522,7 @@ function showstatus(){ '._T('info_basic_showid').' '.DISP_ID.' '._T('info_basic_showid_after').' '._T('info_basic_cr_limit').' '.BR_CHECK._T('info_basic_cr_after').' +サーバーのローカル時間 '.$nowt.' '._T('info_basic_line_number_limit').' '.$config['LINE_NUMBER']._T('info_basic_line_number_after').' '._T('info_basic_theme').' '.$PTE->BlockValue('THEMENAME').' '.$PTE->BlockValue('THEMEVER').'
by '.$PTE->BlockValue('THEMEAUTHOR').' '._T('info_dsusage_top').' -- 2.39.2