index.php aktualisiert
This commit is contained in:
39
index.php
39
index.php
@ -48,7 +48,7 @@
|
|||||||
display: block; /* Sicherstellen, dass es wie ein Block-Element behandelt wird */
|
display: block; /* Sicherstellen, dass es wie ein Block-Element behandelt wird */
|
||||||
margin-bottom: 15px; /* Abstand nach unten */
|
margin-bottom: 15px; /* Abstand nach unten */
|
||||||
}
|
}
|
||||||
button[type="submit"] { /* Angepasst von input[type="submit"] */
|
button[type="submit"], .back-button { /* Angepasst von input[type="submit"] */
|
||||||
background-color: #a81212;
|
background-color: #a81212;
|
||||||
color: white;
|
color: white;
|
||||||
padding: 12px 20px;
|
padding: 12px 20px;
|
||||||
@ -58,8 +58,12 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
|
text-decoration: none; /* Für den Button-Link */
|
||||||
|
display: block; /* Für den Button-Link */
|
||||||
|
text-align: center; /* Für den Button-Link */
|
||||||
|
box-sizing: border-box; /* Für den Button-Link */
|
||||||
}
|
}
|
||||||
button[type="submit"]:hover {
|
button[type="submit"]:hover, .back-button:hover {
|
||||||
background-color: #8f0e0e;
|
background-color: #8f0e0e;
|
||||||
}
|
}
|
||||||
.result-section { /* Container für die Ergebnisse */
|
.result-section { /* Container für die Ergebnisse */
|
||||||
@ -142,15 +146,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>E-Mail Analyse-Tool</h1>
|
<h1>E-Mail Analyse-Tool</h1>
|
||||||
<form action="process_email.php" method="post" enctype="multipart/form-data">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="email_file">Wählen Sie eine E-Mail-Datei zum Hochladen aus (.eml oder .txt):</label>
|
|
||||||
<input type="file" id="email_file" name="email_file" accept=".eml,.txt" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button type="submit">E-Mail analysieren</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$errors = []; // Initialisiere $errors am Anfang, um es immer verfügbar zu haben
|
$errors = []; // Initialisiere $errors am Anfang, um es immer verfügbar zu haben
|
||||||
@ -200,11 +195,33 @@
|
|||||||
}
|
}
|
||||||
echo '</div>'; // Ende result-section
|
echo '</div>'; // Ende result-section
|
||||||
|
|
||||||
|
// Zurück-Button nach den Ergebnissen
|
||||||
|
echo '<div class="form-group" style="margin-top: 30px;">';
|
||||||
|
echo '<a href="index.php" class="back-button">Neue Analyse starten</a>';
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
echo '<div class="error"><p>Fehler beim Laden der Analyse-Ergebnisse.</p></div>';
|
echo '<div class="error"><p>Fehler beim Laden der Analyse-Ergebnisse.</p></div>';
|
||||||
}
|
}
|
||||||
} elseif (isset($_GET['error'])) {
|
} elseif (isset($_GET['error'])) {
|
||||||
echo '<div class="error"><p>' . htmlspecialchars($_GET['error']) . '</p></div>';
|
echo '<div class="error"><p>' . htmlspecialchars($_GET['error']) . '</p></div>';
|
||||||
|
// Auch hier den Zurück-Button anzeigen, falls ein Fehler auftritt
|
||||||
|
echo '<div class="form-group" style="margin-top: 30px;">';
|
||||||
|
echo '<a href="index.php" class="back-button">Zurück zum Upload</a>';
|
||||||
|
echo '</div>';
|
||||||
|
} else {
|
||||||
|
// Zeige das Upload-Formular, wenn keine Ergebnisse oder Fehler vorliegen
|
||||||
|
?>
|
||||||
|
<form action="process_email.php" method="post" enctype="multipart/form-data">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email_file">Wählen Sie eine E-Mail-Datei zum Hochladen aus (.eml oder .txt):</label>
|
||||||
|
<input type="file" id="email_file" name="email_file" accept=".eml,.txt" required>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<button type="submit">E-Mail analysieren</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user