From fa3dda075d0cd0305219cdf02ddcb4f25033b531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Tue, 17 Aug 2021 18:54:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=94=E3=82=81=E3=82=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/User/Register.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/User/Register.php b/app/Http/Controllers/User/Register.php index 1199fcb..f2255d6 100644 --- a/app/Http/Controllers/User/Register.php +++ b/app/Http/Controllers/User/Register.php @@ -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]) ||