Menu="Identification" Title="Unraid.net" Icon="ident.png" Tag="globe" --- // more: // - if someone deletes the dynamic.cfg or directly edits [remote] section therein, it may be possible // that server will appear 'unregistered' in webgui but not on My Servers. // - appears someone could register, enable remote access, then unregister, replace the ssl cert, and // now can remotely access using url that matches their cert. This is probably a bug here, but we might // want to rework this somewhat to explicitly enable this 'feature' (remote access using user-provided cert). $keyfile = @file_get_contents($var['regFILE']); if ($keyfile !== false) $keyfile = @base64_encode($keyfile); if (empty($remote)) { $remote = [ "apikey" => "", "wanaccess" => "no", "wanport" => "443" ]; } if (empty($remote['wanport'])) { $remote['wanport'] = 443; } $hasCert = file_exists('/boot/config/ssl/certs/certificate_bundle.pem'); $isRegistered = !empty($remote['apikey']); $boolWebUIAuth = $isRegistered || file_exists('/etc/nginx/htpasswd'); $isActivated = false; $isUptodate = false; if ($isRegistered) { exec("/usr/bin/php -f $docroot/webGui/include/UpdateFlashBackup.php status", $output, $retval); $isActivated = ($retval == 0); if ($isActivated) $isUptodate = empty($output); } ?>