[guadec-web] Changes to IPN: trial 2
- From: Saumya Dwivedi <saumyad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] Changes to IPN: trial 2
- Date: Mon, 7 Jul 2014 11:05:41 +0000 (UTC)
commit 356d414955e78ec256e6c62384b0fe18f72480b6
Author: Saumya Dwivedi <saumya zero gmail com>
Date: Mon Jul 7 16:35:26 2014 +0530
Changes to IPN: trial 2
guadec/access-register.php | 2 +-
guadec/ipn.php | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/guadec/access-register.php b/guadec/access-register.php
index ea9d3b4..d0feabb 100644
--- a/guadec/access-register.php
+++ b/guadec/access-register.php
@@ -53,7 +53,7 @@ else{
switch($action) {
case 'showall' :
- $result = $wpdb->get_results('SELECT * FROM $wp_guadec2014_registrations', ARRAY_A);
+ $result = $wpdb->get_results('SELECT * FROM wp_guadec2014_registrations', ARRAY_A);
echo display_result($result);
break;
case 'showcomplete' :
diff --git a/guadec/ipn.php b/guadec/ipn.php
index b8f8657..3876906 100755
--- a/guadec/ipn.php
+++ b/guadec/ipn.php
@@ -40,6 +40,7 @@ if ($verified) {
$customInfo = $_POST['custom']; // access custom information
$csplit = explode('&',$customInfo);
$cvar = array(); $i = 0;
+ $headers = "From: GUADEC 2014 Registration Script <membership-committee gnome org>\n";
while(($i < 9) && ($csplit[$i] != null)){
$dsplit = explode('=',$csplit[$i]);
@@ -114,8 +115,8 @@ if ($verified) {
$body .= "Registration Payment Successful for ";
$body .= $_POST['custom'];
error_log($body);
- mail($_POST['receiver_email'], 'GUADEC 2014 Registration Successful', $body);
- mail($_POST['payer_email'], 'GUADEC 2014 Registration Successful', $body);
+ mail($_POST['receiver_email'], 'GUADEC 2014 Registration Successful', $body, $headers);
+ mail($_POST['payer_email'], 'GUADEC 2014 Registration Successful', $body, $headers);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]