Всего: 872 Доступных коммитов |
Отфильтровано: 872 Коммиты |
Страница: 79 / 88
15.12.2025
Update account and rss_info modules
- Update copyright year in modules/account/index.php
- Refactor modules/rss_info/index.php to use new config/rss.php and modernize code structure
Refactor RSS module and modernize config handling
- Rename config/config_rss.php to config/rss.php
- Modernize admin/modules/rss.php:
- Update navi() to accept extra param for correct tab handling
- Use getVar() for input sanitization in save()
- Match array assignment style in save() to other modules
- Use checkConfigFile() and setConfigFile() helpers
- Update inclusions of rss config in core/core.php, core/user.php, modules/account/index.php, and modules/rss_info/index.php to use new filename and CONFIG_DIR constant.
- Minor cleanup in other admin modules (replace.php, referers.php, comments.php) to ensure consistency in getVar usage.
Upload local files [SLAED-CMS-6.3]
Update: Add English commit message rule to git-rules.md
Update: Core, SQL and Language files
Refactor: template.php - Remove excessive whitespace
12.12.2025
Refactor: Optimize replace.php with modern patterns
Updated replace.php with comprehensive modernization:
- Updated copyright year to 2026
- Added require_once CONFIG_DIR at top for config loading
- Enhanced navi() function with legacy and extra parameters
- Modernized navigation ops with proper name=replace URLs
- Updated template functions to use array parameters
- Replaced end_chmod() with checkConfigFile() helper
- Complete rewrite of save() function using getVar() for input validation
- Implemented setConfigFile() for config writing (replacing manual file operations)
- Added global $confre variable handling
- Simplified and secured all user input handling
- Compact switch statement formatting
Refactor: Modernize replace.php admin module
11.12.2025
Refactor: Modernize admin modules and restructure config files
Admin Module Updates:
- Modernized categories.php, changelog.php, ratings.php, referers.php
- Applied consistent naming conventions and patterns
- Updated to use modern template functions
Config Restructuring:
- Renamed config files: config_.php → .php
- Moved config_ratings.php → ratings.php
- Moved config_referers.php → referers.php
- Moved config_replace.php → replace.php
- Improved config file organization
Core Updates:
- Updated core.php with modern patterns
- Enhanced searchbox template
Impact:
- Better file organization and naming consistency
- Improved maintainability across admin modules
- Cleaner config directory structure
Refactor: Modernize admin modules (modules, monitor, newsletter)
Admin Module Standardization:
- Renamed navigation functions:
moduleNavi()→navi() - Migrated from
$admin_fileto$arouteglobal variable - Added
(bool)$subtabtype-cast in navi() functions - Simplified function names:
newsletterAdd()→add(), etc.
SQL Security Improvements:
- Converted escaped quotes
\'1\'to integer literals1 - Fixed UPDATE/INSERT queries:
send = '0'→send = 0 - All SQL queries use Named Placeholders (
:id,:title, etc.)
Code Structure:
- Extracted switch-case inline code into separate functions
- Added
exit;after allheader()redirects - Simplified header URLs: removed redundant
&op=showparameters - Switch statements modernized:
case 'show'→default
Monitor Module Enhancement:
- Converted 600+ line HTML block to Heredoc syntax
- Pre-calculated all variables before Heredoc block
- Replaced
<?php echo $var; ?>with{$var}syntax - Improved code readability and maintainability
Rules Documentation:
- Updated Section 22: Admin-Module Konventionen
- Documented
$arouteusage pattern - Documented simplified header redirects with
exit; - Documented switch-case extraction pattern
Impact:
- Enhanced security with consistent SQL Prepared Statements
- Improved code consistency across all admin modules
- Better maintainability with standardized patterns
- Reduced code duplication and complexity