Update security.php

This commit is contained in:
Namhyeon Go 2018-02-13 16:11:51 +09:00 committed by GitHub
parent 2fa5e429ef
commit f55be70e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();