diff -r 1bcc79e78fa1 -r 74c9ddc3640b web/tweet.php --- a/web/tweet.php Mon Jul 18 13:40:06 2011 +0200 +++ b/web/tweet.php Mon Jul 25 18:50:20 2011 +0200 @@ -4,7 +4,9 @@ * include some common code (like we did in the 90s) * People still do this? ;) */ -include_once './common.php'; +$rep = $_REQUEST['rep']; +include_once dirname(__FILE__).'/'.$rep.'/config.php'; +include_once 'common.php'; /** * Check for a POSTed status message to send to Twitter @@ -35,7 +37,7 @@ /** * Tweet sent (hopefully), redirect back home... */ - header('Location: ' . URL_ROOT . '?result=' . $result); + header('Location: ' . URL_ROOT . '$rep/client.php?result=' . $result); } else { /** * Mistaken request? Some malfeasant trying something?