From 199a9314d371c1fbc1910e629c198f525c01bb73 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 21 Mar 2011 19:31:05 -0500 Subject: [PATCH] modified: config.php modified: yotsubanome.php --- config.php | 4 ++-- yotsubanome.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index 90ddeb8..4b89e8f 100755 --- a/config.php +++ b/config.php @@ -19,7 +19,7 @@ http://pixmicat.openfoundry.org/ */ $config = array(); -include_once('lib/lib_language.php'); // language system for youbi +//++++include_once('lib/lib_language.php'); // language system for youbi /* yotsubanome development status @@ -102,7 +102,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/ ) $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['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 //----define("EN_SEC", 1); // 時間表示に「秒」を含める 含める:1 含めない:0 if(!defined("PIXMICAT_LANGUAGE")) define("PIXMICAT_LANGUAGE", 'en_US'); // 語系語定 // ja_JP en_US zh_TW diff --git a/yotsubanome.php b/yotsubanome.php index bf441ff..09d5e61 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -718,9 +718,9 @@ function regist(){ // 密碼和時間的樣式 if($pwd=='') if(ALLOW_NOPASS) error(_T('regist_withoutpassword'), $dest); else $pwd = ($pwdc=='') ? substr(rand(),0,8) : $pwdc; $pass = $pwd ? substr(md5($pwd), 2, 8) : '*'; // 生成真正儲存判斷用的密碼 -//---- $youbi = array(_T('sun'),_T('mon'),_T('tue'),_T('wed'),_T('thu'),_T('fri'),_T('sat')); + $youbi = array(_T('sun'),_T('mon'),_T('tue'),_T('wed'),_T('thu'),_T('fri'),_T('sat')); //---- $yd = $youbi[gmdate('w', $time+TIME_ZONE*60*60)]; - $yd = $config['YOUBI'][date('w', $tome)]; + $yd = $youbi[date('w', $tome)]; //---- $now = gmdate('y/m/d', $time+TIME_ZONE*60*60).'('.(string)$yd.')'.gmdate('H:i', $time+TIME_ZONE*60*60); $now = date($config['DATE_FORMAT'], $tome).'('.(string)$yd.')'.date($config['TIME_FORMAT'], $tome); -- 2.39.5