diff options
author | dweller <dweller@cabin.digital> | 2024-02-26 11:47:32 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2024-02-26 11:47:32 +0200 |
commit | f0181813ecf9867f13a206d87fc46b15d295acbc (patch) | |
tree | b1b6f94e6a2318010cb322bbd119356b46076dd4 /common.php | |
parent | a87359aaacac66655af6baa80ced112ac842f651 (diff) |
wire up frontend with PHP, badly
Diffstat (limited to 'common.php')
-rw-r--r-- | common.php | 8 |
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)); +?> |