87 Commits

Author SHA1 Message Date
stephan.kasdorf
a60ce90643 Use pathinfo() for file extension checks in module registry. 2026-02-18 17:08:18 +01:00
stephan.kasdorf
bb7a081a68 Restrict settings file processing to .ini files in module registry. 2026-02-18 14:19:53 +01:00
stephan.kasdorf
6e19fb6228 Add soft 404 error handling with errorController and template
Introduced `errorController` for handling unreachable pages with a soft 404 response. Added configurable error handling via `settings.development.ini` and implemented a new `error.tpl` template. Updated `dispatcher.php` to route non-existent pages to the error controller.
2025-12-16 14:19:42 +01:00
stephan.kasdorf
e4462e9402 Enhance IDb.php, pdo.php, and mysql.db.php with deleteRowById method for improved database handling. 2025-11-28 09:24:09 +01:00
stephan.kasdorf
ef6bce4002 Enhance formattributes.php and typeopenany.php with role attribute for improved functionality. 2025-10-13 14:14:44 +02:00
stephan.kasdorf
8688cdea12 Enhance typeopenany.php with new attributes for improved functionality. 2025-10-13 14:10:26 +02:00
stephan.kasdorf
0abbb49b80 Enhance formattributes.php with new attributes for improved functionality. 2025-10-13 12:27:59 +02:00
stephan.kasdorf
cd7c0f723a Enhance typeopenany.php with new attributes for improved functionality. 2025-10-10 13:50:23 +02:00
stephan.kasdorf
0791d99310 Enhance typeopenany.php with new attributes and update IForm.php for improved form handling. 2025-10-10 13:48:50 +02:00
stephan.kasdorf
69c0916809 Enhance typeopenany.php with new attributes and update IForm.php for improved form handling. 2025-10-10 13:46:49 +02:00
stephan.kasdorf
b131d5cacc Enhance typeopenany.php with new attributes and update router.php for SEO URL handling and improved URL parsing. 2025-09-29 13:39:18 +02:00
stephan.kasdorf
b550605bc2 Handle trailing URL segments in router
Added logic to handle single trailing URL segments in the router, ensuring non-numeric segments are added to the `$_REQUEST` array if not already present. Improved URL parsing for consistent request handling.
2025-08-29 14:15:16 +02:00
stephan.kasdorf
197cab3691 Add SEO-friendly URL handling in router.php
Introduced a `handleSeoUrls` method to support SEO-friendly URLs by transforming them into standard routing. Added validation for slugs, IDs, and potential actions to ensure proper parsing and prevent conflicts with existing routes. Enhanced overall routing functionality to support framework-wide SEO optimizations.
2025-08-20 11:39:27 +02:00
stephan.kasdorf
157016ff35 Add TypeSwitch class and enhance attribute handling
Introduced a new `TypeSwitch` class to manage input type switch fields for forms, allowing simplified creation of toggle switches or binary options. Enhanced attribute handling in `formattributes.php` to conditionally remove the `checked` attribute only if not explicitly specified. Updated framework to include the new `TypeSwitch` class.
2025-07-14 12:20:09 +02:00
stephan.kasdorf
17166b8b6c Merge remote-tracking branch 'origin/v1.0.1' into v1.0.1 2025-07-07 15:14:50 +02:00
stephan.kasdorf
523fb822ef Add null return type and handling in getRequest method
The `getRequest` method in `controller.php` now includes a nullable return type and additional checks for array key existence in the `$_REQUEST` array. This update ensures robust error handling and prevents undefined index notices.
2025-07-07 15:14:38 +02:00
Stephan Kasdorf
1d607d99f6 Merge pull request #20 from alllinux/v1.0.1-form-checkbox-disabled
V1.0.1-rc
2024-12-03 11:17:25 +01:00
stephan.kasdorf
be9d217732 Add return type and values for update methods.
The methods `updateRowByFieldWhere` and `updateColumnByFieldWhere` in `mysql.db.php` and `pdo.php` now have a `bool` return type and explicitly return the result of the database operations. This change improves code readability and enforces consistent function outputs, aiding in better error handling and debugging.
2024-12-03 11:12:24 +01:00
Stephan Kasdorf
a68a1970c8 Add encryption handling to updateRowById method
Extended the updateRowById method across mysql, pdo, and IDb to support encrypted fields. Updated the PDO update logic to conditionally encrypt data using DES_ENCRYPT when specified. This ensures sensitive data is managed securely during updates.
2024-10-25 13:59:41 +02:00
Stephan Kasdorf
f1ebcef60f Add 'disabled' option to typecheckbox and update README
Extended the typecheckbox element to include a 'disabled' attribute. Updated the README to provide details on new command-line switches for creating and deleting CMS pages. In preparation of the upcoming AI/CMS module.
2024-10-25 12:55:05 +02:00
stephan.kasdorf
bef8735c43 Changed Class reference and renamed Module.php file
The name of 'Module.php' file in 'core/c' directory has been renamed to lowercase 'module.php', ensuring consistency across all filenames. The code inside the file has been updated, replacing '__CLASS__' with 'get_called_class()', allowing the correct class scope to be referenced even in an inherited context and ensuring proper function of '_set' and '_get' methods.
2024-03-27 13:49:56 +01:00
stephan.kasdorf
e92091f235 Refactor and enhance database and form operations
Significant changes have been implemented in the database operations, particularly in update and insert functions, ensuring more stable and efficient handling of queries. Form capabilities have been enhanced by adding new attributes for processing decimal steps, further improving data input methods. This update also includes considerable refactoring and security enhancements in the PDO class.
2024-03-27 12:24:25 +01:00
stephan.kasdorf
a793f79798 Update database operations and form capabilities
Database operations have been redefined and additional functionality has been added for handling database queries. Functions for updating rows by ID and inserting array into table have been updated for better reliability. In addition, new form attributes for managing decimal steps have been added to enhance data input capabilities. Refactoring and security improvements have also been addressed in the PDO class.
2024-03-21 16:25:13 +01:00
stephan.kasdorf
a7ce13334c Add placeholder attribute to search form
A placeholder attribute has been added to the input type search in typesearch.php. This attribute allows a short hint, a word or a short phrase, to be displayed in the input field before the user enters a value. The change was made to enhance the user experience by providing contextual help in the search field.
2024-03-12 10:36:03 +01:00
stephan.kasdorf
c7f89194ea Replace DES_DECRYPT with AES_DECRYPT in auth.php
The decryption method used in the SQL query within auth.php has been changed. The outdated DES_DECRYPT was replaced with AES_DECRYPT to improve security. The change is expected to provide a more secure and reliable decryption process for user passwords.
2024-03-11 10:23:32 +01:00
stephan.kasdorf
16c1a08345 VERSION 1.0.0
Implement new auto class and refactor usages of deprecated autoloader

A new automatic class loading mechanism has been introduced (Auto), replacing the deprecated Autoloader. This refactoring includes updating directory paths, changing the ownership of directories, and modifying file content strings. The codebase has been scoured to replace all instances of the discontinued Autoloader with the new class/method calls.
2024-02-27 16:25:10 +01:00
Stephan Kasdorf
d885132629 v0.9.8 - minor bugfix in the auth method in the framework library, and some additions for the controller.php in order to handle sessions better. 2023-12-04 21:35:23 +01:00
Stephan Kasdorf
b1bded6101 Version 0.9.6 beta - added new form elements, also added a nibiru binary in order to create modules and plugins. 2023-04-03 21:13:03 +02:00
Stephan Kasdorf
fbe7f59697 Merge branch 'v0.9.5' of https://github.com/alllinux/Nibiru into v0.9.5 2021-05-19 19:58:21 +02:00
Stephan Kasdorf
5584070f4d Bugfixes and updates on the forms and database access as well as the pagination 2021-05-19 19:57:23 +02:00
Stephan Kasdorf
b78f0c54ca UPDATE FOR AUTOGENERATOR DATABASE NAMESPACES WITH - and _ 2021-05-06 11:44:49 +02:00
stephan
6af41552f0 Version 0.9.5 beta - made the module configurations environment possible, now the module configuration can also be different dependent on the APPLICATION_ENV, added a possible VALUE for a div layer so HTML code can also be added inside the form elements. 2020-12-17 21:23:09 +01:00
Stephan Kasdorf
c86b7de44d Version 0.9.5 beta - added 2020-11-12 21:12:09 +01:00
Stephan Kasdorf
b501ee2155 Version 0.9.5 beta - added more query options to the PDO adapter in order to also get associative arrays. 2020-11-07 19:02:54 +01:00
Stephan Kasdorf
0aaa7d57ee Version 0.9.5 beta - updated selectDatasetByFieldWhere with sort order and removed numeric array keys. 2020-11-06 22:19:13 +01:00
Stephan Kasdorf
790f79530e Version 0.9.5 beta - Updated the MySQL adapter in order to load complete result sets by where selection. 2020-11-06 17:34:36 +01:00
Stephan Kasdorf
935575dfb3 Version 0.9.5 beta - Autoloader Warning messages suppressed fix. 2020-11-05 18:45:03 +01:00
Stephan Kasdorf
02dde17ca8 Version 0.9.5 beta - Autoloader Warning messages suppressed fix. 2020-11-05 18:39:00 +01:00
Stephan Kasdorf
c0d510b614 Version 0.9.5 beta - Form update added placeholder for number to the attributes. 2020-11-05 15:27:29 +01:00
Stephan Kasdorf
2e5220c4fc Version 0.9.5 beta - Form update added onclick to the attributes in the button element. 2020-11-05 14:34:10 +01:00
Stephan Kasdorf
1d6f007fff Version 0.9.5 beta - bugfix for the PDO adapter in MySQL, now working correctly with all encodings. 2020-11-04 19:59:08 +01:00
Stephan Kasdorf
9070ec0dc8 Version 0.9.5 beta - added attributes max, min, step, onblur, onfocus to the form. 2020-11-04 19:42:22 +01:00
Stephan Kasdorf
7b71fba0d5 Version 0.9.5 beta - Core update fixed ? and / parameters for the url, now accepting with and without ending / also containing ? 2020-11-04 00:22:03 +01:00
Stephan Kasdorf
334588974a Version 0.9.5 beta - Core update removed dependencies for the Postgres to MySQL, since it made no sense, also removed the ODBC dependencies for MySQL since it made no sense, will be added to the current Nibiru core version v0.9.5. Also added the correct return types for the PDO adapter so it has code completion. 2020-10-29 22:27:40 +01:00
Stephan Kasdorf
dc848b4f8a Version 0.9.5 beta - added additional additional configuration to the view 2020-10-09 19:40:47 +02:00
Stephan Kasdorf
312ca6a776 Version 0.9.5 beta - added additional getSession to the controller, in order to have the direct access through the framework 2020-10-09 00:04:44 +02:00
Stephan Kasdorf
9e1ee98ff7 Version 0.9.5 beta - added additional json/application headers for a possible REST module 2020-10-01 00:06:10 +02:00
Stephan Kasdorf
47171d3fa6 Version 0.9.5 beta - added the user_id to the session, also renamed the session_id in order to make sense 2020-09-29 22:36:56 +02:00
Stephan Kasdorf
5f3c449123 Version 0.9.5 beta - fixed the checked attribute for radio buttons, also fixed the value field for the radio button 2020-09-29 22:23:16 +02:00
Stephan Kasdorf
419e047bc3 Version 0.9.5 beta - added form attribute disabled to the textfield 2020-09-29 20:43:08 +02:00