aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-08-11 01:55:15 +0000
committerlolcat <will@lolcat.ca>2025-08-11 01:55:15 +0000
commitcdf958d29333d448f4521f4d2faa2592b58e9b27 (patch)
tree528f2a0ffa789a6f4279d9f54a4a2aaf391f390f /index.php
downloadshittyweb-search-cdf958d29333d448f4521f4d2faa2592b58e9b27.tar.gz
shittyweb-search-cdf958d29333d448f4521f4d2faa2592b58e9b27.tar.bz2
shittyweb-search-cdf958d29333d448f4521f4d2faa2592b58e9b27.zip
fix wikipedia crashgrafted
Diffstat (limited to 'index.php')
-rw-r--r--index.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..8eba2fc
--- /dev/null
+++ b/index.php
@@ -0,0 +1,15 @@
+<?php
+
+include "data/config.php";
+include "lib/frontend.php";
+$frontend = new frontend();
+
+$images = glob("banner/*");
+
+echo $frontend->load(
+ "home.html",
+ [
+ "server_short_description" => htmlspecialchars(config::SERVER_SHORT_DESCRIPTION),
+ "banner" => $images[rand(0, count($images) - 1)]
+ ]
+);