summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Kohl <git@jonaskohl.de>2024-09-06 22:58:09 +0200
committerJonas Kohl <git@jonaskohl.de>2024-09-06 22:58:09 +0200
commit661c9edfa2c3b1bb4d752a9e26a97eb8da98bb27 (patch)
treef6f9e8bb2007781aff25459a20e7efd23568fac9
parent9ab1b5cc52d020bc22994756fe9238bfe4038b0e (diff)
Skip intro page if on mobile
-rw-r--r--index.php (renamed from index.html)9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.html b/index.php
index 8963144..8a9bbfd 100644
--- a/index.html
+++ b/index.php
@@ -1,3 +1,12 @@
+<?php
+
+$__mobile = include __DIR__ . "/includes/mobile-detect.php";
+if ($__mobile) {
+ header("Location: site.php");
+ exit;
+}
+
+?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>