diff --git a/ajax.php b/ajax.php index 5210b628be577f830648e34a7f4d4a9a4c4fb3a1..a629af6392e312f35f02a5dc387b380fddf737eb 100644 --- a/ajax.php +++ b/ajax.php @@ -30,5 +30,5 @@ $dispatcher = patterns('', url_get('^client', 'client') )) ); -print $dispatcher->resolve($_SERVER['PATH_INFO']); +print $dispatcher->resolve($ost->get_path_info()); ?> diff --git a/api/http.php b/api/http.php index 0fc32444aebbc2640a93359de39265c961873f6e..90926d1e5b531771c057ca82276711520c305b9e 100644 --- a/api/http.php +++ b/api/http.php @@ -26,5 +26,5 @@ $dispatcher = patterns('', ); # Call the respective function -print $dispatcher->resolve($_SERVER['PATH_INFO']); +print $dispatcher->resolve($ost->get_path_info()); ?> diff --git a/scp/ajax.php b/scp/ajax.php index e4100f4e31c4f4028086e4608785df4fcdebba41..0f0771d3742efe983fe325fff52fe937f31e8dc5 100644 --- a/scp/ajax.php +++ b/scp/ajax.php @@ -27,7 +27,7 @@ require('staff.inc.php'); ini_set('display_errors','0'); //Disable error display ini_set('display_startup_errors','0'); -//TODO: disable direct access via the browser? i,e All request must have REFER? +//TODO: disable direct access via the browser? i,e All request must have REFER? if(!defined('INCLUDE_DIR')) Http::response(500, 'Server configuration error'); require_once INCLUDE_DIR.'/class.dispatcher.php'; @@ -65,5 +65,5 @@ $dispatcher = patterns('', ); # Call the respective function -print $dispatcher->resolve($_SERVER['PATH_INFO']); +print $dispatcher->resolve($ost->get_path_info()); ?>