| | 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: editpic.php | | Version: 2.1.1 | | | ----------------------------------------------------------------------- **/ // MOS Intruder Alerts defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); if(array_key_exists('submita', $_REQUEST)) $submita = $_REQUEST['submita']; if(array_key_exists('key', $_REQUEST)) $key = $_REQUEST['key']; if ($submita){ $newname = $_REQUEST['newname']; $newkeywords = $_REQUEST['keywords']; $newdescr = $_REQUEST['newdescr']; $catimg = $_REQUEST['catimg']; $parentimg = $_REQUEST['parentimg']; $published = $_REQUEST['published']; $selections = $_REQUEST['selections']; $return = $_REQUEST['return']; //Save in database if(empty($selections)) $selections = 1; else $selections = implode(',', $selections); $newkeywords = trim(ereg_replace(" ", "", $newkeywords)); $zoom->_gallery->_images[$key]->setImgInfo($newname, $newkeywords, $newdescr, $catimg, $parentimg, $published, $selections); if ($zoom->_isBackend) { $index = "index2.php"; }else{ $index = "index.php"; } if(!isset($return)){ $loc = "$index?option=com_zoom&Itemid=$Itemid&catid=$catid&PageNo=$PageNo"; }else{ $loc = "$index?option=com_zoom&Itemid=$Itemid&catid=$catid&page=$return"; } ?> _gallery->_images[$key]->getInfo(); if (array_key_exists('return', $_REQUEST)) $return = $_REQUEST['return']; ?>
<?php echo _ZOOM_MAINSCREEN;?>   _gallery->_pos==0) echo " > "; elseif ($zoom->_gallery->_pos==1) echo " > _gallery->_subcat_id."\">".$parent." > "; elseif ($zoom->_gallery->_pos>=2) echo " >..> _gallery->_subcat_id."\">".$parent." > "; echo "_gallery->_id."&PageNo=".$PageNo."\">".$zoom->_gallery->_name.""; if(!$zoom->_gallery->_published) echo " (unpublished)"; if($zoom->_isAdmin){ print ' | '._ZOOM_ADMINSYSTEM.''; }else if($zoom->_isUser && $zoom->_CONFIG['allowUserUpload']){ print ' | '._ZOOM_USERSYSTEM.''; } ?>  
.php?option=com_zoom&Itemid=&page=admin"> <?echo _ZOOM_MAINSCREEN;?>     |   .php?option=com_zoom&Itemid=&catid=&page=mediamgr"> <?echo _ZOOM_BACK;?>  

<?php echo _ZOOM_SAVE;?> <?php echo _ZOOM_RESET;?>
.php?option=com_zoom&page=editpic&Itemid=">

: _gallery->_images[$key]->_filename;?>
:
:
:
: _gallery->_cat_img==$zoom->_gallery->_images[$key]->_id) echo " checked";?>>
: _gallery->_images[$key]->isParentImage($zoom->_gallery->_subcat_id)) echo " checked";?>>
: _gallery->_images[$key]->isPublished()) echo " checked";?>>

getUsersList($zoom->_gallery->_images[$key]->_members); foreach($userlist as $item){ echo $item."\n"; } ?>