Update hybridauth.lnk.php
This commit is contained in:
parent
4663a327d3
commit
3cef6fa5e2
|
|
@ -7,15 +7,23 @@
|
||||||
***/
|
***/
|
||||||
|
|
||||||
if(!function_exists("load_hybridauth")) {
|
if(!function_exists("load_hybridauth")) {
|
||||||
function load_hybridauth() {
|
function load_hybridauth($provider="") {
|
||||||
$result = false;
|
$result = false;
|
||||||
|
|
||||||
$configfile = "./vendor/library/hauth.config.php";
|
$configfile = "./vendor/library/hauth.config.php";
|
||||||
$required_files = array(
|
$required_files = array(
|
||||||
"hybridauth/hybridauth/library/Hybrid/Auth",
|
"hybridauth/hybridauth/library/Hybrid/Auth",
|
||||||
"hybridauth/hybridauth/library/Hybrid/Endpoint",
|
"hybridauth/hybridauth/library/Hybrid/Endpoint"
|
||||||
"facebook-sdk-v5/src/Facebook/autoload" // support facebook
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// support facebook (php graph api v5)
|
||||||
|
switch($provider) {
|
||||||
|
case "facebook":
|
||||||
|
$required_files[] = "facebook-sdk-v5/src/Facebook/autoload";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// load required files
|
||||||
foreach($required_files as $file) {
|
foreach($required_files as $file) {
|
||||||
$inc_file = "./vendor/" . $file . ".php";
|
$inc_file = "./vendor/" . $file . ".php";
|
||||||
if(!file_exists($inc_file)) {
|
if(!file_exists($inc_file)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user