|
| 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'];
?>