From: Anthony Talarico Date: Wed, 11 Nov 2015 20:59:30 +0000 (-0500) Subject: Removed commented code to clean up files X-Git-Tag: v1.0.2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=144fd9d4e452c89a8f949cdf687145f625bd18f2;p=WP-Plugins%2FGlmPayments.git Removed commented code to clean up files --- diff --git a/includes/payment-function.php b/includes/payment-function.php index 198df3e..648d36b 100755 --- a/includes/payment-function.php +++ b/includes/payment-function.php @@ -288,19 +288,4 @@ function checkCreditCard($cardnumber, $cardname, &$errornumber, &$errortext) { return true; } -/*function paymentemail($first_name,$last_name,$organization,$amount,$invoice_num) { -// paymentemail($first_name,$last_name,$organisation,$donation_type,$amount,$invoice_num,$comment); - $to = "anthony@localhost"; - $subject = 'GLM Payment Form'; -// $message = 'This is a test of the wp_mail function: wp_mail is working'; - $message = 'A payment has been made on the Gaslight Media website. Please review the billing information below' . - '
Name: ' . $last_name . ', ' . $first_name . '
Organisation: ' . $organization . '
Amount: ' . $amount . '
Invoice Number: ' . $invoice_num; - $headers = array(); - $headers[] = 'From: Gaslight Media '; - $headers[] = 'Reply-To: noreply@gaslightmedia.com'; - $headers[] = 'Content-Type: text/html'; - $headers[] = 'charset=utf-8'; - - mail( $to, $subject, $message, $headers ); -} */ ?> diff --git a/includes/payment-options.php b/includes/payment-options.php index 1cac0dc..5057147 100755 --- a/includes/payment-options.php +++ b/includes/payment-options.php @@ -115,43 +115,9 @@ function glm_payment_options_page()
-
- - - Name: ' . $last_name . ', ' . $first_name . '
Organisation: ' . $organisation . '
Donation Type: ' . -// $donation_type . '
Amount: ' . $amount . '
Invoice Number: ' . $invoice_num . '
Comments: ' . $comment; -// $headers = array(); -// $headers[] = 'From: Gaslight Media '; -// $headers[] = 'Reply-To: noreply@gaslightmedia.com'; -// $headers[] = 'Content-Type: text/html'; -// $headers[] = 'charset=utf-8'; -// -// $sent_message = wp_mail( $to, $subject, $message, $headers ); -// if ( $sent_message ) { -// echo 'The test message was sent. Check your email inbox.'; -// } else { -// echo 'The message was not sent!'; -// } - ?> - -
+