From: sparky4 Date: Tue, 22 Mar 2011 00:36:26 +0000 (-0500) Subject: modified: config.php X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=3ea63d722cb26efdcbf84d74c10f7aed70f1244f;p=test.git modified: config.php modified: yotsubanome.php --- diff --git a/config.php b/config.php index 22c9fa7..c882319 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 9e65d5a..09d5e61 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -718,11 +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 = $youbi[date('w', $tome)]; - - $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);