~ubuntu-branches/ubuntu/trusty/zescrow/trusty

« back to all changes in this revision

Viewing changes to www/openid/return.html

  • Committer: Package Import Robot
  • Author(s): Dustin Kirkland
  • Date: 2012-02-12 08:35:40 UTC
  • Revision ID: package-import@ubuntu.com-20120212083540-87x5u8chrx87h6zl
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/*
 
3
 
 
4
    zEscrow: web application for securely escrowing keys
 
5
    - openid/return.html: return page from google openid
 
6
 
 
7
    Copyright (C) 2008-2012 Scot-Irish Lads, LLC
 
8
    Author: Dustin Kirkland <dustin.kirkland@gmail.com>
 
9
 
 
10
    This program is free software: you can redistribute it and/or modify
 
11
    it under the terms of the GNU Affero General Public License as
 
12
    published by the Free Software Foundation, version 3 of the
 
13
    License.
 
14
 
 
15
    This program is distributed in the hope that it will be useful,
 
16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
    GNU Affero General Public License for more details.
 
19
 
 
20
    You should have received a copy of the GNU Affero General Public License
 
21
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
22
 
 
23
*/
 
24
 
 
25
 
 
26
require_once("google/GoogleOpenID.html");
 
27
require_once("../include/functions.html");
 
28
$googleLogin = GoogleOpenID::getResponse();
 
29
if($googleLogin->success()){
 
30
        session_start();
 
31
        $_SESSION["email"] = $googleLogin->email();
 
32
        if (isset($_SESSION["return"])) {
 
33
                redirect($_SESSION["return"]);
 
34
        }
 
35
}
 
36
?>