blob: d5c3975224d75b4ddb9a852d8f1111c252171252 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 );
$gBitSmarty->assign_by_ref('galleryList', $galleryList);
/* Process the input parameters this page accepts */
if (!empty($gQueryUser) && $gQueryUser->isRegistered()) {
$gBitSmarty->assign_by_ref('gQuerUserId', $gQueryUser->mUserId);
$template = 'user_galleries.tpl';
} else {
$template = 'list_galleries.tpl';
}
if (!empty($_REQUEST['offset']) && is_numeric($_REQUEST['offset'])) {
$gBitSmarty->assign_by_ref('iMaxRows', $iMaxRows);
}
if (!empty($_REQUEST['sort_mode'])) {
$gBitSmarty->assign_by_ref('iSortMode', $_REQUEST['sort_mode']);
}
if (!empty($_REQUEST['search'])) {
$gBitSmarty->assign_by_ref('iSearchString', $iSearchtring);
}
?>
|