private function onEnable($enum) { if (false !== ($error = GWF_Form::validateCSRF_WeakS())) { return GWF_HTML::error('', $error); } if ($this->mod->isCoreModule()) { return $this->module->error('err_disable_core_module'); } if (false === $this->mod->saveOption(GWF_Module::ENABLED, $enum === 'enabled')) { return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__)); } if (false === GWF_ModuleLoader::reinstallHTAccess()) { return GWF_HTML::err('ERR_GENERAL', array(__FILE__, __LINE__)); } return $this->module->message('msg_module_' . $enum, array($this->mod->display('module_name'))); }