'ORION', 'protocol' => 'https', 'proxy' => 'orion.netdldata.net/', 'name' => 'orion.lan', 'port' => 5001 ), array( 'id' => 'Nextcloud', 'protocol' => 'http', 'proxy' => 'cloud.netdldata.net/', 'name' => 'nextcloud.lan', 'port' => 80 ), array( 'id' => 'Gitea', 'protocol' => 'http', 'proxy' => 'git.netdldata.net', 'name' => '192.168.110.1', 'port' => 3000 ), array( 'id' => 'Transmission', 'protocol' => 'http', 'proxy' => 'torrent.netdldata.net', 'name' => '192.168.110.1', 'port' => 9091 ), array( 'id' => 'Webmin', 'protocol' => 'https', 'proxy' => 'webmin.netdldata.net', 'name' => '192.168.110.53', 'port' => 10000 ), ); if (isset($_COOKIE['socket'])) { $domaines = unserialize($_COOKIE['socket']); } else { for ($i = 0; $i < sizeof($domaines); $i ++) { $domaines[$i]['host'] = gethostbyname($domaines[$i]['name']); $fp = @fsockopen($domaines[$i]['name'], $domaines[$i]['port'], $errno, $errstr, 0.1); if ($fp) { $domaines[$i]['running'] = true; } else { $domaines[$i]['running'] = false; } } } $cookie = serialize($domaines); $temps = 60*60*2; //2 heures setcookie ("socket", $cookie, time() + $temps); $browser = get_browser(null, true); ?>