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 echo "Would redirect to " . ( isset($_SESSION['TWITTER_REDIRECT_URL']) ? $_SESSION['TWITTER_REDIRECT_URL'] : ( URL_ROOT . "$rep/client.php" ) ); |
35 header('Location: ' . ( isset($_SESSION['TWITTER_REDIRECT_URL']) ? $_SESSION['TWITTER_REDIRECT_URL'] : ( URL_ROOT . "$rep/client.php" ) ) ); |
36 //header('Location: ' . ( isset($_SESSION['TWITTER_REDIRECT_URL']) ? $_SESSION['TWITTER_REDIRECT_URL'] : ( URL_ROOT . "$rep/client.php" ) ) ); |
|
37 } else { |
36 } else { |
38 /** |
37 /** |
39 * Mistaken request? Some malfeasant trying something? |
38 * Mistaken request? Some malfeasant trying something? |
40 */ |
39 */ |
41 echo "<h2>$_GET</h2><pre>"; |
|
42 print_r($_GET); |
|
43 echo "</pre><h2>$_SESSION</h2><pre>"; |
|
44 print_r($_SESSION); |
|
45 echo "</pre>"; |
|
46 exit('Invalid callback request. Oops. Sorry.'); |
40 exit('Invalid callback request. Oops. Sorry.'); |
47 } |
41 } |