Всего: 114 Коммитов в репозитории |
Отфильтровано: 114 Коммиты |
Страница: 2 / 12
Эта неделя (17.12.2025)
Refactor admin modules: Replace checkConfigFile with checkPerms
Update multiple admin modules to use modern checkPerms() function:
• categories.php: Replace checkConfigFile with checkPerms
• changelog.php: Replace checkConfigFile with checkPerms
• comments.php: Replace checkConfigFile with checkPerms
• editor.php: Replace checkConfigFile with checkPerms
• favorites.php: Replace checkConfigFile with checkPerms
• fields.php: Replace checkConfigFile with checkPerms
• lang.php: Replace checkConfigFile with checkPerms
• monitor.php: Replace checkConfigFile with checkPerms
• privat.php: Replace checkConfigFile with checkPerms
• ratings.php: Replace checkConfigFile with checkPerms
• referers.php: Replace checkConfigFile with checkPerms
• replace.php: Replace checkConfigFile with checkPerms
• rss.php: Replace checkConfigFile with checkPerms
• security.php: Replace checkConfigFile with checkPerms
• sitemap.php: Replace checkConfigFile with checkPerms
• users.php: Replace checkConfigFile with checkPerms
Follow SLAED 6.3 refactoring standards for config file validation.
• categories.php: Replace checkConfigFile with checkPerms
• changelog.php: Replace checkConfigFile with checkPerms
• comments.php: Replace checkConfigFile with checkPerms
• editor.php: Replace checkConfigFile with checkPerms
• favorites.php: Replace checkConfigFile with checkPerms
• fields.php: Replace checkConfigFile with checkPerms
• lang.php: Replace checkConfigFile with checkPerms
• monitor.php: Replace checkConfigFile with checkPerms
• privat.php: Replace checkConfigFile with checkPerms
• ratings.php: Replace checkConfigFile with checkPerms
• referers.php: Replace checkConfigFile with checkPerms
• replace.php: Replace checkConfigFile with checkPerms
• rss.php: Replace checkConfigFile with checkPerms
• security.php: Replace checkConfigFile with checkPerms
• sitemap.php: Replace checkConfigFile with checkPerms
• users.php: Replace checkConfigFile with checkPerms
Follow SLAED 6.3 refactoring standards for config file validation.
Remove remaining deprecated stat module info files
• Delete admin/info/stat-en.html
• Delete admin/info/stat-fr.html
• Delete admin/info/stat-pl.html
• Delete admin/info/stat-ru.html
• Delete admin/info/stat-uk.html
Complete cleanup of old stat module documentation.
All files replaced by statistic-*.html equivalents.
• Delete admin/info/stat-fr.html
• Delete admin/info/stat-pl.html
• Delete admin/info/stat-ru.html
• Delete admin/info/stat-uk.html
Complete cleanup of old stat module documentation.
All files replaced by statistic-*.html equivalents.
Remove deprecated stat module info files
• Delete admin/info/stat-en.html
• Delete admin/info/stat-fr.html
• Delete admin/info/stat-pl.html
• Delete admin/info/stat-ru.html
• Delete admin/info/stat-uk.html
These files were replaced by statistic-*.html files in previous commit.
• Delete admin/info/stat-fr.html
• Delete admin/info/stat-pl.html
• Delete admin/info/stat-ru.html
• Delete admin/info/stat-uk.html
These files were replaced by statistic-*.html files in previous commit.
Refactor core functions for statistic module support
• Rename create_stat() to createstat() in core/core.php following SLAED naming
• Fix getStatistic() in core/admin.php:
- Add missing global $confst declaration
- Remove duplicate config include
- Update file paths: .txt to .log extensions
- Update directory: /stat/ to /statistic/
- Add file() false checks with fallback to empty array
- Fix image save path to use COUNTER_DIR constant
- Add imagedestroy() call for proper resource cleanup
• Fix PHP 8.4 TypeError by validating file() return values
• Ensure compatibility with renamed statistic module
• Fix getStatistic() in core/admin.php:
- Add missing global $confst declaration
- Remove duplicate config include
- Update file paths: .txt to .log extensions
- Update directory: /stat/ to /statistic/
- Add file() false checks with fallback to empty array
- Fix image save path to use COUNTER_DIR constant
- Add imagedestroy() call for proper resource cleanup
• Fix PHP 8.4 TypeError by validating file() return values
• Ensure compatibility with renamed statistic module
Refactor: Rename stat module to statistic
• Rename admin/modules/stat.php to statistic.php
• Rename config/config_stat.php to statistic.php
• Rename stat.png to statistic.png in admin images
• Rename info documentation files: stat-*.html to statistic-*.html
• Follow SLAED naming convention (lowercase without underscores)
• Update all function names to lowercase format (navi, conf, save, info)
• Replace $admin_file with $aroute throughout
• Add proper type hints and return types for PHP 8.4
• Fix PHP 8.4 TypeError: Add checks for opendir() and file() return values
• Modernize all getVar() calls with proper type validation
• Add conditional file parameter handling in image URLs
• Rename config/config_stat.php to statistic.php
• Rename stat.png to statistic.png in admin images
• Rename info documentation files: stat-*.html to statistic-*.html
• Follow SLAED naming convention (lowercase without underscores)
• Update all function names to lowercase format (navi, conf, save, info)
• Replace $admin_file with $aroute throughout
• Add proper type hints and return types for PHP 8.4
• Fix PHP 8.4 TypeError: Add checks for opendir() and file() return values
• Modernize all getVar() calls with proper type validation
• Add conditional file parameter handling in image URLs
Refactor sitemap.php: Modernize to SLAED 6.3 standards
Complete modernization of sitemap admin module following SLAED naming
conventions and PHP 8.4+ standards.
Function renames (brevity standard):
• sitemap_navi() → navi()
• sitemap_xsl() → xsl()
• sitemap_conf() → conf()
• sitemap_save() → save()
• sitemap_info() → info()
Additional changes:
• Extract add() function from inline switch case
• Extract xslsave() function from inline switch case
• Replace $admin_file with $aroute (10 occurrences)
• Update navigation ops to use name=sitemap&op= format
• Add exit; after all header() redirects
• Replace end_chmod() with checkConfigFile()
• Replace filter_input() with getVar('post', 'template', 'raw')
• Modernize switch to compact format with default case
• Update all op parameter values (remove sitemap_ prefix)
• Remove commented permission check code
conventions and PHP 8.4+ standards.
Function renames (brevity standard):
• sitemap_navi() → navi()
• sitemap_xsl() → xsl()
• sitemap_conf() → conf()
• sitemap_save() → save()
• sitemap_info() → info()
Additional changes:
• Extract add() function from inline switch case
• Extract xslsave() function from inline switch case
• Replace $admin_file with $aroute (10 occurrences)
• Update navigation ops to use name=sitemap&op= format
• Add exit; after all header() redirects
• Replace end_chmod() with checkConfigFile()
• Replace filter_input() with getVar('post', 'template', 'raw')
• Modernize switch to compact format with default case
• Update all op parameter values (remove sitemap_ prefix)
• Remove commented permission check code
Add 'raw' filter type to getVar() for unfiltered admin input
Extends getVar() with a new 'raw' type that returns values completely
unfiltered (no trim, no sanitization). This is needed for admin-only
use cases like XML/XSL template editing where any modification would
corrupt the data.
Changes:
• Add 'raw' => fn($v) => $v filter to getVar()
• Update function documentation
Security: Safe for admin-only contexts with proper access controls
unfiltered (no trim, no sanitization). This is needed for admin-only
use cases like XML/XSL template editing where any modification would
corrupt the data.
Changes:
• Add 'raw' => fn($v) => $v filter to getVar()
• Update function documentation
Security: Safe for admin-only contexts with proper access controls
Эта неделя (16.12.2025)
Refactor: Standardize language file names to ISO 639-1 codes
Renamed language files for consistency:
• lang-english.php → en.php
• lang-german.php → de.php
• lang-french.php → fr.php
• lang-polish.php → pl.php
• lang-russian.php → ru.php
• lang-ukrainian.php → uk.php
Applied to:
• modules/account/language/ (6 files)
• modules/news/language/ (6 files)
• modules/news/admin/info/ (6 files)
Total: 18 files renamed
Naming convention follows ISO 639-1 standard (two-letter language codes)
• lang-english.php → en.php
• lang-german.php → de.php
• lang-french.php → fr.php
• lang-polish.php → pl.php
• lang-russian.php → ru.php
• lang-ukrainian.php → uk.php
Applied to:
• modules/account/language/ (6 files)
• modules/news/language/ (6 files)
• modules/news/admin/info/ (6 files)
Total: 18 files renamed
Naming convention follows ISO 639-1 standard (two-letter language codes)
Refactor database.php: Replace $admin_file with $aroute
Global variable standardization:
• Line 16: global declaration updated
• Line 107: URL construction updated
• Line 111: URL construction updated
Consistent with all other admin modules (3 changes total)
• Line 16: global declaration updated
• Line 107: URL construction updated
• Line 111: URL construction updated
Consistent with all other admin modules (3 changes total)
Refactor security.php: Rename functions to SLAED standard
Function naming modernization:
• file_view() → fileview()
• block_save() → blocksave()
• pass_save() → passsave()
• conf_save() → confsave()
Updated 13 references across:
• 4 function definitions
• 4 switch cases
• 6 form op parameters
• 2 URL op parameters
Code optimization:
• Lines 294-295: Combine getVar() with multiplication
Old: $sess_d = getVar(...); $sess_d = ($sess_d) ? $sess_d * 60 : 86400;
New: $sess_d = getVar('post', 'sess_d', 'num', 1440) * 60;
• Mathematically equivalent: 1440 * 60 = 86400
• file_view() → fileview()
• block_save() → blocksave()
• pass_save() → passsave()
• conf_save() → confsave()
Updated 13 references across:
• 4 function definitions
• 4 switch cases
• 6 form op parameters
• 2 URL op parameters
Code optimization:
• Lines 294-295: Combine getVar() with multiplication
Old: $sess_d = getVar(...); $sess_d = ($sess_d) ? $sess_d * 60 : 86400;
New: $sess_d = getVar('post', 'sess_d', 'num', 1440) * 60;
• Mathematically equivalent: 1440 * 60 = 86400





