Almost working index.php with DEBUG messages