web/cineconf/widget.php
changeset 1557 7c67caaafdeb
parent 950 8320167038ca
equal deleted inserted replaced
1556:5f9b76ecccf0 1557:7c67caaafdeb
     6 
     6 
     7 /**
     7 /**
     8  * Do we already have a valid Access Token or need to go get one?
     8  * Do we already have a valid Access Token or need to go get one?
     9  */
     9  */
    10 
    10 
    11 if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) ) {
    11 if (!isset($_SESSION['SOCIAL_ACCESS_TOKEN']) ) {
    12 	
    12 	
    13 	$_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__);
    13 	$_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__);
    14 	// Permanent redirection
    14 	// Permanent redirection
    15 	header("HTTP/1.1 301 Moved Permanently");
    15 	header("HTTP/1.1 301 Moved Permanently");
    16 	header("Location: client.php?CONNECT=true&rep=".basename(__DIR__));
    16 	header("Location: client.php?CONNECT=true&rep=".basename(__DIR__));