php cli server uses its own request thing

This commit is contained in:
Shish
2015-08-01 15:24:58 +01:00
parent 53f19120d2
commit ab4c558126
5 changed files with 18 additions and 8 deletions

View File

@@ -82,7 +82,7 @@ class Layout {
// hack
$username = url_escape($user->name);
// hack
$qp = explode("/", ltrim(@$_GET["q"], "/"));
$qp = explode("/", ltrim(_get_query(), "/"));
$cs = "";
// php sucks
@@ -256,7 +256,7 @@ EOD;
* Woo! We can actually SEE THE CURRENT PAGE!! (well... see it highlighted in the menu.)
*/
$html = null;
$url = ltrim($_GET['q'], "/");
$url = ltrim(_get_query(), "/");
$re1='.*?';
$re2='((?:[a-z][a-z_]+))';