aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2011-01-19 18:37:03 +0100
committerWojciech Polak <polak@gnu.org>2011-01-19 18:38:06 +0100
commitc7e0312952cf335e48dfb377087405838ef63ba9 (patch)
tree43a33251c4e448a5bbcb17ceb93a17d471031482
parent9a70d9619b66f984032a8a7a845468ad4518788b (diff)
downloadcheetah-c7e0312952cf335e48dfb377087405838ef63ba9.tar.gz
cheetah-c7e0312952cf335e48dfb377087405838ef63ba9.tar.bz2
Use FB's signed request.
-rw-r--r--frontend/index.php6
-rw-r--r--frontend/login.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/frontend/index.php b/frontend/index.php
index 80be5f7..02da8fa 100644
--- a/frontend/index.php
+++ b/frontend/index.php
@@ -2,7 +2,7 @@
/*
Cheetah News index.php
- Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Wojciech Polak.
+ Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Wojciech Polak.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -31,8 +31,8 @@ else {
if (isset ($_SERVER['HTTPS'])) {
redirect ('http://'.$CONF['site'].'/');
}
- getvars ('fb_sig_in_iframe');
- if ($fb_sig_in_iframe == '1')
+ getvars ('signed_request');
+ if ($signed_request)
redirect ('http://'.$CONF['site'].'/reader?insideFB=1');
header ("Content-Type: text/html; charset=UTF-8");
diff --git a/frontend/login.php b/frontend/login.php
index 8e7a5b7..0550c05 100644
--- a/frontend/login.php
+++ b/frontend/login.php
@@ -2,7 +2,7 @@
/*
Cheetah News login.php
- Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Wojciech Polak.
+ Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Wojciech Polak.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -26,7 +26,7 @@ require_once 'Auth/OpenID/FileStore.php';
require_once 'Auth/OpenID/SReg.php';
getvars ('cEmail,cPassword,openid_identifier,PersistentCookie,SignIn');
-getvars ('fbConnect,fb_sig_in_iframe');
+getvars ('fbConnect,signed_request');
postvars ('regPassword,regRPassword,SignUp,RecoverPassword');
if (!isset ($insideLogin)) {
@@ -80,7 +80,7 @@ else if ($fbConnect && isset ($CONF['fb.app_id']) &&
if ($fb_session) {
$fb_uid = $fb->getUser ();
if ($fb_uid) {
- $insideFB = $fb_sig_in_iframe == '1' ? true : false;
+ $insideFB = $signed_request ? true : false;
$message = $_SESSION['session']->fb_login ($fb, $fb_uid, $insideFB);
}
}

Return to:

Send suggestions and report system problems to the System administrator.