Move cleanRequest() up in the execution chain. (before loading the db)

Signed-off-by: Norv <a.w.norv@gmail.com>
Remove a custom $_SERVER['is_cli'] var

Signed-off-by: Norv <a.w.norv@gmail.com>
Add Request class, for the request and its environment. It holds currently client/ban ips and user agent, will hold http scheme.
cleanRequest() uses it.

Signed-off-by: Norv <a.w.norv@gmail.com>
Remove $_SERVER['BAN_CHECK_IP'] -> ban_ip() method of Request

Signed-off-by: Norv <a.w.norv@gmail.com>
Remove the last trace of $_SERVER['BAN_CHECK_IP'] which was for compatibility

Signed-off-by: Norv <a.w.norv@gmail.com>
Add parseRequest(), the method is part of request cleaning and makes sure board, topic, and other necessary vars are ready to use.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add server_software() to Request, to query for the webserver.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor $_SERVER['HTTP_USER_AGENT'] to user_agent().

Signed-off-by: Norv <a.w.norv@gmail.com>
Add scheme, https or http

Signed-off-by: Norv <a.w.norv@gmail.com>
Add Request tests. These are the first *unit* tests, they test a self-contained
unit of behavior.
Well in the measure accepting superglobals directly and filling globals counts as self-contained. :P

Signed-off-by: Norv <a.w.norv@gmail.com>
Merge pull request #431 from norv/querystring.php

Querystring.php
Let's give the menu the ability to mark other subsections as active.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
make action_edit_browse & action_edit_list their own subactions.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
let's use existing functions :)
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
tweaked installedThemes(), we can use it once again :)
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
$db isn't needed anymore..
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Here we go again :)
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
moved db queries to subs.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
moved db queries to subs.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
oops, forgot the other file..
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>