diff -r 000000000000 -r 03b0d1493584 web/wp-content/plugins/gigs-calendar/feedback.ajax.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/plugins/gigs-calendar/feedback.ajax.php Wed Dec 23 17:55:33 2009 +0000 @@ -0,0 +1,98 @@ + +

+
+ + +
+ + +
+
+
+

+

+
+
+
+
+
+
+
+
+ + +
+ + $value ) { + if ( $key != 'nonce' && $key != 'message' && $key != 'action' ) { + $msg .= $key . ': ' . $value . "\n"; + } + } + + $msg .= 'Plugin Version: ' . DTC_GIGS_PLUGIN_VERSION . "\n"; + $msg .= 'Database Version: ' . DTC_GIGS_DB_VERSION . "\n"; + + $msg .= "\nMessage:\n" . $_POST['message']; + + if ( $_POST['settings'] == '1' ) { + $msg .= "\n\n\nSettings:\n" . print_r($options, true); + } + if ( wp_mail($feedbackEmail, 'Gigs Calendar - ' . $_POST['type'], $msg, 'Reply-To: ' . str_replace(array("\r", "\n"), '', $_POST['email'])) ) { + echo '{success: true}'; + } else { + echo '{success: false}'; + } +} + +?>