<?php

/**
 * Google accounts logon handler.
 *
 * This just supplies the Google URL to OpenID_try.php. The rest is normal OpenID handling
 *
 * @author Stephen Billard (sbillard)
 * @package plugins
 * @subpackage users
 */
require_once("OpenID_common.php");
session_start();

if (isset($_REQUEST['redirect'])) {
	$redirect = sanitizeRedirect($_REQUEST['redirect']);
} else {
	$redirect = '';
}
$_SESSION['OpenID_redirect'] = $redirect;
$_SESSION['OpenID_cleaner_pattern'] = '/^.*?id=(.*)/';
$_SESSION['provider'] = 'Google';
$_GET['openid_identifier'] = 'https://www.google.com/accounts/o8/id';
$_GET['action'] = 'verify';

require 'OpenID_try_auth.php';
?>