mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove geoip data
This commit is contained in:
parent
474e942cfb
commit
5bfd596ad8
@ -116,11 +116,12 @@ class CreateAccount
|
|||||||
|
|
||||||
private function processSettings($settings)
|
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']);
|
//&& $data = unserialize(@file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $this->client_ip))
|
||||||
$country_code = strtolower($data['geoplugin_countryCode']);
|
// $currency_code = strtolower($data['geoplugin_currencyCode']);
|
||||||
|
// $country_code = strtolower($data['geoplugin_countryCode']);
|
||||||
|
|
||||||
$currency = Cache::get('currencies')->filter(function ($item) use ($currency_code) {
|
$currency = Cache::get('currencies')->filter(function ($item) use ($currency_code) {
|
||||||
return strtolower($item->code) == $currency_code;
|
return strtolower($item->code) == $currency_code;
|
||||||
@ -146,7 +147,7 @@ class CreateAccount
|
|||||||
$settings->language_id = (string)$language->id;
|
$settings->language_id = (string)$language->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
$timezone = Timezone::where('name', $data['geoplugin_timezone'])->first();
|
//$timezone = Timezone::where('name', $data['geoplugin_timezone'])->first();
|
||||||
|
|
||||||
if($timezone) {
|
if($timezone) {
|
||||||
$settings->timezone_id = (string)$timezone->id;
|
$settings->timezone_id = (string)$timezone->id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user