web/hanna-arendt/index.php
changeset 840 9c645bec23c4
parent 838 7c4a269eb53a
child 842 44b97c5679c0
--- 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();
+	
 }
 
 ?>