diff -r e6b328970ee8 -r ffb0a6d08000 web/clear.php --- a/web/clear.php Wed Jul 27 12:24:43 2011 +0200 +++ b/web/clear.php Wed Jul 27 12:25:45 2011 +0200 @@ -4,7 +4,14 @@ * include some common code (like we did in the 90s) * People still do this? ;) */ -include_once './common.php'; +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 @@ -14,4 +21,4 @@ /** * Redirect back to index and the protocol legs should run once again */ -header('Location: ' . URL_ROOT); +header('Location: ' . URL_ROOT . "$rep/client.php");