Source for file list_galleries.php
Documentation is available at list_galleries.php
require_once( '../kernel/setup_inc.php' );
require_once( FISHEYE_PKG_PATH. 'FisheyeGallery.php');
global $gBitSystem, $gBitSmarty, $gFisheyeGallery;
//$gBitSystem->verifyPermission( 'p_fisheye_list_galleries' );
/* Get a list of galleries which matches the input parameters (default is to list every gallery in the system) */
$_REQUEST['root_only'] = TRUE;
/* Process the input parameters this page accepts */
if (!empty($_REQUEST['user_id']) && is_numeric($_REQUEST['user_id'])) {
if( $_REQUEST['user_id'] == $gBitUser->mUserId ) {
$_REQUEST['show_empty'] = TRUE;
$gBitSmarty->assign_by_ref('gQueryUserId', $_REQUEST['user_id']);
$template = 'user_galleries.tpl';
$template = 'list_galleries.tpl';
$_REQUEST['thumbnail_size'] = $gBitSystem->getConfig( 'fisheye_list_thumbnail_size', 'small' );
$galleryList = $gFisheyeGallery->getList( $_REQUEST );
$gFisheyeGallery->invokeServices( 'content_list_function', $_REQUEST );
$gBitSmarty->assign_by_ref( 'listInfo', $_REQUEST['listInfo'] );
$gBitSmarty->assign( 'galleryList', $galleryList );
$gDefaultCenter = "bitpackage:fisheye/$template";
$gBitSmarty->assign_by_ref( 'gDefaultCenter', $gDefaultCenter );
$gBitSystem->display( 'bitpackage:kernel/dynamic.tpl', 'List Galleries' , array( 'display_mode' => 'list' ));
|