equal
deleted
inserted
replaced
30 $_SESSION['TWITTER_REQUEST_TOKEN'] = null; |
30 $_SESSION['TWITTER_REQUEST_TOKEN'] = null; |
31 |
31 |
32 /** |
32 /** |
33 * With Access Token in hand, let's try accessing the client again |
33 * With Access Token in hand, let's try accessing the client again |
34 */ |
34 */ |
35 header('Location: ' . URL_ROOT . "$rep/client.php" ); |
35 header('Location: ' . ( isset($_SESSION['TWITTER_REDIRECT_URL']) ? $_SESSION['TWITTER_REDIRECT_URL'] : ( URL_ROOT . "$rep/client.php" ) ) ); |
36 } else { |
36 } else { |
37 /** |
37 /** |
38 * Mistaken request? Some malfeasant trying something? |
38 * Mistaken request? Some malfeasant trying something? |
39 */ |
39 */ |
40 exit('Invalid callback request. Oops. Sorry.'); |
40 exit('Invalid callback request. Oops. Sorry.'); |