Ejemplo n.º 1
0
 public function writeHTA()
 {
     return GWF_ModuleLoader::reinstallHTAccess();
 }
Ejemplo n.º 2
0
 /**
  * Create .htaccess
  */
 public static function wizard_8()
 {
     if (false !== ($error = self::wizard_check_cfg_quick())) {
         return $error;
     }
     $back = self::wizard_h2('8');
     if (false !== GWF_ModuleLoader::reinstallHTAccess() && false !== GWF_HTAccess::installCountryRewrites()) {
         return self::wizard_message('msg_htaccess') . self::wizard_btn('9');
     }
     return self::wizard_error('err_htaccess');
 }
Ejemplo n.º 3
0
 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')));
 }