summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgesang <gesang@itinerariummentis.org>2024-07-06 22:40:55 +0000
committergesang <gesang@itinerariummentis.org>2024-07-06 22:40:55 +0000
commitedfa4b96dcdf950eb9983a3886b5a0a2bf0674b1 (patch)
tree03b4bbcdb5d15657fb1ee7d5df4e2870ece038b0
parent241fa10dcd49581e3a5bc8fe3f0a3629d1b7b5bf (diff)
parent6f91ec9d4f4fc80be459652f79fe3babd2b08509 (diff)
Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
-rw-r--r--donate.php39
-rw-r--r--template/donate.html20
-rw-r--r--template/home.html3
3 files changed, 61 insertions, 1 deletions
diff --git a/donate.php b/donate.php
new file mode 100644
index 0000000..1ae2cac
--- /dev/null
+++ b/donate.php
@@ -0,0 +1,39 @@
+<?php
+
+include "data/config.php";
+include "lib/frontend.php";
+$frontend = new frontend();
+
+echo
+ $frontend->load(
+ "header_nofilters.html",
+ [
+ "title" => "Donate to the project",
+ "class" => " class=\"about\""
+ ]
+ );
+
+$left =
+ explode(
+ "\n",
+ file_get_contents("template/donate.html")
+ );
+
+$out = "";
+
+foreach($left as $line){
+
+ $out .= trim($line);
+}
+
+echo
+ $frontend->load(
+ "search.html",
+ [
+ "timetaken" => null,
+ "class" => "",
+ "right-left" => "",
+ "right-right" => "",
+ "left" => $out
+ ]
+ );
diff --git a/template/donate.html b/template/donate.html
new file mode 100644
index 0000000..f6f45bf
--- /dev/null
+++ b/template/donate.html
@@ -0,0 +1,20 @@
+<a href="/" class="link">&lt; Go back</a>
+
+<h1>Donate to the project</h1>
+This project takes up most of my free time and costs money to run. If you feel like this project is worthy of a donation, please do so using the resources on this page!<br><br>
+
+To run smoothly, 4get requires 20$/month for the server fees and 15-25$ for residential proxies. I also have plans to build my own index to provide better search results; funds raised here will go directly towards better hardware for these purposes. According to the number of captchas solved, <a href="https://4get.ca">4get.ca</a> serves between 800-1400 users every day, or around 7000-10000 searches!
+
+<h2>Ko-fi</h2>
+This is the most convenient way to donate. Supports PayPal.
+<ul>
+ <li><a href="https://ko-fi.com/lolcat">ko-fi.com/lolcat</a></li>
+</ul>
+
+<h2>Monero</h2>
+Due to popular demand, I have added an XMR addy. I'm planning to reward users who donate to me once paid tiers are introduced to 4get, so please let me know through email that you donated to me (don't forget your transaction ID)!
+<ul>
+ <li><a href="monero:85G95fXXfuh72oQd9LmdMHNqDTqsUPKkLCBEYE7XnnMLPvBfkdnan2FVTmVAwT4JEuXsRL7xPgqzuV2YdbFkWmxK2FgGBmB?tx_description=4get+donation">85G95fXXfuh72oQd9LmdMHNqDTqsUPKkLCBEYE7XnnMLPvBfkdnan2FVTmVAwT4JEuXsRL7xPgqzuV2YdbFkWmxK2FgGBmB</a></li>
+</ul>
+
+Thank you all for your generous support!!
diff --git a/template/home.html b/template/home.html
index 38075a1..97f192e 100644
--- a/template/home.html
+++ b/template/home.html
@@ -28,7 +28,8 @@
<div class="autocomplete"></div>
</div>
</form>
- <a href="settings">Settings</a> • <a href="instances">Instances</a> • <a href="https://git.lolcat.ca/lolcat/4get_news">News</a> • <a href="api.txt">API</a> • <a href="about">About</a> • <a href="https://git.lolcat.ca/lolcat/4get">Source</a> • <a href="https://ko-fi.com/lolcat" rel="noreferrer" target="BLANK">Donate</a>
+ <a href="settings">Settings</a> • <a href="instances">Instances</a> • <a href="https://git.lolcat.ca/lolcat/4get_news">News</a> • <a href="api.txt">API</a> • <a href="about">About</a> • <a href="https://git.lolcat.ca/lolcat/4get">Source</a><br>
+ <a href="/donate"><b>Donate to the project</b></a>
<div class="subtext">
<a href="/">Clearnet</a> • <a href="http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion">Tor</a> • <a href="https://lolcat.ca">Report a problem</a><br>
Running on <b>v{%version%}</b>!!