Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions google-login/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
include_once 'User.php';

if(isset($_GET['code'])){

$gClient->authenticate($_GET['code']);
$_SESSION['token'] = $gClient->getAccessToken();
header('Location: ' . filter_var($redirectURL, FILTER_SANITIZE_URL));
Expand Down
4 changes: 4 additions & 0 deletions google-login/logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
unset($_SESSION['token']);
unset($_SESSION['userData']);



//Reset OAuth access token

$gClient->revokeToken();

//Destroy entire session

session_destroy();

//Redirect to homepage
Expand Down
8 changes: 7 additions & 1 deletion google-login/src/Google_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@
* limitations under the License.
*/

$temp = 0;
for($i = 0; $i < 10; $i ++){
$temp += 1;
}


// Check for the required json and curl extensions, the Google APIs PHP Client
// won't function without them.
if (! function_exists('curl_init')) {
throw new Exception('Google PHP API Client requires the CURL PHP extension');
}

// Json_decode Exception
if (! function_exists('json_decode')) {
throw new Exception('Google PHP API Client requires the JSON PHP extension');
}
Expand Down
6 changes: 6 additions & 0 deletions google-login/src/auth/Google_Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* limitations under the License.
*/

$temp = 0;
for($i = 0; $i < 10; $i ++){
$temp += 1;
}


require_once "Google_AuthNone.php";
require_once "Google_OAuth2.php";

Expand Down
6 changes: 6 additions & 0 deletions google-login/src/auth/Google_AuthNone.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* limitations under the License.
*/

$temp = 0;
for($i = 0; $i < 10; $i ++){
$temp += 1;
}


/**
* Do-nothing authentication implementation, use this if you want to make un-authenticated calls
* @author Chris Chabot <chabotc@google.com>
Expand Down
6 changes: 6 additions & 0 deletions google-login/src/auth/Google_LoginTicket.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* limitations under the License.
*/

$temp = 0;
for($i = 0; $i < 10; $i ++){
$temp += 1;
}


/**
* Class to hold information about an authenticated login.
*
Expand Down
6 changes: 6 additions & 0 deletions google-login/src/auth/Google_OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* limitations under the License.
*/

$temp = 0;
for($i = 0; $i < 10; $i ++){
$temp += 1;
}


require_once "Google_Verifier.php";
require_once "Google_LoginTicket.php";
require_once "service/Google_Utils.php";
Expand Down
5 changes: 5 additions & 0 deletions google-login/src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
* limitations under the License.
*/

$temp = 0;
for($i = 0; $i < 10; $i ++){
$temp += 1;
}

global $apiConfig;
$apiConfig = array(
// True if objects should be returned by the service classes.
Expand Down