summaryrefslogtreecommitdiff
path: root/common.php
blob: b7b588dbfb6ca09692152e14f60980c2f2848fde (plain)
1
2
3
4
5
6
7
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));
?>