Adamw has uploaded a new change for review. https://gerrit.wikimedia.org/r/116169
Change subject: put stupid entrypoint scripts into source control ...................................................................... put stupid entrypoint scripts into source control Change-Id: I0d6b7a3feff8f263e1b90f3b96ad0a7be71c55f0 --- A legacy-paypal/IPNListener_Recurring.php A legacy-paypal/IPNListener_Standalone.php 2 files changed, 40 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/PaymentsListeners refs/changes/69/116169/1 diff --git a/legacy-paypal/IPNListener_Recurring.php b/legacy-paypal/IPNListener_Recurring.php new file mode 100644 index 0000000..6854f86 --- /dev/null +++ b/legacy-paypal/IPNListener_Recurring.php @@ -0,0 +1,20 @@ +<?php + +$conf_path = '/etc/fundraising/legacy_paypal_config.php'; + +require_once( $conf_path ); + +$config['output_handle'] = fopen( $config['recurring_log_file'], 'a' ); +require_once( $config['recurring_script_path'] ); + +// instantaite the listener with our config options +$listener = new PaypalRecurringIPNProcessor( $config ); + +// pass some data to the listner, usually this will be posted from PayPal's IPN +$listener->execute( $_POST ); + +// shutdown the listener +unset( $listener ); + +// cleanly close the file pointer for output +fclose( $output_handle ); diff --git a/legacy-paypal/IPNListener_Standalone.php b/legacy-paypal/IPNListener_Standalone.php new file mode 100644 index 0000000..b9b523f --- /dev/null +++ b/legacy-paypal/IPNListener_Standalone.php @@ -0,0 +1,20 @@ +<?php + +$conf_path = '/etc/fundraising/legacy_paypal_config.php'; + +require_once( $conf_path ); + +$config['output_handle'] = fopen( $config['log_file'], 'a' ); +require_once( $config['script_path'] ); + +// instantaite the listener with our config options +$listener = new PaypalIPNProcessor( $config ); + +// pass some data to the listner, usually this will be posted from PayPal's IPN +$listener->execute( $_POST ); + +// shutdown the listener +unset( $listener ); + +// cleanly close the file pointer for output +close( $config['output_handle'] ); -- To view, visit https://gerrit.wikimedia.org/r/116169 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0d6b7a3feff8f263e1b90f3b96ad0a7be71c55f0 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/PaymentsListeners Gerrit-Branch: master Gerrit-Owner: Adamw <awi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits