| | 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: editbody.php | | Version: 2.1.4 | | | ----------------------------------------------------------------------- **/ // MOS Intruder Alerts defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); if(array_key_exists('newname', $_REQUEST)){ $newname = $_REQUEST['newname']; $newdescr = $_REQUEST['newdescr']; $catpass = $_REQUEST['catpass']; $keywords = $_REQUEST['keywords']; $hidemsg = $_REQUEST['hidemsg']; $shared = $_REQUEST['shared']; $published = $_REQUEST['published']; $selections = $_REQUEST['selections']; if (isset($newname)){ //Save changes if(!isset($hidemsg)){ $hidemsg = 0; } if($catpass != "" || !empty($catpass)){ $catpass = md5($catpass); }else{ $catpass = ""; } if(empty($selections)) $selections = 1; else $selections = implode(',', $selections); // replace space-character with 'air'...or nothing! $keywords = trim(ereg_replace(" ", "", $keywords)); $database->setQuery("UPDATE #__zoom SET catname='".mysql_escape_string($newname)."', catdescr='".mysql_escape_string($newdescr)."', catpassword='".mysql_escape_string($catpass)."', catkeywords='".mysql_escape_string($keywords)."', hideMsg='$hidemsg', shared = '$shared', published='$published', catmembers='$selections' WHERE catid=".mysql_escape_string($catid)); $database->query(); //Unpublish/ publish the images of a gallery too... //Check if there are ANY images in the gallery... $database->setQuery("SELECT imgid FROM #__zoomfiles WHERE catid=$catid"); $result = $database->query(); if(mysql_num_rows($result) != 0){ while($row = mysql_fetch_object($result)){ if($published == 0) $database->setQuery("UPDATE #__zoomfiles SET published = 0 WHERE imgid = ".$row->imgid); else $database->setQuery("UPDATE #__zoomfiles SET published = 1 WHERE imgid = ".$row->imgid); $database->query(); } } ?>
.php?option=com_zoom&Itemid=&page=admin"> <?echo _ZOOM_MAINSCREEN;?>     |   .php?option=com_zoom&Itemid=&page=catsmgr"> <?echo _ZOOM_BACK;?>  
<?php echo _ZOOM_EDIT;?> 

<?php echo _ZOOM_BUTTON_CREATE;?> <?php echo _ZOOM_RESET;?>
.php?option=com_zoom&Itemid=&page=catsmgr&task=edit" method="POST">

: _gallery->_hideMsg) ? " checked" : "";?>>
:
:
:
:
: _gallery->isPublished()) echo " checked";?>> : _gallery->isShared()) echo " checked";?>>

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