blob: 3d1c4456ee79e7ca78621757bc4e6b8c858c0902 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/**
* Gallery2 Remote support for fisheye
*
* @package fisheye
* @version $Header: /cvsroot/bitweaver/_bit_fisheye/main.php,v 1.6 2009/10/23 21:11:26 spiderr Exp $
* @author spider <spider@steelsun.com>
* @author tylerbello <tylerbello@gmail.com>
*/
// +----------------------------------------------------------------------+
// | Copyright (c) 2004, bitweaver.org
// +----------------------------------------------------------------------+
// | All Rights Reserved. See below for details and a complete list of authors.
// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
// |
// | For comments, please use phpdocu.sourceforge.net documentation standards!!!
// | -> see http://phpdocu.sourceforge.net/
// +----------------------------------------------------------------------+
// | Authors: spider <spider@steelsun.com>
// +----------------------------------------------------------------------+
chdir( dirname( __FILE__ ) );
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( (!empty( $_GET['g2_form'] ) ? $_GET['g2_form'] : array()), (!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();
$gallery = $gallery->lookup(array('content_id' => $_REQUEST['g2_itemId'] ));
bit_redirect( $gallery->getDisplayUrl() );
}
?>
|