$mid = $system->cleanVars($_POST, 'mid', 0, 'int'); $module_handler = $xoops->getHandlerModule(); $module = $module_handler->getById($mid); // Call Header $xoops->header('admin:system/system_modules_logger.tpl'); // Define Stylesheet $xoops->theme()->addStylesheet('modules/system/css/admin.css'); // Define Breadcrumb and tips $admin_page = new \Xoops\Module\Admin(); $admin_page->addBreadcrumbLink(SystemLocale::CONTROL_PANEL, \XoopsBaseConfig::get('url') . '/admin.php', true); $admin_page->addBreadcrumbLink(SystemLocale::EXTENSIONS_ADMINISTRATION, $system->adminVersion('extensions', 'adminpath')); $admin_page->addBreadcrumbLink(XoopsLocale::A_UNINSTALL); $admin_page->renderBreadcrumb(); $ret = array(); $system_extension = new SystemExtension(); $ret = $system_extension->uninstall($module->getVar('dirname')); $xoops->tpl()->assign('module', $ret); if ($ret) { $xoops->tpl()->assign('from_title', SystemLocale::EXTENSIONS_ADMINISTRATION); $xoops->tpl()->assign('from_link', $system->adminVersion('extensions', 'adminpath')); $xoops->tpl()->assign('title', XoopsLocale::A_UNINSTALL); $xoops->tpl()->assign('log', $system_extension->trace); } $folder = array(1, 2, 3); $system->cleanCache($folder); //Set active modules in cache folder $xoops->setActiveModules(); // Call Footer $xoops->footer(); break; case 'update':