From 3345b13c73e76d2f03a85209d205adb9af49fc6b Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Sun, 2 Jun 2013 10:37:15 -0500 Subject: Updated login form with a few new providers --- index.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 08091c3..ad5ed0b 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,17 @@ ob_start("ob_gzhandler"); if (!session_id()) session_start(); //session_regenerate_id(); +$request = isset($_GET['page']) ? strtolower($_GET['page']) : ''; +if ($request == '' && !$accepted) + $request = 'hometutorial'; + +//Callback for OAuth authentication +if($request === "hybridauth" || $request === "hybridauth/") +{ + require 'includes/HybridAuth/index.php'; + return; +} + //Show updating page? //$showUpdatePage = true; $showUpdatePage = false; @@ -92,10 +103,6 @@ if ($accepted) { //$headerLinks['faq'] = "FAQ"; //$headerLinks['about'] = "About Us"; -$request = isset($_GET['page']) ? strtolower($_GET['page']) : ''; -if ($request == '' && !$accepted) - $request = 'hometutorial'; - switch ($request) { case "tutorial": require("pages/tutorial.php"); -- cgit v1.2.3