Index: trunk/extensions/DonationInterface/donationinterface.php |
— | — | @@ -86,26 +86,28 @@ |
87 | 87 | |
88 | 88 | //load all possible form classes |
89 | 89 | $wgAutoloadClasses['Gateway_Form'] = $donationinterface_dir . 'gateway_forms/Form.php'; |
90 | | -$wgAutoloadClasses['Gateway_Form_OneStepTwoColumn'] = $donationinterface_dir . 'gateway_forms/OneStepTwoColumn.php'; |
91 | | -$wgAutoloadClasses['Gateway_Form_TwoStepAmount'] = $donationinterface_dir . 'gateway_forms/TwoStepAmount.php'; |
92 | 90 | $wgAutoloadClasses['Gateway_Form_TwoStepTwoColumn'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumn.php'; |
93 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnPayPal'] = $donationinterface_dir . 'gateway_forms/TwoColumnPayPal.php'; |
94 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnLetter'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter.php'; |
95 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnLetter2'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter2.php'; |
96 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnLetter3'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter3.php'; |
97 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnLetter4'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter4.php'; |
98 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnLetter5'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter5.php'; |
99 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnLetter6'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter6.php'; |
100 | | -$wgAutoloadClasses['Gateway_Form_TwoColumnLetter7'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter7.php'; |
101 | 91 | $wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetter'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetter.php'; |
102 | | -$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetterCA'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetterCA.php'; |
103 | | -$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetter2'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetter2.php'; |
104 | 92 | $wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetter3'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetter3.php'; |
105 | | -$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnPremium'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnPremium.php'; |
106 | | -$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnPremiumUS'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnPremiumUS.php'; |
107 | 93 | $wgAutoloadClasses['Gateway_Form_RapidHtml'] = $donationinterface_dir . 'gateway_forms/RapidHtml.php'; |
108 | | -$wgAutoloadClasses['Gateway_Form_SingleColumn'] = $donationinterface_dir . 'gateway_forms/SingleColumn.php'; |
109 | 94 | |
| 95 | +// All these form classes are available, but not enabled by default. |
| 96 | +// If you want them enabled, copy the desired lines into your LocalSettings.php, and uncomment. |
| 97 | +//$wgAutoloadClasses['Gateway_Form_OneStepTwoColumn'] = $donationinterface_dir . 'gateway_forms/OneStepTwoColumn.php'; |
| 98 | +//$wgAutoloadClasses['Gateway_Form_TwoStepAmount'] = $donationinterface_dir . 'gateway_forms/TwoStepAmount.php'; |
| 99 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnPayPal'] = $donationinterface_dir . 'gateway_forms/TwoColumnPayPal.php'; |
| 100 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnLetter'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter.php'; |
| 101 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnLetter2'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter2.php'; |
| 102 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnLetter3'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter3.php'; |
| 103 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnLetter4'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter4.php'; |
| 104 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnLetter5'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter5.php'; |
| 105 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnLetter6'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter6.php'; |
| 106 | +//$wgAutoloadClasses['Gateway_Form_TwoColumnLetter7'] = $donationinterface_dir . 'gateway_forms/TwoColumnLetter7.php'; |
| 107 | +//$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetterCA'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetterCA.php'; |
| 108 | +//$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetter2'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetter2.php'; |
| 109 | +//$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnPremium'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnPremium.php'; |
| 110 | +//$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnPremiumUS'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnPremiumUS.php'; |
| 111 | +//$wgAutoloadClasses['Gateway_Form_SingleColumn'] = $donationinterface_dir . 'gateway_forms/SingleColumn.php'; |
110 | 112 | |
111 | 113 | //GlobalCollect gateway classes |
112 | 114 | if ( $optionalParts['GlobalCollect'] === true ){ |
— | — | @@ -175,8 +177,8 @@ |
176 | 178 | $wgDonationInterfaceHtmlFormDir = dirname( __FILE__ ) . "/gateway_forms/rapidhtml/html"; |
177 | 179 | //ffname is the $key from now on. |
178 | 180 | $wgDonationInterfaceAllowedHtmlForms = array( |
179 | | - 'demo' => $wgDonationInterfaceHtmlFormDir . "/demo.html", |
180 | 181 | 'globalcollect_test' => $wgDonationInterfaceHtmlFormDir . "/globalcollect_test.html", |
| 182 | + 'globalcollect_test2' => $wgDonationInterfaceHtmlFormDir . "/globalcollect_test2.html", |
181 | 183 | ); |
182 | 184 | |
183 | 185 | $wgDonationInterfaceTest = false; |
— | — | @@ -201,7 +203,7 @@ |
202 | 204 | |
203 | 205 | $wgDonationInterfaceCSSVersion = 1; |
204 | 206 | $wgDonationInterfaceTimeout = 5; |
205 | | -$wgDonationInterfaceDefaultForm = 'TwoStepTwoColumn'; |
| 207 | +$wgDonationInterfaceDefaultForm = 'TwoStepTwoColumnLetter'; |
206 | 208 | |
207 | 209 | /** |
208 | 210 | * A string or array of strings for making tokens more secure |
— | — | @@ -273,6 +275,7 @@ |
274 | 276 | $wgGlobalCollectGatewayHtmlFormDir = $donationinterface_dir . 'globalcollect_gateway/forms/html'; |
275 | 277 | //this really should be redefined in LocalSettings. |
276 | 278 | $wgGlobalCollectGatewayAllowedHtmlForms = $wgDonationInterfaceAllowedHtmlForms; |
| 279 | + $wgGlobalCollectGatewayAllowedHtmlForms['lightbox1'] = $wgGlobalCollectGatewayHtmlFormDir .'/lightbox1.html'; |
277 | 280 | } |
278 | 281 | |
279 | 282 | //PayflowPro gateway globals |
— | — | @@ -288,6 +291,7 @@ |
289 | 292 | $wgPayflowProGatewayHtmlFormDir = $donationinterface_dir . 'payflowpro_gateway/forms/html'; |
290 | 293 | //this really should be redefined in LocalSettings. |
291 | 294 | $wgPayflowProGatewayAllowedHtmlForms = $wgDonationInterfaceAllowedHtmlForms; |
| 295 | + $wgPayflowProGatewayAllowedHtmlForms['lightbox1'] = $wgPayflowProGatewayHtmlFormDir .'/lightbox1.html'; |
292 | 296 | |
293 | 297 | //defaults to not doing the new fail page redirect. |
294 | 298 | $wgPayflowProGatewayFailPage = false; |