noch mehr debugging
This commit is contained in:
@@ -2,22 +2,6 @@
|
|||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
//debugging
|
//debugging
|
||||||
if (isset($_GET["q"])) {
|
|
||||||
|
|
||||||
$controllerPath = dirname(__DIR__) . "/php/controller/search-results-controller.php";
|
|
||||||
|
|
||||||
if (file_exists($controllerPath)) {
|
|
||||||
// existierende datei wird eingebunden
|
|
||||||
include_once $controllerPath;
|
|
||||||
} else {
|
|
||||||
// anzeigen falls pfad falsch ist
|
|
||||||
echo "<div style='background: #fee2e2; color: #991b1b; padding: 15px; border: 2px solid #ef4444; margin-bottom: 20px; font-family: Arial;'>";
|
|
||||||
echo "<strong>PFAD-FEHLER:</strong> Der Controller wurde unter folgendem Pfad nicht gefunden:<br>";
|
|
||||||
echo "<code style='background:#fff; padding:2px 5px;'>" . htmlspecialchars($controllerPath) . "</code><br>";
|
|
||||||
echo "richtiger pfad name?";
|
|
||||||
echo "</div>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<pre style='background:#fff; color:#000; padding:10px; border:2px solid red; position:relative; z-index:9999;'>";
|
echo "<pre style='background:#fff; color:#000; padding:10px; border:2px solid red; position:relative; z-index:9999;'>";
|
||||||
echo "Aktuelle URL-Parameter (GET): "; print_r($_GET);
|
echo "Aktuelle URL-Parameter (GET): "; print_r($_GET);
|
||||||
echo "Aktueller Session-Inhalt (SESSION): "; print_r($_SESSION);
|
echo "Aktueller Session-Inhalt (SESSION): "; print_r($_SESSION);
|
||||||
|
|||||||
Reference in New Issue
Block a user