diff options
| author | Christian Fowler <spider@viovio.com> | 2010-02-09 03:32:04 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2010-02-09 03:32:04 +0000 |
| commit | 4dd07329fc0bb5458f696728d1f17afe00650d40 (patch) | |
| tree | ce47ae560a0730a638123eccdf8e72f487674879 /main.php | |
| parent | 025172eb13cac184466c26f085e18fd930becabf (diff) | |
| download | fisheye-4dd07329fc0bb5458f696728d1f17afe00650d40.tar.gz fisheye-4dd07329fc0bb5458f696728d1f17afe00650d40.tar.bz2 fisheye-4dd07329fc0bb5458f696728d1f17afe00650d40.zip | |
major changes to protocol to more properly handle native g2 protocol - add auth_token, set GALLERYSID for clients that might depend on it. clean up counting so final directory works; unset all cookies if a g2_authToken has not been sent
Diffstat (limited to 'main.php')
| -rw-r--r-- | main.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,7 +3,7 @@ * Gallery2 Remote support for fisheye * * @package fisheye -* @version $Header: /cvsroot/bitweaver/_bit_fisheye/main.php,v 1.7 2010/02/08 21:27:22 wjames5 Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_fisheye/main.php,v 1.8 2010/02/09 03:32:04 spiderr Exp $ * @author spider <spider@steelsun.com> * @author tylerbello <tylerbello@gmail.com> */ @@ -22,6 +22,13 @@ chdir( dirname( __FILE__ ) ); +if( empty( $_REQUEST['g2_authToken'] ) ) { + // No Auth token, nuke all cookies in case this was a previous login + foreach( array_keys( $_COOKIE ) as $key ) { + unset( $_COOKIE[$key] ); + } +} + require_once( '../../kernel/setup_inc.php' ); //Point of access for FisheyeRemote requests |
