web/clear.php
author ymh <ymh.work@gmail.com>
Fri, 15 Nov 2024 01:30:05 +0100
changeset 1576 d4f797a5471f
parent 1557 7c67caaafdeb
permissions -rwxr-xr-x
Added tag V09.002 for changeset ce1d5b0d1479

<?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['SOCIAL_ACCESS_TOKEN'] = null;

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