diff options
| author | Christian Fowler <spider@viovio.com> | 2009-07-13 18:10:13 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2009-07-13 18:10:13 +0000 |
| commit | dd14c4bef0a91bb283b6367e6f2d343e63f8cf76 (patch) | |
| tree | aff99eb829e71423df4f11176b3bea53f023704a /main.php | |
| parent | 511f11203e2c560c8e245a3daad217fe68de3346 (diff) | |
| download | fisheye-dd14c4bef0a91bb283b6367e6f2d343e63f8cf76.tar.gz fisheye-dd14c4bef0a91bb283b6367e6f2d343e63f8cf76.tar.bz2 fisheye-dd14c4bef0a91bb283b6367e6f2d343e63f8cf76.zip | |
separate out pPostData and pParamhash data since some plugins can populate _POST['g2_form'] and _GET['g2_form'] differently o-O, implement no-op command as a ping.
Diffstat (limited to 'main.php')
| -rw-r--r-- | main.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,7 +3,7 @@ * Gallery2 Remote support for fisheye * * @package fisheye -* @version $Header: /cvsroot/bitweaver/_bit_fisheye/main.php,v 1.1 2009/07/12 12:46:00 spiderr Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_fisheye/main.php,v 1.2 2009/07/13 18:10:13 spiderr Exp $ * @author spider <spider@steelsun.com> * @author tylerbello <tylerbello@gmail.com> */ @@ -28,8 +28,9 @@ require_once( FISHEYE_PKG_PATH.'FisheyeGallery.php' ); $gFisheyeRemote = new FisheyeRemote(); + if( !empty( $_REQUEST['g2_form'] ) ){ - $gFisheyeRemote->processRequest($_REQUEST['g2_form']); + $gFisheyeRemote->processRequest( $_GET['g2_form'], (!empty( $_POST['g2_form'] ) ? $_POST['g2_form'] : array()) ); } elseif( !empty( $_REQUEST['g2_itemId'] ) ) { //If we don't have g2_form, they must be asking the gallery to be opened upon export completion $gallery = new FisheyeGallery( $_REQUEST['g2_itemId'] ); |
