From ce34e6ad9e62181740972fb5c67975be7c644b5d Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 18 Jan 2018 01:28:19 +0900 Subject: [PATCH] Create security.php --- system/security.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 system/security.php diff --git a/system/security.php b/system/security.php new file mode 100644 index 0000000..a2a84f7 --- /dev/null +++ b/system/security.php @@ -0,0 +1,20 @@ + + * @brief Security module for VSPF + */ + +if(!function_exists("check_token_abuse")) { + function check_token_abuse($_post_token, $_sess_token) { + $abuse = false; + + $_check_token = $_post_token . $_sess_token; + if(empty($_check_token) || $_post_token != $_sess_token) { + $abuse = true; + } + + return $abuse; + } +}