diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-12-03 20:39:18 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-12-03 20:39:18 +0000 |
| commit | e4276f338386712f567f637c8ce2c453f8c8812c (patch) | |
| tree | 2960a5ef1b4c119d0860fe025f4b6fb581942bcf /view.php | |
| parent | 8ae25b29d2e2de53157411d021bff80d2a605892 (diff) | |
| download | fisheye-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.php | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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' ); ?> |
