mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
use https
This commit is contained in:
parent
783d96fc65
commit
da1816cc13
@ -333,7 +333,7 @@ if(setting('core.account_country_recognize')) {
|
|||||||
else {
|
else {
|
||||||
ini_set('default_socket_timeout', 5);
|
ini_set('default_socket_timeout', 5);
|
||||||
|
|
||||||
$info = json_decode(@file_get_contents('http://ipinfo.io/' . get_browser_real_ip() . '/geo'), true);
|
$info = json_decode(@file_get_contents('https://ipinfo.io/' . get_browser_real_ip() . '/geo'), true);
|
||||||
if(isset($info['country'])) {
|
if(isset($info['country'])) {
|
||||||
$country_recognized = strtolower($info['country']);
|
$country_recognized = strtolower($info['country']);
|
||||||
setSession('country', $country_recognized);
|
setSession('country', $country_recognized);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user