$uid = $zoom->currUID; if (empty($selections)) { $selections = 1; } else { $selections = implode(',', $selections); } // replace space-character with 'air'...or nothing! $keywords = ereg_replace(" ", "", $keywords); $database->setQuery("INSERT INTO #__zoom (catname, catdescr, catdir, catpassword, catkeywords, " . "subcat_id, pos, hideMsg, shared, published, uid, catmembers)" . " VALUES " . "('" . $zoom->escapeString($name) . "', '" . $zoom->escapeString($descr) . "', '" . $zoom->escapeString($mkdir) . "', '" . $zoom->escapeString($pass) . "', '" . $zoom->escapeString($keywords) . "', '{$parent}', '{$pos}', '{$hidemsg}', " . "'{$shared}', '{$published}', '{$uid}', '" . $zoom->escapeString($selections) . "')"); if ($database->query()) { echo $zoom->callbackResult(html_entity_decode(_ZOOM_ALERT_NEWGALLERY)); $database->setQuery("SELECT MAX(catid) AS catid FROM #__zoom"); $result = $database->query(); $row = mysql_fetch_object($result); $gallery = new gallery($row->catid, true); echo $gallery->toXML(); } else { echo $zoom->callbackResult(html_entity_decode(_ZOOM_ALERT_NONEWGALLERY), true); } } else { echo $zoom->callbackResult(html_entity_decode(_ZOOM_ALERT_NONEWGALLERY), true); } } break; case 'catsmgr_newdir': //echo $zoom->callbackResult(); echo "<newdir>" . $zoom->newdir() . "</newdir>"; break; case 'catsmgr_rename': $catid = intval($zoom->getParam($_REQUEST, 'catid')); if (!empty($catid)) {