diff -r 0d6069c5fb10 -r 9c645bec23c4 web/hanna-arendt/index.php --- a/web/hanna-arendt/index.php Mon Apr 15 12:24:37 2013 +0200 +++ b/web/hanna-arendt/index.php Mon Apr 15 12:48:04 2013 +0200 @@ -9,18 +9,13 @@ */ if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) ) { + $_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); - /** - * 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(); + // Permanent redirection + header("HTTP/1.1 301 Moved Permanently"); + header("Location: client.php"); + exit(); + } ?>