Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2403 → Rev 2404

/web/acc/admin/network.php
401,7 → 401,10
 
$internet_connected = InternetTest();
if ($internet_connected) {
$internet_publicIP = file_get_contents('http://ipecho.net/plain');
$ch = curl_init('https://api.ipify.org/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$internet_publicIP = curl_exec($ch);
curl_close($ch);
} else {
$internet_publicIP = '-.-.-.-';
}