index.php aktualisiert
This commit is contained in:
50
index.php
50
index.php
@ -4,7 +4,6 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>E-Mail Analyse</title>
|
<title>E-Mail Analyse</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
<style>
|
<style>
|
||||||
/* CSS aus der Mehrwertsteuerrechner-Datei */
|
/* CSS aus der Mehrwertsteuerrechner-Datei */
|
||||||
body {
|
body {
|
||||||
@ -97,6 +96,24 @@
|
|||||||
border-color: #ffeeba;
|
border-color: #ffeeba;
|
||||||
font-weight: bold;
|
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 {
|
.full-email-preview {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
@ -136,16 +153,33 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Initialisiere $errors am Anfang, um es immer verfügbar zu haben
|
$errors = []; // Initialisiere $errors am Anfang, um es immer verfügbar zu haben
|
||||||
$errors = [];
|
|
||||||
|
|
||||||
if (isset($_GET['result'])) {
|
if (isset($_GET['result'])) {
|
||||||
$result = json_decode(base64_decode($_GET['result']), true);
|
$result = json_decode(base64_decode($_GET['result']), true);
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
echo '<div class="result-section">';
|
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 '<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>';
|
echo '<h3>Header-Daten:</h3>';
|
||||||
if (!empty($result['headers'])) {
|
if (!empty($result['headers'])) {
|
||||||
echo '<div class="header-section">';
|
echo '<div class="header-section">';
|
||||||
@ -157,16 +191,6 @@
|
|||||||
echo '<p>Keine Header-Daten gefunden oder Fehler beim Parsen.</p>';
|
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>';
|
echo '<h3>Vollständige E-Mail (Vorschau):</h3>';
|
||||||
if (isset($result['full_email_preview'])) {
|
if (isset($result['full_email_preview'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user