summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Reisenweber <joerg@neo900.org>2017-09-04 13:50:30 (GMT)
committerJoerg Reisenweber <joerg@neo900.org>2017-09-04 13:50:30 (GMT)
commit3f8cdf500bd00d88070bf9c63b59ab3267332f49 (patch)
tree64d2bb71a76100fa955989cfed7b13179d821f28
parent11739140abdfd82d6003de600660635312b01aa7 (diff)
downloadwww-3f8cdf500bd00d88070bf9c63b59ab3267332f49.zip
www-3f8cdf500bd00d88070bf9c63b59ab3267332f49.tar.gz
www-3f8cdf500bd00d88070bf9c63b59ab3267332f49.tar.bz2
geƤndert: subscribe.php
-rw-r--r--theme/static/subscribe.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/theme/static/subscribe.php b/theme/static/subscribe.php
index 0b66bf4..468abc1 100644
--- a/theme/static/subscribe.php
+++ b/theme/static/subscribe.php
@@ -1,4 +1,6 @@
<?php
+system("logger -t subscribe.php foobar ${_POST['neo900-mail']};");
+die("This functionality has been temporarily disabled. We are sorry about any inconvenience.");
include("mysql_connect.inc.php");
mysql_query("SET NAMES utf8");
@@ -14,9 +16,10 @@ if (mysql_num_rows($row)) {
die('This e-mail is already registered.');
}
+
mysql_query("INSERT INTO neo900_subscription SET mail='".mysql_real_escape_string($_POST['neo900-mail'])."'") or die("Unexpected database storage error. Please try again later.");
echo('Your e-mail has been registered. Thank you!');
mail($_POST['neo900-mail'], 'Neo900 newsletter registration', "Hello!\r\n\r\nThis e-mail address has just been used for registration to the newsletter on the Neo900 website.\r\n\r\nIf that's what you just did, ignore this message. If you haven't requested anything like that, reply to this mail and say so - you'll be unregistered.\r\n\r\nThank you for your support!\r\n\r\nNeo900 team\r\nhttp://neo900.org/", "From: Neo900 <newsletter@neo900.org>\r\nContent-Type: text/plain;charset=utf-8\r\nList-Unsubscribe: <mailto:newsletter@neo900.org>\r\nAuto-Submitted: auto-generated\r\n");
-?>
+?> \ No newline at end of file