function remove_urls() { global $tpl, $mysql, $twig; $ULIB = new urlLibrary(); $ULIB->loadConfig(); $ULIB->removeCommand('eshop', ''); $ULIB->removeCommand('eshop', 'show'); $ULIB->removeCommand('eshop', 'search'); $ULIB->removeCommand('eshop', 'stocks'); $ULIB->removeCommand('eshop', 'compare'); $ULIB->removeCommand('eshop', 'currency'); $ULIB->removeCommand('eshop', 'yml_export'); $ULIB->removeCommand('eshop', 'ebasket_list'); $ULIB->removeCommand('eshop', 'order'); $ULIB->removeCommand('eshop', 'payment'); $ULIB->saveConfig(); $UHANDLER = new urlHandler(); $UHANDLER->loadConfig(); $UHANDLER->removePluginHandlers('eshop', ''); $UHANDLER->removePluginHandlers('eshop', 'show'); $UHANDLER->removePluginHandlers('eshop', 'search'); $UHANDLER->removePluginHandlers('eshop', 'stocks'); $UHANDLER->removePluginHandlers('eshop', 'compare'); $UHANDLER->removePluginHandlers('eshop', 'currency'); $UHANDLER->removePluginHandlers('eshop', 'yml_export'); $UHANDLER->removePluginHandlers('eshop', 'ebasket_list'); $UHANDLER->removePluginHandlers('eshop', 'order'); $UHANDLER->removePluginHandlers('eshop', 'payment'); $UHANDLER->saveConfig(); }
function remove_gsmg_urls() { $ULIB = new urlLibrary(); $ULIB->loadConfig(); $ULIB->removeCommand('gsmg', ''); $ULIB->saveConfig(); $UHANDLER = new urlHandler(); $UHANDLER->loadConfig(); $UHANDLER->removePluginHandlers('gsmg', ''); $UHANDLER->saveConfig(); }