Removed commented code to clean up files
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 11 Nov 2015 20:59:30 +0000 (15:59 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 24 Nov 2015 21:46:48 +0000 (16:46 -0500)
includes/payment-function.php
includes/payment-options.php

index 198df3e..648d36b 100755 (executable)
@@ -288,19 +288,4 @@ function checkCreditCard($cardnumber, $cardname, &$errornumber, &$errortext) {
        return true;\r
 }\r
 \r
-/*function paymentemail($first_name,$last_name,$organization,$amount,$invoice_num) {\r
-//            paymentemail($first_name,$last_name,$organisation,$donation_type,$amount,$invoice_num,$comment);\r
-    $to = "anthony@localhost";\r
-    $subject = 'GLM Payment Form';\r
-//            $message = 'This is a test of the wp_mail function: wp_mail is working';\r
-    $message = 'A payment has been made on the Gaslight Media website. Please review the billing information below' . \r
-            '<br>Name: ' . $last_name . ', ' . $first_name . '<br>Organisation: ' . $organization  .  '<br>Amount: ' . $amount . '<br>Invoice Number: ' . $invoice_num;\r
-    $headers = array();\r
-    $headers[] = 'From: Gaslight Media <anthony@gaslightmedia.com>';\r
-    $headers[] = 'Reply-To: noreply@gaslightmedia.com';\r
-    $headers[] = 'Content-Type: text/html';\r
-    $headers[] = 'charset=utf-8';\r
-\r
-    mail( $to, $subject, $message, $headers );\r
-} */\r
 ?>\r
index 1cac0dc..5057147 100755 (executable)
@@ -115,43 +115,9 @@ function glm_payment_options_page()
         <ul id="glm-payments-tabs-nav">\r
             <li><a href="#glm-payments-tab-donorlist">Payment List</a></li>\r
             <li><a href="#glm-payments-tab-settings">Settings</a></li>\r
-            <li><a href="#glm-payments-tab-mail">Mail</a></li>\r
         </ul>\r
         <div style="clear:both"></div>\r
-        <div id="glm-payments-tab-mail">\r
-            \r
-\r
-            <?php\r
-            \r
-//            paymentemail($first_name,$last_name,$organisation,$donation_type,$amount,$invoice_num,$comment);\r
-//            $message = 'This is a test of the wp_mail function: wp_mail is working';\r
-//            $first_name = 'fname';\r
-//            $last_name = 'lname';\r
-//            $organisation = 'org';\r
-//            $donation_type = 'dontype';\r
-//            $amount = 'amt';\r
-//            $invoice_num = 'invnum';\r
-//            $comment = 'comment';\r
-//            $to = "anthony@localhost";\r
-//            $subject = 'wp_mail function test';\r
-//            $message = 'A payment has been made on the Gaslight Media website. Please review the billing information below' . \r
-//                    '<br>Name: ' . $last_name . ', ' . $first_name . '<br>Organisation: ' . $organisation  . '<br>Donation Type: ' . \r
-//                    $donation_type . '<br>Amount: ' . $amount . '<br>Invoice Number: ' . $invoice_num . '<br>Comments: ' . $comment;\r
-//            $headers = array();\r
-//            $headers[] = 'From: Gaslight Media <anthony@gaslightmedia.com>';\r
-//            $headers[] = 'Reply-To: noreply@gaslightmedia.com';\r
-//            $headers[] = 'Content-Type: text/html';\r
-//            $headers[] = 'charset=utf-8';\r
-//            \r
-//            $sent_message = wp_mail( $to, $subject, $message, $headers );\r
-//            if ( $sent_message ) {\r
-//                echo 'The test message was sent. Check your email inbox.';\r
-//            } else {\r
-//                echo 'The message was not sent!';\r
-//            }\r
-            ?>\r
-            \r
-        </div>\r
+       \r
         <div id="glm-payments-tab-donorlist">\r
             <table class="glm-payments-donorlist" width="100%">\r
                 <?php \r