Version Information
optionslib) ? $this->optionslib->get_option('version_dialog_text') : null; if ($versionDialogText !== null) { $versionDialogTextWithLinks = preg_replace('/(https?:\/\/[^\s<]+)/', '$1', $versionDialogText); echo nl2br($versionDialogTextWithLinks); } else { echo 'No Version Dialog text set. Go to the Admin Menu and set one.'; } ?>
[ 'header' => 'User-Agent: Cloudlog - Amateur Radio Logbook' ] ]; $context = stream_context_create($options); $response = file_get_contents($url, false, $context); if ($response !== false) { $data = json_decode($response, true); if ($data !== null && !empty($data)) { $firstRelease = $data[0]; $releaseBody = isset($firstRelease['body']) ? $firstRelease['body'] : 'No release information available'; $htmlReleaseBody = htmlspecialchars($releaseBody); $htmlReleaseBodyWithLinks = preg_replace('/(https?:\/\/[^\s<]+)/', '$1', $htmlReleaseBody); echo nl2br($htmlReleaseBodyWithLinks); } else { echo 'Fehler beim Decodieren der JSON-Daten oder leere Antwort erhalten.'; } } else { echo 'Fehler beim Abrufen der Daten von der GitHub API.'; } ?>