Update index.php

This commit is contained in:
deepend-tildeclub 2024-09-19 19:24:29 -06:00 committed by GitHub
parent 420e0d7cf2
commit 825af838dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,17 @@
<?php include "header.php"; ?> <?php include "header.php"; ?>
<?php
// Display notice message based on query parameters
if (isset($_GET['notice'])) {
$notice = htmlspecialchars($_GET['notice']);
if ($notice == 'cancel') {
echo '<div class="notice-message">Your transaction was canceled.</div>';
} elseif ($notice == 'thanks') {
echo '<div class="notice-message">Thank you for helping us provide this great service!</div>';
}
}
?>
<h1 id="fancyboi">welcome to tilde.club</h1> <h1 id="fancyboi">welcome to tilde.club</h1>
<p><a href="/wiki/faq.html">Questions? See the official FAQ.</a></p> <p><a href="/wiki/faq.html">Questions? See the official FAQ.</a></p>