web/callback.php
changeset 847 ed643ad4d8bf
parent 844 c086c7ab3f38
child 849 973a136cfbd0
equal deleted inserted replaced
846:2c592f43eb6b 847:ed643ad4d8bf
    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: ' . ( isset($_SESSION['TWITTER_REDIRECT_URL']) ? $_SESSION['TWITTER_REDIRECT_URL'] : ( URL_ROOT . "$rep/client.php" ) ) );
    35      echo "Would redirect to " . ( 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" ) ) );
    36 } else {
    37 } else {
    37     /**
    38     /**
    38      * Mistaken request? Some malfeasant trying something?
    39      * Mistaken request? Some malfeasant trying something?
    39      */
    40      */
    40     echo "<h2>$_GET</h2><pre>";
    41     echo "<h2>$_GET</h2><pre>";