diff -r e6b328970ee8 -r ffb0a6d08000 web/tweet.php --- a/web/tweet.php Wed Jul 27 12:24:43 2011 +0200 +++ b/web/tweet.php Wed Jul 27 12:25:45 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?