From c329b613f9aa50098be2a6d9732f99ee305dcd5d Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 27 Sep 2018 02:03:50 +0900 Subject: [PATCH] Update hybridauth.lnk.php --- helper/hybridauth.lnk.php | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/helper/hybridauth.lnk.php b/helper/hybridauth.lnk.php index c43b29d..8a99864 100644 --- a/helper/hybridauth.lnk.php +++ b/helper/hybridauth.lnk.php @@ -10,10 +10,10 @@ if(!function_exists("load_hybridauth")) { function load_hybridauth($provider="") { $result = false; - $configfile = "./vendor/library/hauth.config.php"; + $configfile = "./vendor/hybridauth/hybridauth/config.php"; $required_files = array( - "hybridauth/hybridauth/library/Hybrid/Auth", - "hybridauth/hybridauth/library/Hybrid/Endpoint" + "hybridauth/hybridauth/Hybrid/Auth", + "hybridauth/hybridauth/Hybrid/Endpoint" ); // support facebook (php graph api v5) @@ -41,3 +41,19 @@ if(!function_exists("load_hybridauth")) { return $result; } } + +if(!function_exists("check_hybridauth")) { + function check_hybridauth() { + $flag = false; + $requests = get_requests(); + + foreach($requests['_ALL'] as $k=>$v) { + if(startsWith($k, "hauth.")) { + $flag = true; + break; + } + } + + return $flag; + } +}