Update hybridauth.lnk.php
This commit is contained in:
parent
74090fefa5
commit
fa37ad387b
|
|
@ -6,8 +6,8 @@
|
||||||
* @brief HybridAuth library RSF Linker
|
* @brief HybridAuth library RSF Linker
|
||||||
***/
|
***/
|
||||||
|
|
||||||
if(!function_exists("load_hybridauth")) {
|
if(!function_exists("hybridauth_load")) {
|
||||||
function load_hybridauth($provider="") {
|
function hybridauth_load($provider="") {
|
||||||
$result = false;
|
$result = false;
|
||||||
|
|
||||||
$configfile = "./vendor/hybridauth/hybridauth/config.php";
|
$configfile = "./vendor/hybridauth/hybridauth/config.php";
|
||||||
|
|
@ -43,14 +43,14 @@ if(!function_exists("load_hybridauth")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!function_exists("check_hybridauth")) {
|
if(!function_exists("hybridauth_check_redirect")) {
|
||||||
function check_hybridauth() {
|
function hybridauth_check_redirect() {
|
||||||
$flag = false;
|
$flag = false;
|
||||||
$requests = get_requests();
|
$requests = get_requests();
|
||||||
|
|
||||||
if(loadHelper("string.utl")) {
|
if(loadHelper("string.utl")) {
|
||||||
foreach($requests['_ALL'] as $k=>$v) {
|
foreach($requests['_ALL'] as $k=>$v) {
|
||||||
if(startsWith($k, "hauth_")) {
|
if(startsWith($k, "hauth")) {
|
||||||
$flag = true;
|
$flag = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -60,3 +60,9 @@ if(!function_exists("check_hybridauth")) {
|
||||||
return $flag;
|
return $flag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!function_exists("hybridauth_process")) {
|
||||||
|
function hybridauth_process() {
|
||||||
|
Hybrid_Endpoint::process();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user