summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-12-31 22:14:01 (GMT)
committerTomasz Kramkowski <tk@the-tk.com>2017-12-31 22:14:01 (GMT)
commit0f38f809ccd76e1238c682007fc4dab07ceb2309 (patch)
tree935ac868468fd9cca01af1fd7eb8039e68babf66
parent2288f2cdb89ff0469209cd02c78311dd92e55207 (diff)
parent850c50b9234fe045e64130765356ff3bdae7f8f8 (diff)
downloadwww-master.zip
www-master.tar.gz
www-master.tar.bz2
Merge branch 'master' into stagingHEADstagingmaster
-rw-r--r--content/pages/donate/paypal.html39
-rw-r--r--theme/static/subscribe.php5
2 files changed, 4 insertions, 40 deletions
diff --git a/content/pages/donate/paypal.html b/content/pages/donate/paypal.html
index b15d884..e69de29 100644
--- a/content/pages/donate/paypal.html
+++ b/content/pages/donate/paypal.html
@@ -1,39 +0,0 @@
-<html>
-<head><title>Donate - PayPal</title>
-<meta name="save_as" content="donate-paypal.html" />
-<meta name="url" content="donate-paypal" />
-</head>
-<body>
-<div class="stripe breadcumb">
- <div>
- <h2>Donate - PayPal</h2>
-
- <p>If you would like to support the development of <strong>Neo900</strong>, you can use the PayPal service.</p>
-
- <p><strong>Please put your country into payment notes.</strong></p>
-
- <hr/>
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
- <p>Donation amount: <input type="number" value="100" name="amount" style="border: 1px solid #E5E5E5;width: 80px;font-size: 20px;text-align: right;" /> EUR</p>
- <input type="hidden" name="cmd" value="_xclick" />
- <input type="hidden" name="business" value="reisenweber@web.de" />
- <input type="hidden" name="item_name" value="Neo900 Development Support" />
- <input type="hidden" name="currency_code" value="EUR" />
- <input type="hidden" name="return" value="http://neo900.org/donate-thankyou" />
- <input type="hidden" name="cancel_return" value="http://neo900.org/donate" />
- <input type="hidden" name="image_url" value="http://neo900.org/static/logo-90h.png" />
- <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal - Pay now" />
- </form>
-
- <hr/>
-
- <p>Remember, only donations of 100 EUR or more result in one more device getting built.</p>
-
- <p><em>Donations are not tax-deductible and also not refundable.</em></p>
- <p><em>USt/VAT-ID: DE294617675</em></p>
-
- <a href="/donate">&laquo; Back</a>
- </div>
-</div>
-</body>
-</html>
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