]> 4ch.mooo.com Git - test.git/blobdiff - yotsubanome.php
modified: config.php
[test.git] / yotsubanome.php
index 7c2c0b82fccc860cedf845d6437192002b19282c..09d5e61d9631a12842bfbcad92991c085fb23c88 100755 (executable)
@@ -674,7 +674,7 @@ function regist(){
                }
                if($config['CAP.ENABLE'] && preg_match('/(.*?)[##](.*)/u', $email, $aregs)){ // 管理員キャップ(Cap)機能
                        $acap_name = $nameOri; $acap_pwd = strtr($aregs[2], array('&'=>'&'));
-                       if($acap_name==$config['CAP.NAME'] && $acap_pwd==$config['CAP.PASS']){
+                       if($acap_name==$config['CAP.NAME'] && $acap_pwd==$config['CAP.PASSWORD']){
                                $name = '<span class="admin_cap">'.$name.$config['CAP.SUFFIX'].'</span>';
                                $is_admin = true;
                                $email = $aregs[1]; // 去除 #xx 密碼
@@ -722,9 +722,7 @@ function regist(){
 //---- $yd = $youbi[gmdate('w', $time+TIME_ZONE*60*60)];
        $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);
-       if(!EN_SEC)
-               $now = date(DATE_FORMAT, $tome).'('.(string)$yd.')'.date('H:i', $tome);
-               else $now = date(DATE_FORMAT, $tome).'('.(string)$yd.')'.date('H:i:s', $tome);
+       $now = date($config['DATE_FORMAT'], $tome).'('.(string)$yd.')'.date($config['TIME_FORMAT'], $tome);
 
 //---- if(DISP_ID){ // 顯示ID
 //----         if($email && DISP_ID==1) $now .= ' ID:????';
@@ -732,7 +730,7 @@ function regist(){
 //---- }
        if(DISP_ID){ // 顯示ID
                if($email&&DISP_ID==1) $now .= " ID:????";
-               else $now .= " ID:".substr(crypt(md5(getREMOTE_ADDR().IDSEED.date(DATE_FORMAT, $tome)),'id'), -8);
+               else $now .= " ID:".substr(crypt(md5(getREMOTE_ADDR().IDSEED.date($config['DATE_FORMAT'], $tome)),'id'), -8);
        }
 
        // 連續投稿 / 相同附加圖檔檢查