summaryrefslogtreecommitdiff
path: root/view.php
diff options
context:
space:
mode:
authorTyler Bello <tylerbello@users.sourceforge.net>2009-12-03 20:39:18 +0000
committerTyler Bello <tylerbello@users.sourceforge.net>2009-12-03 20:39:18 +0000
commite4276f338386712f567f637c8ce2c453f8c8812c (patch)
tree2960a5ef1b4c119d0860fe025f4b6fb581942bcf /view.php
parent8ae25b29d2e2de53157411d021bff80d2a605892 (diff)
downloadfisheye-e4276f338386712f567f637c8ce2c453f8c8812c.tar.gz
fisheye-e4276f338386712f567f637c8ce2c453f8c8812c.tar.bz2
fisheye-e4276f338386712f567f637c8ce2c453f8c8812c.zip
Add function to archive a FisheyeGallery and allow a user to download it in its entirety with nested galleries intact
Diffstat (limited to 'view.php')
-rw-r--r--view.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/view.php b/view.php
index b65af41..4753f87 100644
--- a/view.php
+++ b/view.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/view.php,v 1.7 2009/04/14 17:16:15 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/view.php,v 1.8 2009/12/03 20:39:18 tylerbello Exp $
* @package fisheye
* @subpackage functions
*/
@@ -37,6 +37,14 @@ if( $gContent->isCommentable() ) {
include_once( LIBERTY_PKG_PATH.'comments_inc.php' );
}
+if (!empty($_REQUEST['download'])){
+
+ //Checked against global users group assignment so that feature can be restricted on a group level. If content was checked, user would always
+ //have permission to do this.
+ $gBitSystem->verifyPermission('p_fisheye_download_gallery_archive');
+ $gContent->download();
+}
+
require_once( FISHEYE_PKG_PATH.'display_fisheye_gallery_inc.php' );
?>