Skip to content

Commit

Permalink
Use util method - get_path_info()
Browse files Browse the repository at this point in the history
  • Loading branch information
protich committed Mar 7, 2013
1 parent e3a7969 commit f71aafb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ function clientLoginPage($msg='Unauthorized') {
url_get('^client', 'client')
))
);
print $dispatcher->resolve($_SERVER['PATH_INFO']);
print $dispatcher->resolve($ost->get_path_info());
?>
2 changes: 1 addition & 1 deletion api/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
);

# Call the respective function
print $dispatcher->resolve($_SERVER['PATH_INFO']);
print $dispatcher->resolve($ost->get_path_info());
?>
4 changes: 2 additions & 2 deletions scp/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function staffLoginPage($msg='Unauthorized') {
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';
Expand Down Expand Up @@ -65,5 +65,5 @@ function staffLoginPage($msg='Unauthorized') {
);

# Call the respective function
print $dispatcher->resolve($_SERVER['PATH_INFO']);
print $dispatcher->resolve($ost->get_path_info());
?>

0 comments on commit f71aafb

Please sign in to comment.