HybridAuth Installer
"Facebook",
"provider_name" => "Facebook",
"require_client_id" => TRUE,
"new_app_link" => "https://www.facebook.com/developers/",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_Facebook.html",
)
,
ARRAY(
"label" => "Google",
"provider_name" => "Google",
"callback" => TRUE,
"require_client_id" => TRUE,
"new_app_link" => "https://code.google.com/apis/console/",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_Google.html",
)
,
ARRAY(
"label" => "Twitter",
"provider_name" => "Twitter",
"new_app_link" => "https://dev.twitter.com/apps",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_Twitter.html",
)
,
ARRAY(
"label" => "Yahoo",
"provider_name" => "Yahoo!",
"require_client_id" => TRUE,
"new_app_link" => "https://developer.apps.yahoo.com/dashboard/createKey.html",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_Yahoo.html",
)
,
ARRAY(
"label" => "Live",
"provider_name" => "Windows Live",
"require_client_id" => TRUE,
"new_app_link" => "https://manage.dev.live.com/ApplicationOverview.aspx",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_Live.html",
)
,
ARRAY(
"label" => "MySpace",
"provider_name" => "MySpace",
"new_app_link" => "http://www.developer.myspace.com/",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_MySpace.html",
)
,
ARRAY(
"label" => "Foursquare",
"provider_name" => "Foursquare",
"require_client_id" => TRUE,
"callback" => TRUE,
"new_app_link" => "https://www.foursquare.com/oauth/",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_Foursquare.html",
)
,
ARRAY(
"label" => "LinkedIn",
"provider_name" => "LinkedIn",
"new_app_link" => "https://www.linkedin.com/secure/developer",
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_LinkedIn.html",
)
,
ARRAY(
"label" => "OpenID",
"provider_name" => "OpenID",
"new_app_link" => NULL,
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_OpenID.html",
)
,
ARRAY(
"label" => "AOL",
"provider_name" => "AOL",
"new_app_link" => NULL,
"userguide_section" => "http://hybridauth.sourceforge.net/userguide/IDProvider_info_AOL.html",
)
);
if( count( $_POST ) ):
$CONFIG_TEMPLATE = file_get_contents( "Hybrid/resources/config.php.tpl" );
foreach( $_POST AS $k => $v ):
$v = strip_tags( $v );
$z = "#$k#";
$CONFIG_TEMPLATE = str_replace( $z, $v, $CONFIG_TEMPLATE );
endforeach;
$CONFIG_TEMPLATE = str_replace( "
Installation Error: HybridAuth configuration file must be WRITABLE in order for the installer to work.
Please try again!
Installation completed: HybridAuth has been successfully installed on your web server.
HybridAuth Installer
and that is it!
|