summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-12-22 19:02:39 -0500
committer53hornet <atc@53hor.net>2021-12-22 19:02:39 -0500
commit9409834cbad547e94f153eca28c53fee4b57af2a (patch)
tree75bae605de53ccb2b036b91e3aa8a123c88e998d
parente943adab89d1c42cc1142bf39e0d3d5e8add77f1 (diff)
download53hor-9409834cbad547e94f153eca28c53fee4b57af2a.tar.xz
53hor-9409834cbad547e94f153eca28c53fee4b57af2a.zip
feat: basic donation page
-rw-r--r--includes/foot.php2
-rw-r--r--includes/style.css4
-rw-r--r--index.php2
-rw-r--r--pages/donate.php20
4 files changed, 25 insertions, 3 deletions
diff --git a/includes/foot.php b/includes/foot.php
index c128cc1..750a22a 100644
--- a/includes/foot.php
+++ b/includes/foot.php
@@ -2,7 +2,7 @@
<hr />
<footer>
-
+ If you like my work then <a href="/donate">you may donate here</a>.
</footer>
</body>
diff --git a/includes/style.css b/includes/style.css
index 6d66496..3213b99 100644
--- a/includes/style.css
+++ b/includes/style.css
@@ -194,3 +194,7 @@ th {
.form .description {
display: none;
}
+
+footer {
+ text-align: center;
+}
diff --git a/index.php b/index.php
index f9ad9cf..14e5da2 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php
include('./includes/head.php');
-$page = strtok($_SERVER['REQUEST_URI'], '/');
+$page = strtok(strtok($_SERVER['REQUEST_URI'], '/'), '?');
if (empty($page)) {
include('./pages/index.php');
diff --git a/pages/donate.php b/pages/donate.php
index 82fbd8a..b7962d1 100644
--- a/pages/donate.php
+++ b/pages/donate.php
@@ -1 +1,19 @@
-<a href="https://www.paypal.com/donate?business=F9QZQMC55PB4W&no_recurring=0&currency_code=USD">PayPal</a>
+<h1>Donation</h1>
+
+<?php
+if (!empty($_GET) && isset($_GET['success'])) {
+ printf("Thanks for supporting my work! Please continue to enjoy using my site and software.");
+ exit();
+}
+?>
+
+<p>
+ If you like what I do, you're welcome to donate.
+</p>
+
+<h2><a href="https://buy.stripe.com/cN24gB4nD3En3Li288">Click to Donate Once</a></h2>
+
+<h2><a href="https://buy.stripe.com/dR6eVfg6l2Aj2He6op">Click to Donate Monthly</a></h2>
+
+<?php
+exit();