# HG changeset patch # User Raphael Velt # Date 1366023569 -7200 # Node ID 44b97c5679c0a0587ef1bb930111aa028fac98b3 # Parent bf648f325dc41440efb98b7dfc2e679fef268ffb Redirect correct diff -r bf648f325dc4 -r 44b97c5679c0 web/hanna-arendt/client.php --- a/web/hanna-arendt/client.php Mon Apr 15 12:48:58 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ - basename(__DIR__)); - -include_once '../common.php'; - -if (isset($_SESSION['TWITTER_ACCESS_TOKEN']) ) { - // Permanent redirection - header("HTTP/1.1 301 Moved Permanently"); - header("Location: index.php"); - exit(); -} else { - /** - * Guess we need to go get one! - */ - $token = $consumer->getRequestToken(); - $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); - - /** - * Now redirect user to Twitter site so they can log in and - * approve our access - */ - $consumer->redirect(); -} - -?> \ No newline at end of file diff -r bf648f325dc4 -r 44b97c5679c0 web/hanna-arendt/config.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/hanna-arendt/config.php Mon Apr 15 12:59:29 2013 +0200 @@ -0,0 +1,4 @@ + basename(__DIR__), +); \ No newline at end of file diff -r bf648f325dc4 -r 44b97c5679c0 web/hanna-arendt/index.php --- a/web/hanna-arendt/index.php Mon Apr 15 12:48:58 2013 +0200 +++ b/web/hanna-arendt/index.php Mon Apr 15 12:59:29 2013 +0200 @@ -13,7 +13,7 @@ $_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); - header("Location: client.php"); + header("Location: client.php?CONNECT=true&rep=".basename(__DIR__)); exit(); } diff -r bf648f325dc4 -r 44b97c5679c0 web/hanna-arendt/paris.php --- a/web/hanna-arendt/paris.php Mon Apr 15 12:48:58 2013 +0200 +++ b/web/hanna-arendt/paris.php Mon Apr 15 12:59:29 2013 +0200 @@ -13,7 +13,7 @@ $_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); - header("Location: client.php"); + header("Location: client.php?CONNECT=true&rep=".basename(__DIR__)); exit(); }