X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=yotsubanome.php;fp=yotsubanome.php;h=8ccfcf68452e59237f7b2d32b15724e5b231fb17;hb=743372dd423b454bb17bc6b388623b2ed1f5b35f;hp=ef3a8da1be072ce8ce7a6a165fabaa8427b2d725;hpb=a755d14d1ce58d0ba3e6e33bac0ea4a526160edb;p=test.git
diff --git a/yotsubanome.php b/yotsubanome.php
index ef3a8da..8ccfcf6 100755
--- a/yotsubanome.php
+++ b/yotsubanome.php
@@ -342,7 +342,9 @@ function arrangeThread($PTE, $tree, $tree_cut, $posts, $hiddenReply, $resno=0, $
// Tripcode indicator // t++ //++++----
// This may be a blob of code but it apparently works >< please help me here
$tripkeycount = substr_count($name, TRIP_KEY);
- if(ALLOW_NONAME==2){ // å¼·å¶ç å
+ if($config['ALLOW_NONAME']==3){
+ if($email) $now = "$now";
+ }elseif($config['ALLOW_NONAME']==2){ // å¼·å¶ç å
if($tripkeycount==1) $name = preg_match('/(\\'.TRIP_KEY.'.{10})/', $name, $matches) ? ''.$matches[1].'' : '';
if($tripkeycount==2) $name = preg_match('/(\\'.TRIP_KEY.TRIP_KEY.'.{16})/', $name, $matches) ? ''.$matches[1].'' : '';
if($tripkeycount==3) $name = preg_match('/(\\'.TRIP_KEY.'.{32})/', $name, $matches) ? ''.$matches[1].'' : '';
@@ -697,15 +699,15 @@ function regist(){
$com = str_replace("\n", '', $com); // è¥éæ\næè¡åå
ååæ¶æè¡
// é è¨çå
§å®¹
if(!$name || ereg("^[ |ã|]*$", $name)){
- if(ALLOW_NONAME) $name = DEFAULT_NONAME;
+ if($config['ALLOW_NONAME']) $name = $config['DEFAULT_NONAME'];
else error(_T('regist_withoutname'), $dest);
}
if(!$sub || ereg("^[ |ã|]*$", $sub)){
- if(ALLOW_NOSUB) $sub = DEFAULT_NOTITLE;
+ if($config['ALLOW_NOSUB']) $sub = $config['DEFAULT_NOTITLE'];
else error(_T('regist_withoutsubject'), $dest);
}
if(!$com || ereg("^[ |ã|\t]*$", $com)){
- if(ALLOW_NOSUB) $com = DEFAULT_NOCOMMENT;
+ if($config['ALLOW_NOCOM']) $com = $config['DEFAULT_NOCOMMENT'];
else error(_T('regist_withoutcomment'), $dest);
}
// ä¿®æ´æ¨ç±¤æ¨£å¼
@@ -716,7 +718,7 @@ function regist(){
if($up_incomplete) $com .= '
'._T('notice_incompletefile').''; // ä¸å³éå åæªä¸å®å
¨çæ示
// å¯ç¢¼åæéç樣å¼
- if($pwd=='') if(ALLOW_NOPASS) error(_T('regist_withoutpassword'), $dest); else $pwd = ($pwdc=='') ? substr(rand(),0,8) : $pwdc;
+ if($pwd=='') if($config['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'));
//---- $yd = $youbi[gmdate('w', $time+TIME_ZONE*60*60)];
@@ -1506,7 +1508,7 @@ function showstatus(){