web/index.php
changeset 1557 7c67caaafdeb
parent 1427 8b3d57a519eb
child 1560 d441b50586ba
equal deleted inserted replaced
1556:5f9b76ecccf0 1557:7c67caaafdeb
    13 
    13 
    14 
    14 
    15 /**
    15 /**
    16  * Do we already have a valid Access Token or need to go get one?
    16  * Do we already have a valid Access Token or need to go get one?
    17  */
    17  */
    18 if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) {
    18 if (!isset($_SESSION['SOCIAL_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) {
    19     // /**
    19     // /**
    20     //  * Guess we need to go get one!
    20     //  * Guess we need to go get one!
    21     //  */
    21     //  */
    22     // $token = $consumer->getRequestToken();
    22     // $token = $consumer->getRequestToken();
    23     // $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
    23     // $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
    25     // /**
    25     // /**
    26     //  * Now redirect user to Twitter site so they can log in and
    26     //  * Now redirect user to Twitter site so they can log in and
    27     //  * approve our access
    27     //  * approve our access
    28     //  */
    28     //  */
    29     // $consumer->redirect();
    29     // $consumer->redirect();
    30     $get_twitter_request_token();
    30     $get_social_request_token();
    31 }
    31 }
    32 
    32 
    33 ?>
    33 ?>
    34 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    34 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    35 <html lang="<?php echo($actual); ?>">
    35 <html lang="<?php echo($actual); ?>">
   247 	 
   247 	 
   248       <div class="footer">
   248       <div class="footer">
   249 		<hr>
   249 		<hr>
   250 		<?php
   250 		<?php
   251 			print $translate->_("footer text home");
   251 			print $translate->_("footer text home");
   252 			if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
   252 			if (isset($_SESSION['SOCIAL_ACCESS_TOKEN'])){
   253 					echo("| 	<a href='clear.php'  class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
   253 					echo("| 	<a href='clear.php'  class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
   254 			}
   254 			}
   255 		 ?>
   255 		 ?>
   256 		  <input type="text" id="txt" size="3" style="visibility:hidden;"/>
   256 		  <input type="text" id="txt" size="3" style="visibility:hidden;"/>
   257 	  </div>
   257 	  </div>