【BUG修正】是否禁止同一IP在24小時內重複註冊,無法開啟
一 修改admin/setting.htm
找到
<td>是否禁止同一IP在24小時內重複註冊</td>
<td><input type=radio checked value=0 $regallowsameip_open name=reg[allowsameip]>開啟 <input type=radio value=1 $regallowsameip_close name=reg[allowsameip]>關閉 </td>
修改成:
<td>是否禁止同一IP在24小時內重複註冊</td>
<td><input type=radio value='Y' $regallowsameip_open name=reg[allowsameip]>開啟 <input type=radio value='N' $regallowsameip_close name=reg[allowsameip]>關閉 </td>
二 修改register.php
找到:
if($rg_allowsameip){
if(file_exists(R_P.'data/bbscache/ip_cache.php')){
$ipdata=readover(R_P.'data/bbscache/ip_cache.php');
if(strpos($ipdata,"<$onlineip>")!==false){
Showmsg('reg_limit');
}
}
}
修改成:
if($rg_allowsameip=='Y'){
if(file_exists(R_P.'data/bbscache/ip_cache.php')){
$ipdata=readover(R_P.'data/bbscache/ip_cache.php');
if(strpos($ipdata,"<$onlineip>")!==false){
Showmsg('reg_limit');
}
}
}