Beispiel #1
0
            # Clean the cache of the sitemap
            $sitemap->setMenus($menus);
            if ($sitemap->save()) {
                if ($sitemap->usecache) {
                    XmapCache::cleanCache($sitemap);
                }
                echo 1;
            } else {
                echo $database->getErrorMsg();
            }
        }
        break;
    case 'uninstallplugin':
        $id = intval(JRequest::getVar('plugin', '', "REQUEST"));
        if ($id != JRequest::getVar('plugin', '', "REQUEST")) {
            //Security Check!
            die('Cannot load plugin');
        }
        if (xmapUninstallPlugin($id)) {
            echo 1;
        }
        break;
    case 'edit_plugin_settings':
        $id = intval(JRequest::getVar('plugin', '', "REQUEST"));
        $plugin = new XmapPlugin($database);
        if ($id != JRequest::getVar('plugin', '', "REQUEST") || !$plugin->load($id)) {
            die('Cannot load plugin');
        }
        XmapAdminHtml::showPluginSettings($plugin);
        break;
}