summaryrefslogtreecommitdiff
path: root/main.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2009-07-12 12:46:00 +0000
committerChristian Fowler <spider@viovio.com>2009-07-12 12:46:00 +0000
commit511f11203e2c560c8e245a3daad217fe68de3346 (patch)
tree9beb15eeacb372ac2e8f8d7d593e1e5cb88575d4 /main.php
parentcad19091f5fd85a7292a67230d74cef986dfebc3 (diff)
downloadfisheye-511f11203e2c560c8e245a3daad217fe68de3346.tar.gz
fisheye-511f11203e2c560c8e245a3daad217fe68de3346.tar.bz2
fisheye-511f11203e2c560c8e245a3daad217fe68de3346.zip
initial implementation of Gallery2 Remote API implementation. It works\!
Diffstat (limited to 'main.php')
-rw-r--r--main.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/main.php b/main.php
new file mode 100644
index 0000000..0e0b425
--- /dev/null
+++ b/main.php
@@ -0,0 +1,40 @@
+<?php
+/**
+* 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 $
+* @author spider <spider@steelsun.com>
+* @author tylerbello <tylerbello@gmail.com>
+*/
+
+// +----------------------------------------------------------------------+
+// | Copyright (c) 2004, bitweaver.org
+// +----------------------------------------------------------------------+
+// | All Rights Reserved. See copyright.txt for details and a complete list of authors.
+// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
+// |
+// | For comments, please use phpdocu.sourceforge.net documentation standards!!!
+// | -> see http://phpdocu.sourceforge.net/
+// +----------------------------------------------------------------------+
+// | Authors: spider <spider@steelsun.com>
+// +----------------------------------------------------------------------+
+
+require_once( '../../bit_setup_inc.php' );
+
+//Point of access for FisheyeRemote requests
+require_once( 'FisheyeRemote.php' );
+require_once( FISHEYE_PKG_PATH.'FisheyeGallery.php' );
+
+$gFisheyeRemote = new FisheyeRemote();
+
+if( !empty( $_REQUEST['g2_form'] ) ){
+ $gFisheyeRemote->processRequest($_REQUEST['g2_form']);
+} 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'] );
+ bit_redirect( $gallery->getDisplayUrl() );
+}
+
+
+?>