- Info files: Language names standardized (english→en, german→de, etc.)
- blocks.php: Switch-Cases finalized and cleaned
- admin.php: Auto-discovery optimizations
- core.php: Admin functions improved
- 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
- bfile() → filecode()
- bfilesave() → filecodesave()
- Switch-Cases grouped and commented by logic
- Alle Formular-Referenzen aktualisiert
file() is a PHP built-in function and cannot be overridden.
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)
Ä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.
Änderungen: 1. Funktion navi() → adminsNavi() (consistent with other modules) 2. Navigation: name=admins&op=show → name=admins (use default case) 3. Formular: Redundant Hidden-Field "name" removed (in Action-URL) 4. Funktion getAdminInfo() → adm_info() (konsistent) 5. Redirects: Explicit &op=show added for clarity All function calls updated: - admins() Zeile 18 - add() Zeile 54 - info() Zeile 167
Probleme behoben: 1. 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) 2. lang.php: Funktion file() collided with PHP Built-in Funktion - Funktion file() in edit() renamed - Switch-case entsprechend angepasst





