summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGab <24553253+gabrix73@users.noreply.github.com>2025-01-04 01:48:09 +0100
committerGitHub <noreply@github.com>2025-01-04 01:48:09 +0100
commite1bb677f5da3123af11e1d977587eda6e7a9de9f (patch)
tree8bbdd722f98fe5b739c0bb46b48e698993a667a8
parent28f8ff2ec38f06ee7ed6430874fb9ad4df6164e3 (diff)
downloadyamnweb-e1bb677f5da3123af11e1d977587eda6e7a9de9f.tar.gz
yamnweb-e1bb677f5da3123af11e1d977587eda6e7a9de9f.tar.xz
yamnweb-e1bb677f5da3123af11e1d977587eda6e7a9de9f.zip
Add files via upload
-rw-r--r--index.php11
-rw-r--r--send_email.php6
2 files changed, 14 insertions, 3 deletions
diff --git a/index.php b/index.php
index 924d4b3..b90d730 100644
--- a/index.php
+++ b/index.php
@@ -71,6 +71,9 @@ $exitRemailers = array_intersect($exitRemailers, $allowedEntryExitRemailers);
<label for="from">From:</label>
<input type="text" name="from" id="from" placeholder="Please use this format: Jane Doe &lt;jane@nowhere.com&gt;">
<br>
+ <label for="reply_to">Reply-To:</label>
+ <input type="text" name="reply_to" id="reply_to" placeholder="Please use this format: Jane Doe &lt;jane@nowhere.com&gt;">
+ <br>
<label for="to">To:</label>
<input type="text" name="to" id="to">
<br>
@@ -94,7 +97,13 @@ $exitRemailers = array_intersect($exitRemailers, $allowedEntryExitRemailers);
<div class="instructions-frame">
<h2>About the Interface</h2>
<p>This web interface is built using the following technologies: HTML5 CSS3 PHP</p>
- <p>Contact for abuses: <a href="">abuse (at) domain</a></p>
+ <div class="github-link">
+ <a href="https://github.com/gabrix73/yamn-web/" target="_blank">
+ <img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" width="24" height="24">
+ View on GitHub
+ </a>
+ </div>
+ <p>Contact for abuses: <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;%61%62%75%73%65%40%76%69%72%65%62%65%6E%74%2E%61%72%74">abuse (at) virebent dot art</a></p>
</div>
<footer>
<p>&copy; 2024 VICTOR - Hostile Communication Center & &#169; FUCK Design All Rights Reserved.</p>
diff --git a/send_email.php b/send_email.php
index 7b645da..ff2c5be 100644
--- a/send_email.php
+++ b/send_email.php
@@ -4,6 +4,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$middleRemailer = $_POST['middle_remailer'];
$exitRemailer = $_POST['exit_remailer'];
$from = $_POST['from'];
+ $replyTo = $_POST['reply_to'];
$to = $_POST['to'];
$subject = $_POST['subject'];
$newsgroups = $_POST['newsgroups'];
@@ -27,7 +28,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (!empty($references)) {
$headers .= "References: $references\n";
}
- $messageContent = $headers . "From: $from\nTo: $to\nSubject: $subject\n";
+ $messageContent = $headers . "From: $from\nReply-To: $replyTo\nTo: $to\nSubject: $subject\n";
if (!empty($newsgroups)) {
$messageContent .= "Newsgroups: $newsgroups\n";
}
@@ -46,6 +47,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($return_var_send != 0) {
$logEntry = "Date: " . date('Y-m-d H:i:s') . "\n";
$logEntry .= "From: $from\n";
+ $logEntry .= "Reply-To: $replyTo\n";
$logEntry .= "To: $to\n";
$logEntry .= "Subject: $subject\n";
if (!empty($newsgroups)) {
@@ -69,7 +71,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($return_var_send == 0) {
echo "Email sent successfully!<br>";
- echo "<a href='https://home'>Return to Home</a>";
+ echo "<a href='https://yamnweb.virebent.art'>Return to Home</a>";
} else {
echo "Error sending email.";
}