1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Start of HybridAuth integration

This commit is contained in:
CaMer0n
2012-06-13 12:34:09 +00:00
parent 2cd1d38efb
commit 3b9d9a31c3
60 changed files with 10198 additions and 32 deletions

View File

@@ -40,6 +40,31 @@ class signup_shortcodes extends e_shortcode
}
}
function sc_signup_xup() // show it to those who were using xup
{
return $this->sc_single_login();
}
function sc_single_login()
{
$pref['single_login_active'] = 1;
if(vartrue($pref['single_login_active']))
{
$text = "";
$providers = array('facebook','twitter','google','yahoo');
foreach($providers as $p)
{
$text .= "<a href='".e_SELF."?provider={$p}'><img src='".e_HANDLER."hybridauth/icons/{$p}.png' alt='' /></a>";
}
$text .= "<hr />";
return $text;
// return $tp->parseTemplate($SIGNUP_XUP_FORM, TRUE, $signup_shortcodes);
}
}
function sc_signup_form_open()
{