fix: RemoteCP CustomPoints PHP-Warnungen behoben (undefined constants)
Bare-constant-Zugriffe (pt_custom, pt_points, ...) in CustomPoints/index.php durch defined()-Prüfungen ersetzt, um PHP 7.2+ Warnungen zu vermeiden. Zusätzlich werden im Produktivmodus (PHP_DISPLAY_ERRORS=false) Warnungen und Notices in der PHP error_reporting unterdrückt. - Gepatchte index.php als assets/config/remotecp/plugins/CustomPoints/index.php - Dockerfile: COPY der gepatchten Datei statt fragiler sed-Patches - RunTrackmaniaServer.sh: Auto-Patch für bestehende Volumes beim Container-Start - error_reporting im Produktivmodus um ~E_WARNING & ~E_NOTICE ergänzt Closes #4
This commit is contained in:
@@ -70,6 +70,12 @@ RUN unzip /var/www/html/remoteCP_v4.0.3.5.zip -d /var/www/html \
|
||||
&& chmod -R 777 /var/www/html/remotecp/xml/settings \
|
||||
&& chown -R www-data:www-data /var/www/html/remotecp/
|
||||
|
||||
# Fix PHP-Warnungen in RemoteCP CustomPoints-Plugin (undefined constants)
|
||||
# RemoteCP nutzt bare constants (pt_custom, pt_points, ...), die in PHP 7.2+
|
||||
# Warnungen ausloesen. Das gepatchte Plugin nutzt stattdessen defined()-Pruefungen.
|
||||
COPY assets/config/remotecp/plugins/CustomPoints/index.php /var/www/html/remotecp/plugins/CustomPoints/index.php
|
||||
RUN chown www-data:www-data /var/www/html/remotecp/plugins/CustomPoints/index.php
|
||||
|
||||
# AdminServ- und RemoteCP-Dateien als Default-Template sichern (wird beim ersten Start ins Volume kopiert)
|
||||
RUN cp -a /var/www/html /opt/tmserver/default-controlpanel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user