plugins->moduleInfo(My::id(), 'version'); static::$init = is_string($version) ? dcCore::app()->newVersion(My::id(), $version) : true; } return static::$init; } public static function process(): bool { if (!static::$init || is_null(dcCore::app()->blog)) { return false; } try { // Set settings $s = dcCore::app()->blog->settings->get(My::id()); $s->put('active', false, 'boolean', 'Enable plugin', false, false); $s->put('crypt', 'crypt_md5', 'string', 'Crypt algorithm', false, false); $s->put('message', 'Private space', 'String', 'Personalized message on Authentication popup', false, false); return true; } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); } return true; } }