Changeset View
Changeset View
Standalone View
Standalone View
fundraisers/randameetings2014/notify.php
1 | <?php | 1 | <?php | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | $do_debug = true; | 3 | $do_debug = true; | ||
4 | 4 | | |||
5 | die("Donation to the Randa Meeting 2014 are not supported anymore. See <a href="/donations">Donnations</a>"); | ||||
6 | | ||||
5 | // STEP 1: read POST data | 7 | // STEP 1: read POST data | ||
6 | 8 | | |||
7 | // Reading POSTed data directly from $_POST causes serialization issues with array data in the POST. | 9 | // Reading POSTed data directly from $_POST causes serialization issues with array data in the POST. | ||
8 | // Instead, read raw POST data from the input stream. | 10 | // Instead, read raw POST data from the input stream. | ||
9 | $raw_post_data = file_get_contents('php://input'); | 11 | $raw_post_data = file_get_contents('php://input'); | ||
10 | $raw_post_array = explode('&', $raw_post_data); | 12 | $raw_post_array = explode('&', $raw_post_data); | ||
11 | $myPost = array(); | 13 | $myPost = array(); | ||
12 | foreach ($raw_post_array as $keyval) { | 14 | foreach ($raw_post_array as $keyval) { | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |