'Local Transfer',
'url' => '/transfer/',
'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.png'
),
array(
'name' => 'JDownloader',
'url' => 'https://jd.netdldata.net/',
'img' => 'favicon_jd.png'
),
array(
'name' => 'qBittorrent',
'url' => 'https://torrent.netdldata.net',
'img' => 'qbittorrent-tray.svg'
),
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' => 'Stream
Jellyfin',
'url' => 'https://stream.netdldata.net/SSO/oid/p/Keycloak?isLinking=true',
'img' => 'favicon_jellyfin.png'
),
array(
'name' => 'Mail',
'url' => 'https://mail.netdldata.net',
'real' => 'mail.lan',
'port' => 80,
'img' => 'favicon_roundcube.svg'
),
array(
'name' => 'Filebrowser',
'url' => 'https://filebrowser.netdldata.net',
'realx' => 'filebrowser.lan',
'port' => 80,
'img' => 'favicon_filebrowser.svg'
),
array(
'name' => 'Orion',
'url' => 'https://orion.netdldata.net/',
'real' => 'orion.lan',
'port' => 443,
'img' => 'favicon_omv.png'
),
);
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);
?>