From 5bfd596ad8312efba965a35e2c94061322fc0c2a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 4 Jun 2021 10:31:59 +1000 Subject: [PATCH] Remove geoip data --- app/Jobs/Account/CreateAccount.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Jobs/Account/CreateAccount.php b/app/Jobs/Account/CreateAccount.php index 6b41005b229b..4f3f23ae851e 100644 --- a/app/Jobs/Account/CreateAccount.php +++ b/app/Jobs/Account/CreateAccount.php @@ -116,11 +116,12 @@ class CreateAccount private function processSettings($settings) { - if(Ninja::isHosted() && Cache::get('currencies') && $data = unserialize(@file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $this->client_ip))) + if(Ninja::isHosted() && Cache::get('currencies')) { - $currency_code = strtolower($data['geoplugin_currencyCode']); - $country_code = strtolower($data['geoplugin_countryCode']); + //&& $data = unserialize(@file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $this->client_ip)) + // $currency_code = strtolower($data['geoplugin_currencyCode']); + // $country_code = strtolower($data['geoplugin_countryCode']); $currency = Cache::get('currencies')->filter(function ($item) use ($currency_code) { return strtolower($item->code) == $currency_code; @@ -146,7 +147,7 @@ class CreateAccount $settings->language_id = (string)$language->id; } - $timezone = Timezone::where('name', $data['geoplugin_timezone'])->first(); + //$timezone = Timezone::where('name', $data['geoplugin_timezone'])->first(); if($timezone) { $settings->timezone_id = (string)$timezone->id;