|
|
|
@ -25,11 +25,9 @@ class Register {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function register (Request $r) { |
|
|
|
|
$ip = $_SERVER['REMOTE_ADDR']; |
|
|
|
|
|
|
|
|
|
$banned = DB::table('blg_blacklist')->get(); |
|
|
|
|
foreach ($banned as $b) { |
|
|
|
|
$ip = explode('.', $ip); |
|
|
|
|
$ip = explode('.', getIp()); |
|
|
|
|
$ban = explode('.', $b->ipaddress); |
|
|
|
|
if ( |
|
|
|
|
($ban[0] == $ip[0] && $ban[1] == $ip[1] && $ban[2] == $ip[2] && $ban[3] == $ip[3]) || |
|
|
|
|