From db02992ee960e6e0e77125d3fe0a36735de26c07 Mon Sep 17 00:00:00 2001 From: Elias Fink Date: Wed, 25 Jun 2025 17:48:30 +0200 Subject: [PATCH] Added tools --- tools/discord-webhook.php | 40 +++++++++++++ tools/discord-widget.php | 29 ++++++++++ tools/index.php | 44 +++++++++++++++ tools/mail.php | 116 ++++++++++++++++++++++++++++++++++++++ tools/tools.css | 47 +++++++++++++++ 5 files changed, 276 insertions(+) create mode 100644 tools/discord-webhook.php create mode 100644 tools/discord-widget.php create mode 100644 tools/index.php create mode 100644 tools/mail.php create mode 100644 tools/tools.css diff --git a/tools/discord-webhook.php b/tools/discord-webhook.php new file mode 100644 index 0000000..6d6d632 --- /dev/null +++ b/tools/discord-webhook.php @@ -0,0 +1,40 @@ + + + Discord Webhook API + + + + + +
+ +

+
+ +

+
+ +

+ + + + + + + \ No newline at end of file diff --git a/tools/discord-widget.php b/tools/discord-widget.php new file mode 100644 index 0000000..5fc37f1 --- /dev/null +++ b/tools/discord-widget.php @@ -0,0 +1,29 @@ + + + + + Discord Widget – Tools – Elias Fink + + + + + + + + + + \ No newline at end of file diff --git a/tools/index.php b/tools/index.php new file mode 100644 index 0000000..28814ea --- /dev/null +++ b/tools/index.php @@ -0,0 +1,44 @@ + + + + + + + Tools – eliasfink.de + + + + + +

tools.eliasfink.de

+ + + + \ No newline at end of file diff --git a/tools/mail.php b/tools/mail.php new file mode 100644 index 0000000..f17dfe3 --- /dev/null +++ b/tools/mail.php @@ -0,0 +1,116 @@ + + + + + PHP Mail GUI – Elias Fink + + + + + + ' . nl2br ( htmlspecialchars ( $_POST['message'] ) ) . ''; + + $cc = filter_var ( $_POST['cc'], FILTER_SANITIZE_STRING ); + $bcc = filter_var ( $_POST['bcc'], FILTER_SANITIZE_STRING ); + $reply_to = filter_var ( $_POST['reply_to'], FILTER_SANITIZE_STRING ); + + $headers = 'MIME-Version: 1.0' . "\r\n" + .'Content-type: text/html; charset=utf-8' . "\r\n" + .'From: ' . $from_name . ' <' . $from_email . '>' . "\r\n" + .'Cc: ' . $cc . "\r\n" + .'Bcc: ' . $bcc . "\r\n" + .'Reply-To: ' . $reply_to . "\r\n"; + + if ( mail ( $to, $subject, $message, $headers ) ) { + + echo '

Nachricht erfolgreich gesendet

'; + echo '

Von: ' . $from_name . ' <' . $from_email . '>

'; + echo '

An: ' . $to . '

'; + echo '

Betreff: ' . $subject . '

'; + echo '

Nachricht:

' . $message; + echo '

Cc: ' . $cc . '

'; + echo '

Bcc: ' . $bcc . '

'; + echo '

Antwort an: ' . $reply_to . '

'; + + } else { + + echo '

Senden der Nachricht fehlgeschlagen

'; + + } + + } + + ?> + +
+ +
+ +
+ + + + +
+ + +
+
+ +
+
+ + +
+ +
+ + + +
+ + +
+ + + +
+ + + +
+ +
+ + + + \ No newline at end of file diff --git a/tools/tools.css b/tools/tools.css new file mode 100644 index 0000000..ef8e838 --- /dev/null +++ b/tools/tools.css @@ -0,0 +1,47 @@ +body { + margin: 0; + color: #fff; + overflow: hidden; + text-align: center; + font-family: "Montserrat"; + background-color: #001A33; +} + +#container { + top: 50%; + left: 50%; + position: absolute; + transform: translate(-50%, -50%); +} + +#title { + margin-top: 0; + font-size: 40px; + font-weight: 300; + margin-bottom: 50px; +} + +#title span { + color: #168eff; +} + +.button { + color: #fff; + cursor: pointer; + font-size: 18px; + background: none; + transition: 0.25s; + padding: 15px 30px; + border-radius: 5px; + border: 2px solid #fff; +} + +.button:hover { + color: #001A33; + background-color: #fff; +} + +.button a { + color: inherit; + text-decoration: none; +} \ No newline at end of file