summaryrefslogtreecommitdiff
path: root/common.php
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-02-26 11:47:32 +0200
committerdweller <dweller@cabin.digital>2024-02-26 11:47:32 +0200
commitf0181813ecf9867f13a206d87fc46b15d295acbc (patch)
treeb1b6f94e6a2318010cb322bbd119356b46076dd4 /common.php
parenta87359aaacac66655af6baa80ced112ac842f651 (diff)
wire up frontend with PHP, badly
Diffstat (limited to 'common.php')
-rw-r--r--common.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.php b/common.php
new file mode 100644
index 0000000..b7b588d
--- /dev/null
+++ b/common.php
@@ -0,0 +1,8 @@
+<?php
+ $root = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
+ $manpath = "/usr/share/man";
+
+ $action = trim(urldecode($_GET['action'] ?? null));
+ $query = trim(urldecode($_GET['query'] ?? null));
+ $section = trim(urldecode($_GET['section'] ?? null));
+?>