From 744d9479bd0b734d54a8033a8798d68bcc1aff6d Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 9 Feb 2018 19:57:23 +0900 Subject: [PATCH] Update uri.php --- system/uri.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/uri.php b/system/uri.php index cb14437..22d6664 100644 --- a/system/uri.php +++ b/system/uri.php @@ -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();