| | Copyright: copyright (C) 2004 by Mike de Boer | | Description: zOOm Image Gallery, a multi-gallery component for | | Mambo based on RSGallery by Ronald Smit. It's the most | | feature-rich gallery component for Mambo! | | Filename: lightbox.php | | Version: 2.1.4 | | | ----------------------------------------------------------------------- ----------------------------------------------------------------------- | | | Ok, what is a lightbox? First of all, it's a little cardboard box, | | containing two dozen or so matches. | | The digital lightbox is somewhat the same: it's a box (ZIP-file), | | containing a dozen or so images, which the user selected. | | The idea is, that users can download a gallery filled with images | | at once, intead of downloading each image individually...that would | | be a bore...:-p Plus in a nice package too! | | | ----------------------------------------------------------------------- **/ // MOS Intruder Alerts defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); if(array_key_exists('PageNo', $_REQUEST)) $PageNo = $_REQUEST['PageNo']; if(array_key_exists('action', $_REQUEST)) $action = $_REQUEST['action']; ?>
<?php echo _ZOOM_BACKTOGALLERY;?>    |  
_gallery->_images[$key]->_id; $type = 1; }else{ $object_id = $zoom->_gallery->_id; $type = 2; } if($_SESSION['lightbox']->addItem($object_id, $type)){ ?> editItem($id, $qty)){ ?> getNoOfItems() == 1){ $lightbox = $_SESSION['lightbox']; unset($_SESSION['lightbox'], $lightbox); ?> removeItem($id)){ ?> createZipFile(); $_SESSION['lb_checked_out'] = true; unset($_SESSION['lightbox']); }else{ ?>



_counter = 0; if(!empty($_SESSION['lightbox']->_items)){ foreach($_SESSION['lightbox']->_items as $item){ if(isset($item)){ if(isset($item->_gallery) && !empty($item->_gallery)){ echo ("\n" . "\t\n" . "\t\n" . "\t\n" . "\n"); } } $zoom->_counter++; } $zoom->_counter = 0; // NOW, list all images... foreach($_SESSION['lightbox']->_items as $item){ if(isset($item)){ if(isset($item->_image) && !empty($item->_image)){ $item->_image->getInfo(); $zoom->setGallery($item->_image->_catid); echo ("\n" . "\t\n" . "\t\n" . "\t\n" . "\n"); } } $zoom->_counter++; } } ?>
\n" . "\t\t".$item->_gallery->_name."
".$item->_gallery->_descr."\n" . "\t
\n" . "\t\t_counter."&catid=".$catid."&PageNo=".$PageNo."\" onmouseover=\"return overlib('"._ZOOM_DELETE."');\" onmouseout=\"return nd();\">\n" . "\t\t_counter."','','".$mosConfig_live_site."/components/com_zoom/images/delete_f2.png',1);\" onmouseout=\"MM_swapImgRestore();\" name=\"delimgA".$zoom->_counter."\">\n" . "
n.a. \n" . "\t\t_image->_thumbnail."\" align=\"left\" hspace=\"3\" />\n" . "\t\t".$item->_image->_name."
".$item->_image->_descr."\n" . "\t
\n" . "\t\t_counter."&catid=".$catid."&PageNo=".$PageNo."\" onmouseover=\"return overlib('"._ZOOM_DELETE."');\" onmouseout=\"return nd();\">\n" . "\t\t_counter."\">\n" . "\t