web/clear.php
author Samuel Huron <samuel.huron@centrepompidou.fr>
Fri, 03 Aug 2012 00:51:14 +0200
changeset 673 2fb54d5fd0fb
parent 233 10d6fd6ce9ab
child 1557 7c67caaafdeb
permissions -rwxr-xr-x
FIX: Cacher annotation liste et tagcloud pour les phase 2 et 3 de l'experimentation, a remettre a la fin : ligne 383 de polemictimeline.php

<?php

/**
 * include some common code (like we did in the 90s)
 * People still do this? ;)
 */
include_once 'common.php';
if(!isset($_REQUEST['rep'])) {
	$rep = $C_default_rep;
}
else {
	$rep = $_REQUEST['rep'];
}


/**
 * Clear the Access Token to force the OAuth protocol to rerun
 */
$_SESSION['TWITTER_ACCESS_TOKEN'] = null;

/**
 * Redirect back to index and the protocol legs should run once again
 */
header('Location: ' . URL_ROOT . "$rep/client.php");