ごめん
このコミットが含まれているのは:
コミット
fa3dda075d
|
@ -25,11 +25,9 @@ class Register {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function register (Request $r) {
|
public function register (Request $r) {
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
|
||||||
|
|
||||||
$banned = DB::table('blg_blacklist')->get();
|
$banned = DB::table('blg_blacklist')->get();
|
||||||
foreach ($banned as $b) {
|
foreach ($banned as $b) {
|
||||||
$ip = explode('.', $ip);
|
$ip = explode('.', getIp());
|
||||||
$ban = explode('.', $b->ipaddress);
|
$ban = explode('.', $b->ipaddress);
|
||||||
if (
|
if (
|
||||||
($ban[0] == $ip[0] && $ban[1] == $ip[1] && $ban[2] == $ip[2] && $ban[3] == $ip[3]) ||
|
($ban[0] == $ip[0] && $ban[1] == $ip[1] && $ban[2] == $ip[2] && $ban[3] == $ip[3]) ||
|
||||||
|
|
新しいイシューから参照