diff options
Diffstat (limited to '')
-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)); +?> |