diff --git a/index.php b/index.php
index 5cac7ba..1bdd70d 100644
--- a/index.php
+++ b/index.php
@@ -13,8 +13,19 @@ if (!empty($_SESSION['loggedin']) && $_SESSION['loggedin'] === true && !isset($_
die();
}
-if (!empty($_GET['logout'])) {
- // Show a logout message instead of immediately redirecting to login flow
+/**
+ * Show a simple HTML page with a line of text and a button. Matches the UI of
+ * the AccountHub login flow.
+ *
+ * @global type $SETTINGS
+ * @global type $SECURE_NONCE
+ * @global type $Strings
+ * @param string $title Text to show, passed through i18n
+ * @param string $button Button text, passed through i18n
+ * @param string $url URL for the button
+ */
+function showHTML(string $title, string $button, string $url) {
+ global $SETTINGS, $SECURE_NONCE, $Strings;
?>
@@ -26,7 +37,6 @@ if (!empty($_GET['logout'])) {
-
@@ -54,24 +59,25 @@ if (!empty($_GET['logout'])) {