From f55be70e5e99f9fa811130c2436aeba32a753d40 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 13 Feb 2018 16:11:51 +0900 Subject: [PATCH] Update security.php --- system/security.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/system/security.php b/system/security.php index 1554f96..c1a24bc 100644 --- a/system/security.php +++ b/system/security.php @@ -297,3 +297,15 @@ if(!function_exists("check_current_user_name")) { return $current_user_name; } } + +if(!function_exists("get_user_profile")) { + function get_user_profile() { + $user_profile = array( + "user_name" => check_current_user_name(); + ); + return $user_profile; + } +} + +// start session (enable $_SESSION) +session_start();