$action = $zoom->getParam($_REQUEST, 'action', 'catsmgr'); if (!empty($action)) { if ($action == "catsmgr_editform") { $buttons = array('delete', 'save'); } else { if ($action == "catsmgr_newform") { $buttons = array('cancel', 'save'); } else { if ($action == "catsmgr") { $buttons = array('new'); } } } echo $zoom->callbackResult(); require_once $mosConfig_absolute_path . '/components/com_zoom/www/admin/toolbar.xml.php'; XML_toolbar::buildToolbar($buttons); } break; case 'get_galleries': echo $zoom->createCatXML(); break; } echo $zoom->finishXML($task); } else { die('Direct Access to this location is not allowed.'); } function removeGalleryRecursive($catid) { global $database, $mosConfig_absolute_path, $zoom; //The recursive part $database->setQuery("SELECT catname, catdir, catid FROM #__zoom WHERE subcat_id=" . $catid);