From e4276f338386712f567f637c8ce2c453f8c8812c Mon Sep 17 00:00:00 2001 From: Tyler Bello Date: Thu, 3 Dec 2009 20:39:18 +0000 Subject: Add function to archive a FisheyeGallery and allow a user to download it in its entirety with nested galleries intact --- view.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'view.php') diff --git a/view.php b/view.php index b65af41..4753f87 100644 --- a/view.php +++ b/view.php @@ -1,6 +1,6 @@ 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' ); ?> -- cgit v1.3