index.php aktualisiert
This commit is contained in:
50
index.php
50
index.php
@ -4,7 +4,6 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>E-Mail Analyse</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<style>
|
||||
/* CSS aus der Mehrwertsteuerrechner-Datei */
|
||||
body {
|
||||
@ -97,6 +96,24 @@
|
||||
border-color: #ffeeba;
|
||||
font-weight: bold;
|
||||
}
|
||||
.phishing-tendency {
|
||||
padding: 15px;
|
||||
margin-bottom: 20px;
|
||||
border-radius: 8px;
|
||||
font-size: 1.4em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
color: white;
|
||||
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
|
||||
}
|
||||
.phishing-tendency.red {
|
||||
background-color: #dc3545; /* Rot für Phishing */
|
||||
border: 1px solid #c82333;
|
||||
}
|
||||
.phishing-tendency.green {
|
||||
background-color: #28a745; /* Grün für keine Phishing-Tendenz */
|
||||
border: 1px solid #218838;
|
||||
}
|
||||
.full-email-preview {
|
||||
background-color: #f0f0f0;
|
||||
border: 1px solid #ccc;
|
||||
@ -136,16 +153,33 @@
|
||||
</form>
|
||||
|
||||
<?php
|
||||
// Initialisiere $errors am Anfang, um es immer verfügbar zu haben
|
||||
$errors = [];
|
||||
$errors = []; // Initialisiere $errors am Anfang, um es immer verfügbar zu haben
|
||||
|
||||
if (isset($_GET['result'])) {
|
||||
$result = json_decode(base64_decode($_GET['result']), true);
|
||||
|
||||
if ($result) {
|
||||
echo '<div class="result-section">';
|
||||
|
||||
// Phishing Tendenz Anzeige ganz oben
|
||||
$tendencyClass = $result['is_phishing_tendency'] ? 'red' : 'green';
|
||||
$tendencyText = $result['is_phishing_tendency'] ? 'Phishing-Tendenz: HOCH' : 'Phishing-Tendenz: GERING';
|
||||
echo '<div class="phishing-tendency ' . $tendencyClass . '">' . $tendencyText . '</div>';
|
||||
|
||||
echo '<h2>Analyse-Ergebnisse:</h2>';
|
||||
|
||||
echo '<h3>Phishing-Prüfung (Details):</h3>';
|
||||
echo '<div class="phishing-section">';
|
||||
if (!empty($result['phishing_check'])) {
|
||||
foreach ($result['phishing_check'] as $warning) {
|
||||
echo '<p class="warning">' . htmlspecialchars($warning) . '</p>';
|
||||
}
|
||||
} else {
|
||||
echo '<p>Keine offensichtlichen Phishing-Merkmale erkannt (Basierend auf einfacher Prüfung).</p>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
|
||||
echo '<h3>Header-Daten:</h3>';
|
||||
if (!empty($result['headers'])) {
|
||||
echo '<div class="header-section">';
|
||||
@ -157,16 +191,6 @@
|
||||
echo '<p>Keine Header-Daten gefunden oder Fehler beim Parsen.</p>';
|
||||
}
|
||||
|
||||
echo '<h3>Phishing-Prüfung (Rudimentär):</h3>';
|
||||
echo '<div class="phishing-section">';
|
||||
if (!empty($result['phishing_check'])) {
|
||||
foreach ($result['phishing_check'] as $warning) {
|
||||
echo '<p class="warning">' . htmlspecialchars($warning) . '</p>';
|
||||
}
|
||||
} else {
|
||||
echo '<p>Keine offensichtlichen Phishing-Merkmale erkannt (Basierend auf einfacher Prüfung).</p>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
echo '<h3>Vollständige E-Mail (Vorschau):</h3>';
|
||||
if (isset($result['full_email_preview'])) {
|
||||
|
||||
Reference in New Issue
Block a user