Flatboard 3.6: Akita

Fred
Flatboard 3.6: Akita
Fred Thursday 13th February 2025, 16:56:51

image
Dont forget to backup first and update!

=== 3.6 - Release date: 2025-07-18 ===
I'll optimize the Unpack & Flatboard code for PHP 8.4, incorporating modern PHP features, improved type safety, and better performance. Key changes include:
- Refactoring class
- Using typed properties and return types
- Replacing deprecated functions and syntax
- Using arrow functions where appropriate
- Simplifying language detection
- Improving error handling with exceptions
- Using modern array syntax and string functions
- Removing jQuery and using vanilla JavaScript (Unpack script)
- Update Russian lang pack(Thank PaulBid)
RSS Optimizations Applied

1. Object-Oriented Structure
  • Created AtomFeedGenerator class that encapsulates all logic
  • Separated responsibilities with specialized methods
  • Better code reusability and maintainability


2. Performance Improvements
  • Result Limitation: Added default limit of 20 entries to prevent feed overload
  • HTTP Caching: Added cache headers (5 minutes) to reduce server load
  • Loop Optimization: Used array_slice() to limit processing


3. Enhanced Security
  • Improved XML Escaping: Using ENT_XML1 | ENT_QUOTES for better security
  • Error Handling: Added global try-catch with error logging
  • Data Validation: Additional checks before processing


4. Readability and Maintenance
  • Constants: Defined constants for repeated values
  • Short Methods: Split into specialized methods under 20 lines
  • Explicit Naming: More descriptive method and variable names
  • Documentation: PHPDoc comments for each method


5. Specific Optimizations
  • XML Generation: Used heredoc for better readability
  • Reduced DB Calls: Cached results in local variables
  • Empty Case Handling: Specialized methods for empty feeds


6. Robustness
  • Null Checks: Systematic validation before using data
  • Error Management: Default return values in case of issues
  • Logging: Error recording for debugging purposes


=== 3.5 - Release date: 2025-02-13 ===
🐛 Cross-Site Scripting (XSS) - implementing a Content Security Policy to add an additional layer of security against XSS attacks. (Thank Gavin)
🐛 Ensure CHARSET is defined in HTMLForm Class.
🐛 Revised the Trip function by adding additional security checks in HTMLForm Class. (Thank Gavin)
🐛 Securing Values in HTMLForm Class.
🐛 Check user password is not empty in User::login Class.
[+] 💢Refactoring class code: Utils, flatDB, Paginate, Asset, Captcha, Plugin and User.
[+] 💢Added a method to delete the flatboard_trip cookie by setting an expiration in the past for best practice.
[+] 💢Added a second parameter to uniqid() to get a more precise unique string, which improves token security. (CSRF.lib.php)
[+] 💢Added pagination in plugins list page on the top.
🐛 config.php, search.php : Checks the existence of variables and array keys before using them, avoiding null access errors.

Thank you to these Flatboard contributors (Language pack, plugins, feedbacks...).

Last modified by Fred on Sunday 31st August 2025, 23:03:00
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

Replies 3
PAULBID
PAULBID@136d1d75  Sunday 4th May 2025, 19:13:15

Hello @Fred, I'm Russian translator (ex. red line).
Please add a full translation into Russian, for the forum itself and for all plugins. (full translation for v3.5).

The archive contains ONLY language files. Language files of other languages ​​(files not with Russian translation) are neatly formatted, but not changed in content.

https://www.dropbox.com/scl/fi/01495hmzgi5b30bi8j0dw/RU_flatboard_3.5.zip?rlkey=00mq3ng19gmlbw7eso0fed630&dl=0

Fred
Fred  Thursday 8th May 2025, 17:42:36

@PAULBID Thank you, I will update the archive with your translation soon.
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

Fred
Fred  Friday 18th July 2025, 16:41:09

Flatboard 3.6 Update Announcement
We are thrilled to announce the release of Flatboard 3.6 (Build: 2025-07-18, bringing exciting improvements and optimizations to enhance your experience with the Flatboard platform!
What's New in Flatboard 3.6?

Improved Unpacking Script: The updated index.php now features a streamlined unpacking process for flatboard.zip, with robust error handling and retry mechanisms to ensure reliable extraction and cleanup.
PHP 8.4 Compatibility: Fully optimized for PHP 8.4, with strict typing and modern error reporting to catch all warnings, notices, and deprecations.
Enhanced UI: The modern interface includes a sleek card layout, smooth animations (button transitions, progress bar), and multilingual support for English, French, Russian, and Chinese.
Optimized Performance: Minified CSS and JavaScript reduce page load times, complemented by an updated .htaccess for compression and browser caching.
Robust Error Handling: Comprehensive logging to error.log ensures easier debugging, with detailed messages for file permission issues or extraction failures.

image

How to Update

Backup Your Data: Before updating, back up your existing Flatboard installation and data.
Download Flatboard 3.6: Get the new flatboard.zip and index.php from flatboard.org.
Replace Files: Place flatboard.zip and the updated index.php in your web server directory.
Run the Unpacking Script: Access http://localhost/flatboard/index.php in your browser, select your language, and click "UNPACK" to extract the new version.
Verify Installation: Ensure the extraction completes successfully, and check error.log for any issues.

System Requirements

PHP: Version 8.4 or higher.
Required Modules: mbstring, json, gd, dom, zip.
Web Server: Apache with .htaccess support or PHP’s built-in server for testing.
Permissions: Ensure your web server has write access to the installation directory and error.log.

Troubleshooting
If you encounter issues:

Check error.log in your installation directory for detailed error messages.
Verify file permissions (grant "Full control" to the web server user).
Ensure Apache modules (mod_deflate, mod_headers, mod_expires) are enabled.
For support, visit the Flatboard Community Forum or contact us.

Thank you for using Flatboard! We’re excited to see how you leverage version 3.6 to create amazing experiences.
Flatboard TeamBuild: 2025-07-18

Last modified by Fred on Friday 18th July 2025, 17:01:00
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

Suggested Topics
30.2K 2
27.9K 2
SurveyBuilder-Admin
25.5K 0
Want to read more? Browse all categories or view latest topics.