Skip to content
Snippets Groups Projects
Commit f71aafb9 authored by Peter Rotich's avatar Peter Rotich
Browse files

Use util method - get_path_info()

parent e3a79697
No related branches found
No related tags found
No related merge requests found
......@@ -30,5 +30,5 @@ $dispatcher = patterns('',
url_get('^client', 'client')
))
);
print $dispatcher->resolve($_SERVER['PATH_INFO']);
print $dispatcher->resolve($ost->get_path_info());
?>
......@@ -26,5 +26,5 @@ $dispatcher = patterns('',
);
# Call the respective function
print $dispatcher->resolve($_SERVER['PATH_INFO']);
print $dispatcher->resolve($ost->get_path_info());
?>
......@@ -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());
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment