diff --git a/README.md b/README.md index 3de040b4..7029eb8a 100644 --- a/README.md +++ b/README.md @@ -1,76 +1,36 @@ [Bludit](https://www.bludit.com/) ================================ -**Simple**, **Fast** and **Flexible** CMS. -Bludit is a web application to build your own **website** or **blog** in seconds, it's completely **free and open source**. Bludit uses files in JSON format to store the content, you don't need to install or configure a database. You only need a web server with PHP support. - -Bludit is a **Flat-File** CMS. - -Bludit supports **Markdown** and **HTML code** for the content. - -- [Plugins](https://plugins.bludit.com) -- [Themes](https://themes.bludit.com) -- [Documentation](https://docs.bludit.com) -- Help and Support [Forum](https://forum.bludit.org) and [Chat](https://gitter.im/bludit/support) - -Follow Bludit ---------------- - -- [Blog](https://blog.bludit.com) -- [Twitter](https://twitter.com/bludit) -- [Facebook](https://www.facebook.com/bluditcms) -- [Youtube](https://www.youtube.com/c/Bluditcms) - -Requirements ------------- - -You just need a web server with PHP support. - -- PHP v5.6 or higher version. -- PHP [mbstring](http://php.net/manual/en/book.mbstring.php) module for full UTF-8 support. -- PHP [gd](http://php.net/manual/en/book.image.php) module for image processing. -- PHP [dom](http://php.net/manual/en/book.dom.php) module for DOM manipulation. -- PHP [json](http://php.net/manual/en/book.json.php) module for JSON manipulation. -- Supported web servers: - * Bludit supports almost every web server - * PHP Built-in web server (`php -S localhost:8000`) - -Installation Guide ------------------- - -1. Download the latest version from the official page. [Bludit.com](https://www.bludit.com) -2. Extract the zip file into a directory like `bludit`. -3. Upload the directory `bludit` to your web server or hosting. -4. Visit your domain https://example.com/bludit/ -5. Follow the Bludit Installer to configure the website. - -Docker Image ------------- -Official Docker image on Docker Hub. -- https://hub.docker.com/r/bludit/docker/ - -Also we provide Kubernetes deployments yaml files. -- https://github.com/bludit/docker/tree/master/kubernetes - -Support Bludit! +Dear developers ------- -Bludit is open soruce and free, but if you really like the project and is useful for your you can contribute in [Patreon](https://www.patreon.com/bePatron?c=921115&rid=2458860), also for the supporters we provide Bludit PRO. -[](https://pro.bludit.com/) +## Frameworks and libraries included in Bludit v4 +Bludit will include the following frameworks, please use them with they native functions. -### Platinum sponsors in Patreon! +Frontend: +- Bootstrap v5. +- Boostrap icons. +- jQuery, you can use vanilla Javascript but for events in the views please use jQuery. -- Clickwork -- KreativMind -- Curious Activity -- Matěj Adámek -- pytesNET +Backend: +- `bl-kernel/functions.php` provides the global function for Bludit; These functions provide connectivity between different objects and databases; These functions should provide different checks and logic before add/edit/delete into the databases. +- PHP SimpleImage for processing images: https://github.com/claviska/SimpleImage -### Golden sponsors in Patreon! +## Comments for functions and methods +Please add the following structure commenting what it does the function, also add the stamp `=== Bludit v4` so I know what is new. +``` +/* Delete a page === Bludit v4 -- Thomas Kreth -- Christian + @key string Array => (key: string) + @return string/bool Returns the page key on successful delete, FALSE otherwise +*/ +function deletePage($args) { + ... +} +``` -License +## Controller and views structure +Please follow complete example for + +Documentation for Bludit v4 ------- -Bludit is open source software licensed under the [MIT license](https://tldrlegal.com/license/mit-license). diff --git a/bl-kernel/admin/controllers/plugins-settings.php b/bl-kernel/admin/controllers/plugins-settings.php index 97931461..1d0d7981 100644 --- a/bl-kernel/admin/controllers/plugins-settings.php +++ b/bl-kernel/admin/controllers/plugins-settings.php @@ -29,5 +29,14 @@ if (!method_exists($plugin, 'form')) { Redirect::page('plugins'); } +// Save the settings +if ($_SERVER['REQUEST_METHOD'] == 'POST') { + $plugin->post(); + $syslog->add(array( + 'dictionaryKey'=>'plugin-configured', + 'notes'=>$plugin->name() + )); +} + // HTML