web/CPV/clear.php
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Mon, 04 Jul 2011 18:45:03 +0200
changeset 211 292660b3f7a5
parent 150 ffaea21247c4
permissions -rwxr-xr-x
Added tag V00.66 for changeset b097cecc52d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
150
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     1
<?php
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     2
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     3
/**
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     4
 * include some common code (like we did in the 90s)
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     5
 * People still do this? ;)
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     6
 */
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     7
include_once './common.php';
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     8
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
     9
/**
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    10
 * Clear the Access Token to force the OAuth protocol to rerun
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    11
 */
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    12
$_SESSION['TWITTER_ACCESS_TOKEN'] = null;
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    13
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    14
/**
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    15
 * Redirect back to index and the protocol legs should run once again
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    16
 */
ffaea21247c4 change partner and add CPV
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
diff changeset
    17
header('Location: ' . URL_ROOT);