Add temporary error logging and debugging output in index.php and register.php

This commit is contained in:
Torsten Schulz (local)
2026-03-16 22:08:06 +01:00
parent dd8ce88556
commit e88e5477de
2 changed files with 11 additions and 0 deletions

View File

@@ -1,4 +1,10 @@
<?php
// Temporäre Fehlerausgabe und Logging für Debugzwecke
ini_set('display_errors', '0');
ini_set('log_errors', '1');
ini_set('error_reporting', (string)E_ALL);
ini_set('error_log', __DIR__ . '/php-error.log');
if (isset($_REQUEST['q']) && substr($_REQUEST['q'], -4) === '.php') {
$url = substr($_REQUEST['q'], 0, -4);
header('Location: ' . $url, true, 301);