Update uri.php

This commit is contained in:
Namhyeon Go 2018-04-02 02:39:30 +09:00 committed by GitHub
parent 125dd44bbc
commit 7c929768cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,8 @@ if(!function_exists("read_requests")) {
"_ALL" => $_REQUEST,
"_POST" => $_POST,
"_GET" => $_GET,
"_URI" => !array_key_empty("REQUEST_URI", $_SERVER) ? $_SERVER["REQUEST_URI"] : ''
"_URI" => !array_key_empty("REQUEST_URI", $_SERVER) ? $_SERVER["REQUEST_URI"] : '',
"_FILES" => is_array($_FILES) ? $_FILES : array(),
);
// with security module
@ -42,6 +43,13 @@ if(!function_exists("read_requests")) {
}
}
// set alias
$requests['all'] = $requests['_ALL'];
$requests['post'] = $requests['_POST'];
$requests['get'] = $requests['_GET'];
$requests['uri'] = $requests['_URI'];
$requests['files'] = $requests['_FILES'];
return $requests;
}
}