Журнал изменений
Всего: 1040 Доступных коммитов |
Отфильтровано: 1040 Коммиты |
Страница: 99 / 104
04.12.2025
Refactor: blocks.php - Operation names fully consistent
- Navigation: op=new → op=add, op=file → op=fileadd
- Switch: case 'new' → case 'add', case 'file' → case 'fileadd'
- Switch: case 'add' → case 'addsave' (save operation)
- Formular: op=add → op=addsave (save action)
- Alle Operationen entsprechen jetzt exakt den Funktionsnamen
Refactor: blocks.php - Switch-cases reorganized & function names consistent
- bfile() → filecode()
- bfilesave() → filecodesave()
- Switch-Cases grouped and commented by logic
- Alle Formular-Referenzen aktualisiert
Fix: blocks.php - Fatal error fixed (file → fileadd)
file() is a PHP built-in function and cannot be overridden.
Refactor: blocks.php - Simplify navigation function (blocksNavi → navi)
Refactor: blocks.php - Function renaming (newBlock → add, add → addsave)
Fix: blocks.php - Parse error fixed (new → newBlock)
Problem:
- Parse error: "new" ist ein reserviertes PHP-Keyword
- Funktion new() konnte nicht deklariert werden
Lösung:
- Funktion new() → newBlock()
- Switch case angepasst: case 'new': newBlock();
- Navigation bleibt: name=blocks&op=new (nur interne Funktion renamed)
Optimize: blocks.php - Navigation simplified
Änderung:
- Navigation: name=blocks&op=show → name=blocks (use default case)
Alle Redirects waren bereits korrekt mit explizitem &op=show. Keine weiteren Änderungen nötig - Datei war bereits sauber strukturiert.
Refactor: admins.php - All inconsistencies resolved
Änderungen:
- Funktion navi() → adminsNavi() (consistent with other modules)
- Navigation: name=admins&op=show → name=admins (use default case)
- Formular: Redundant Hidden-Field "name" removed (in Action-URL)
- Funktion getAdminInfo() → adm_info() (konsistent)
- Redirects: Explicit &op=show added for clarity
All function calls updated:
- admins() Zeile 18
- add() Zeile 54
- info() Zeile 167
Fix: Name conflict resolved
Probleme behoben:
admins.php: Feldname 'name' collided with Modul-Parameter 'name=admins'
- POST-Feld von 'name' in 'adminname' renamed
- Hidden fields 'name=admins' und 'op=save' added
- Neue Admins could not be created (only editing worked)
lang.php: Funktion file() collided with PHP Built-in Funktion
- Funktion file() in edit() renamed
- Switch-case entsprechend angepasst
Fix: Duplicate panel display fixed
Problem:
- Admin-Panel wurde doppelt angezeigt (in Sidebar und Hauptbereich)
- Jede Modul-Navi-Funktion rief panel() auf
Lösung:
- Removed all panel() calls from navigation functions (26 modules)
- panel() wird jetzt nur noch vom Routing in admin.php aufgerufen
- Panel erscheint nur auf Admin-Startseite (admin.php without Parameter)
Geänderte Module: admins, blocks, categories, changelog, comments, config, database, editor, favorites, fields, groups, lang, messages, modules, newsletter, privat, ratings, referers, replace, rss, security, sitemap, stat, template, uploads, users