1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fixes #197 , Issue #831 - Social logins.

This commit is contained in:
Cameron
2015-02-05 16:24:54 -08:00
parent 812ca301e3
commit b7cb8fe75d
7 changed files with 293 additions and 210 deletions

View File

@@ -268,6 +268,7 @@ if($signup_imagecode)
if ((USER || ($pref['user_reg'] != 1) || (vartrue($pref['auth_method'],'e107') != 'e107')) && !getperms('0'))
{
header('location: '.e_HTTP.'index.php');
}
if(getperms('0')) // allow main admin to view signup page for design/testing.
@@ -277,7 +278,7 @@ if(getperms('0')) // allow main admin to view signup page for design/testing.
$adminMsg = LAN_SIGNUP_112;
if($pref['user_reg'] != 1)
if($pref['user_reg'] !== 1)
{
$adminMsg .= "<br />User registration is currently disabled";
}
@@ -381,7 +382,7 @@ if (e_QUERY)
// Initial signup (registration)
//----------------------------------------
if (isset($_POST['register']) && $pref['user_reg'] == 1)
if (isset($_POST['register']) && $pref['user_reg'] === 1)
{
e107::getCache()->clear("online_menu_totals");