equal
deleted
inserted
replaced
2 |
2 |
3 /** |
3 /** |
4 * include some common code (like we did in the 90s) |
4 * include some common code (like we did in the 90s) |
5 * People still do this? ;) |
5 * People still do this? ;) |
6 */ |
6 */ |
7 include_once './common.php'; |
7 include_once 'common.php'; |
|
8 if(!isset($_REQUEST['rep'])) { |
|
9 $rep = $C_default_rep; |
|
10 } |
|
11 else { |
|
12 $rep = $_REQUEST['rep']; |
|
13 } |
|
14 |
8 |
15 |
9 /** |
16 /** |
10 * Clear the Access Token to force the OAuth protocol to rerun |
17 * Clear the Access Token to force the OAuth protocol to rerun |
11 */ |
18 */ |
12 $_SESSION['TWITTER_ACCESS_TOKEN'] = null; |
19 $_SESSION['TWITTER_ACCESS_TOKEN'] = null; |
13 |
20 |
14 /** |
21 /** |
15 * Redirect back to index and the protocol legs should run once again |
22 * Redirect back to index and the protocol legs should run once again |
16 */ |
23 */ |
17 header('Location: ' . URL_ROOT . 'client.php'); |
24 header('Location: ' . URL_ROOT . "$rep/client.php"); |