Update uri.php

This commit is contained in:
Namhyeon Go 2018-01-01 02:24:39 +09:00 committed by GitHub
parent e81f5a2485
commit 3eea58a2c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,4 @@
<?php
$requests = array(
"_ALL" => $_REQUEST,
"_POST" => $_POST,
"_GET" => $_GET,
"_URI" => !array_key_empty("REQUEST_URI", $_SERVER) ? $_SERVER["REQUEST_URI"] : ''
);
if(!function_exists("base_url")) {
function base_url() {
global $config;
@ -31,3 +24,18 @@ if(!function_exists("get_uri")) {
return $request_uri;
}
}
if(!function_exists("get_requests")) {
function get_requests() {
$requests = array(
"_ALL" => $_REQUEST,
"_POST" => $_POST,
"_GET" => $_GET,
"_URI" => !array_key_empty("REQUEST_URI", $_SERVER) ? $_SERVER["REQUEST_URI"] : ''
);
return $requests;
}
}
$requests = get_requests();