'Local Transfer',
'url' => 'https://transfer.netdldata.net',
'img' => 'favicon_transfer.png'
),
array(
'name' => 'Keycloak',
'url' => 'https://keycloak.netdldata.net/realms/apps/account/',
'img' => 'favicon_keycloak.svg'
),
array(
'name' => 'Nextcloud',
'url' => 'https://cloud.netdldata.net',
'img' => 'favicon_Nextcloud.svg'
),
array(
'name' => 'Gitea',
'url' => 'https://git.netdldata.net',
'img' => 'favicon_gitea.svg'
),
array(
'name' => 'Jellyfin
Stream',
'url' => 'https://jellyfin.netdldata.net/SSO/oid/p/Keycloak?isLinking=true',
'img' => 'favicon_jellyfin.svg'
),
array(
'name' => 'Speed Test',
'url' => 'https://speedtest.netdldata.net',
'img' => 'favicon_openspeedtest.png'
),
array(
'name' => 'Proxmox',
'url' => 'https://proxmox.netdldata.net',
'real' => 'proxmox.lan',
'port' => 8006,
'img' => 'favicon_proxmox.png'
),
array(
'name' => 'Portainer',
'url' => 'https://portainer.netdldata.net',
'img' => 'favicon_portainer.png'
),
array(
'name' => 'Guacamole',
'url' => 'https://guacamole.netdldata.net',
'img' => 'favicon_guacamole.png'
),
array(
'name' => 'Grafana',
'url' => 'https://grafana.netdldata.net',
'realx' => 'grafana.lan',
'port' => 3000,
'img' => 'favicon_grafana.png'
),
array(
'name' => 'Mail',
'url' => 'https://mail.netdldata.net',
'img' => 'favicon_roundcube.svg'
),
array(
'name' => 'Filebrowser',
'url' => 'https://filebrowser.netdldata.net',
'img' => 'favicon_filebrowser.svg'
),
array(
'name' => 'Wake on LAN',
'url' => 'https://wolweb.netdldata.net',
'img' => 'favicon_wolweb.png'
),
array(
'name' => 'Grocy',
'url' => 'https://grocy.netdldata.net',
'img' => 'favicon_grocy.svg'
),
);
if (isset($_COOKIE['socket'])) {
$domaines = unserialize($_COOKIE['socket']);
}
else {
for ($i = 0; $i < sizeof($domaines); $i ++) {
if(array_key_exists('real', $domaines[$i])){
#$domaines[$i]['host'] = gethostbyname($domaines[$i]['real']);
$fp = @fsockopen($domaines[$i]['real'], $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);
?>