Update uri.php

This commit is contained in:
Namhyeon Go 2018-02-09 19:57:23 +09:00 committed by GitHub
parent 34a5291269
commit 744d9479bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,4 +38,11 @@ if(!function_exists("get_requests")) {
}
}
if(!function_exists("redirect_uri")) {
function redirect_uri($uri, $permanent=false) {
header('Location: ' . $uri, true, $permanent ? 301 : 302);
exit();
}
}
$requests = get_requests();