diff options
Diffstat (limited to 'templates/center_list_galleries.php')
| -rw-r--r-- | templates/center_list_galleries.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/center_list_galleries.php b/templates/center_list_galleries.php new file mode 100644 index 0000000..317f607 --- /dev/null +++ b/templates/center_list_galleries.php @@ -0,0 +1,30 @@ +<?php + global $gQueryUser; + $gFisheyeGallery = new FisheyeGallery(); + + /* Get a list of galleries which matches the imput paramters (default is to list every gallery in the system) */ + $_REQUEST['root_only'] = TRUE; + $_REQUEST['get_thumbnails'] = TRUE; + $galleryList = $gFisheyeGallery->getList( $_REQUEST ); + $smarty->assign_by_ref('galleryList', $galleryList); + + /* Process the input parameters this page accepts */ + if (!empty($gQueryUser) && $gQueryUser->isRegistered()) { + $smarty->assign_by_ref('gQuerUserId', $gQueryUser->mUserId); + $template = 'user_galleries.tpl'; + } else { + $template = 'list_galleries.tpl'; + } + + if (!empty($_REQUEST['offset']) && is_numeric($_REQUEST['offset'])) { + $smarty->assign_by_ref('iMaxRows', $iMaxRows); + } + if (!empty($_REQUEST['sort_mode'])) { + $smarty->assign_by_ref('iSortMode', $_REQUEST['sort_mode']); + } + if (!empty($_REQUEST['search'])) { + $smarty->assign_by_ref('iSearchString', $iSearchtring); + } + + +?> |
