發新話題

[分享] 【BUG修正】是否禁止同一IP在24小時內重複註冊,無法開啟

【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');
}
}
}

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。