[guadec-web] removed the file path to load.php:not working
- From: Saumya Dwivedi <saumyad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] removed the file path to load.php:not working
- Date: Tue, 8 Jul 2014 05:22:51 +0000 (UTC)
commit af86e83b4cb11d7cc38e232277c6e72604b1ea80
Author: Saumya Dwivedi <saumya zero gmail com>
Date: Tue Jul 8 10:52:37 2014 +0530
removed the file path to load.php:not working
guadec/ipn.php | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/guadec/ipn.php b/guadec/ipn.php
index ca326bc..5558026 100755
--- a/guadec/ipn.php
+++ b/guadec/ipn.php
@@ -19,7 +19,7 @@ $listener = new IpnListener();
// tell the IPN listener to use the PayPal test sandbox
$listener->use_sandbox = true;
-require_once( ABSPATH . 'wp-load.php' );
+//require_once( ABSPATH . 'wp-load.php' );
// update database variable
global $wpdb;
@@ -108,21 +108,24 @@ if ($verified) {
var_dump($wpdb);
$table_name = $wpdb->prefix .'guadec2014_registration';
- $wpdb->update(
- $table_name,
- array(
- 'payment' => 'Completed'
- ),
- array(
- 'email' => $reg_email
- )
- );
+ // $wpdb->update(
+ // $table_name,
+ // array(
+ // 'payment' => 'Completed'
+ // ),
+ // array(
+ // 'email' => $reg_email
+ // )
+ // );
$body .= "Registration Payment Successful for ";
$body .= $cvar['name'];
+ $body .= " with email ";
+ $body .= $cvar['email'];
$body .= $listener->getTextReport();
error_log($body);
mail($_POST['receiver_email'], 'Registration Successful', $body, $headers);
mail($_POST['payer_email'], 'Registration Successful', $body, $headers);
+ mail($cvar['email'], 'Registration Successful', $body, $headers);
}
}
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]