try PATH_INFO instead of REQUEST_URI, free HP Touchpad from tuv on freenode if it breaks your installation

git-svn-id: http://www.observium.org/svn/observer/trunk@2488 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-17 18:58:58 +00:00
parent 2a27524619
commit 2af11c2738

View File

@ -1,15 +1,11 @@
<?php <?php
#echo($_SERVER['PATH_INFO']);
#phpinfo();
ob_start(); ob_start();
ini_set('allow_url_fopen', 0); ini_set('allow_url_fopen', 0);
ini_set('display_errors', 0); ini_set('display_errors', 0);
if (strpos($_SERVER['REQUEST_URI'], "debug")) if (strpos($_SERVER['PATH_INFO'], "debug"))
{ {
$debug = "1"; $debug = "1";
ini_set('display_errors', 1); ini_set('display_errors', 1);
@ -39,7 +35,7 @@ foreach($_GET as $key=>$get_var) {
} }
} }
$segments = explode('/', trim($_SERVER['REQUEST_URI'], '/')); $segments = explode('/', trim($_SERVER['PATH_INFO'], '/'));
foreach($segments as $pos => $segment) { foreach($segments as $pos => $segment) {
$segment = urldecode($segment); $segment = urldecode($segment);
if($pos == "0") if($pos == "0")