web/clear.php
author Nicolas Sauret <nicolas.sauret@iri.centrepompidou.fr>
Tue, 14 Jan 2014 15:14:03 +0100
changeset 1042 d83a5117728e
parent 233 10d6fd6ce9ab
child 1557 7c67caaafdeb
permissions -rwxr-xr-x
Added tag V02.60 for changeset 6e42b39e10bf

<?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");