fisheye
[ class tree: fisheye ] [ index: fisheye ] [ all elements ]

Source for file list_galleries.php

Documentation is available at list_galleries.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package fisheye
  5.  * @subpackage functions
  6.  */
  7.  
  8. /**
  9.  * required setup
  10.  */
  11. require_once'../kernel/setup_inc.php' );
  12.  
  13. require_onceFISHEYE_PKG_PATH.'FisheyeGallery.php');
  14. global $gBitSystem$gBitSmarty$gFisheyeGallery;
  15.  
  16. //$gBitSystem->verifyPermission( 'p_fisheye_list_galleries' );
  17.  
  18. $gFisheyeGallery new FisheyeGallery();
  19.  
  20. /* Get a list of galleries which matches the input parameters (default is to list every gallery in the system) */
  21. $_REQUEST['root_only'TRUE;
  22. /* Process the input parameters this page accepts */
  23. if (!empty($_REQUEST['user_id']&& is_numeric($_REQUEST['user_id'])) {
  24.     if$_REQUEST['user_id'== $gBitUser->mUserId {
  25.         $_REQUEST['show_empty'TRUE;
  26.     }
  27.     $gBitSmarty->assign_by_ref('gQueryUserId'$_REQUEST['user_id']);
  28.     $template 'user_galleries.tpl';
  29. else {
  30.     $template 'list_galleries.tpl';
  31. }
  32.  
  33. $_REQUEST['thumbnail_size'$gBitSystem->getConfig'fisheye_list_thumbnail_size''small' );
  34.  
  35. $galleryList $gFisheyeGallery->getList$_REQUEST );
  36. $gFisheyeGallery->invokeServices'content_list_function'$_REQUEST );
  37. // Pagination Data
  38. $gBitSmarty->assign_by_ref'listInfo'$_REQUEST['listInfo');
  39. $gBitSmarty->assign'galleryList'$galleryList );
  40.  
  41. // Display the template
  42. $gDefaultCenter "bitpackage:fisheye/$template";
  43. $gBitSmarty->assign_by_ref'gDefaultCenter'$gDefaultCenter );
  44. $gBitSystem->display'bitpackage:kernel/dynamic.tpl''List Galleries' array'display_mode' => 'list' ));
  45.  
  46. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:02 +0000 by phpDocumentor 1.5.0-lsces