summaryrefslogtreecommitdiff
path: root/list_galleries.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-28 16:19:05 +0100
committerlsces <lester@lsces.co.uk>2025-08-28 16:19:05 +0100
commit2140176e21e83d3779460277a31bcc7adaf9d3fe (patch)
treef7e1d27e3428e63c2b635a4474e57cf14158241a /list_galleries.php
parentd4cf8eb6b69ff23eedcba9359ce9a1ed4e2a7d9c (diff)
downloadfisheye-2140176e21e83d3779460277a31bcc7adaf9d3fe.tar.gz
fisheye-2140176e21e83d3779460277a31bcc7adaf9d3fe.tar.bz2
fisheye-2140176e21e83d3779460277a31bcc7adaf9d3fe.zip
General code updated to PHP8.4 and namespace ... work in progress on updating some third party code
Diffstat (limited to 'list_galleries.php')
-rwxr-xr-x[-rw-r--r--]list_galleries.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/list_galleries.php b/list_galleries.php
index 630b078..9d1f880 100644..100755
--- a/list_galleries.php
+++ b/list_galleries.php
@@ -8,26 +8,28 @@
/**
* required setup
*/
-require_once( '../kernel/includes/setup_inc.php' );
+namespace Bitweaver\Fisheye;
+
+require_once '../kernel/includes/setup_inc.php';
-require_once( FISHEYE_PKG_CLASS_PATH.'FisheyeGallery.php');
global $gBitSystem, $gBitSmarty, $gFisheyeGallery;
-$gBitSystem->verifyPermission( 'p_fisheye_list_galleries' );
+//$gBitSystem->verifyPermission( 'p_fisheye_list_galleries' );
+require_once LIBERTY_PKG_PATH.'plugins/mime.image.php';
$gFisheyeGallery = new FisheyeGallery();
/* Get a list of galleries which matches the input parameters (default is to list every gallery in the system) */
-$_REQUEST['root_only'] = TRUE;
+$_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;
+ $_REQUEST['show_empty'] = true;
}
- $gBitSmarty->assignByRef('gQueryUserId', $_REQUEST['user_id']);
+ $gBitSmarty->assign('gQueryUserId', $_REQUEST['user_id']);
$template = 'user_galleries.tpl';
} else {
- $template = 'list_galleries.tpl';
+ $template = 'list_galleries2.tpl';
}
$_REQUEST['thumbnail_size'] = $gBitSystem->getConfig( 'fisheye_list_thumbnail_size', 'small' );
@@ -35,12 +37,10 @@ $_REQUEST['thumbnail_size'] = $gBitSystem->getConfig( 'fisheye_list_thumbnail_si
$galleryList = $gFisheyeGallery->getList( $_REQUEST );
$gFisheyeGallery->invokeServices( 'content_list_function', $_REQUEST );
// Pagination Data
-$gBitSmarty->assignByRef( 'listInfo', $_REQUEST['listInfo'] );
+$gBitSmarty->assign( 'listInfo', $_REQUEST['listInfo'] );
$gBitSmarty->assign( 'galleryList', $galleryList );
// Display the template
$gDefaultCenter = "bitpackage:fisheye/$template";
-$gBitSmarty->assignByRef( 'gDefaultCenter', $gDefaultCenter );
-$gBitSystem->display( 'bitpackage:kernel/dynamic.tpl', 'List Galleries' , array( 'display_mode' => 'list' ));
-
-?>
+$gBitSmarty->assign( 'gDefaultCenter', $gDefaultCenter );
+$gBitSystem->display( 'bitpackage:kernel/dynamic.tpl', 'List Galleries' , [ 'display_mode' => 'list' ] );