summaryrefslogtreecommitdiff
path: root/common.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/common.php b/common.php
index 1f6e51c..370141d 100644
--- a/common.php
+++ b/common.php
@@ -10,7 +10,17 @@
$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));
+ $action = trim($_GET['action'] ?? null);
+ $query = trim($_GET['query'] ?? null);
+ $section = trim($_GET['section'] ?? null);
+
+
+ /*
+ function dbg_print($data)
+ {
+ $output = $data;
+ if(is_array($output)) $output = implode(',', $output);
+ echo "<script>console.log('srv => " . $output . "' );</script>";
+ }
+ */
?>