diff -r adff693bc893 -r 56ab9478ee64 web/cineconf/widget.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/cineconf/widget.php Mon Sep 09 16:26:59 2013 +0200 @@ -0,0 +1,72 @@ + basename(__DIR__)); + +include_once '../common.php'; + +/** + * Do we already have a valid Access Token or need to go get one? + */ + +if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) ) { + + $_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); + // Permanent redirection + header("HTTP/1.1 301 Moved Permanently"); + header("Location: client.php?CONNECT=true&rep=".basename(__DIR__)); + exit(); + +} + +?> + + + +
+ +