Changeset 3841
- Timestamp:
- 08/23/2016 03:30:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/bootstrap.php
r3778 r3841 20 20 require_once( __DIR__ . '/includes/encryption.php' ); 21 21 22 if ( in_array( $_SERVER['HTTP_HOST'], array( 23 'testing.wordcamp.org', 24 '2016.milwaukee.wordcamp.org', 25 '2016.pittsburgh.wordcamp.org', 26 '2016.capetown.wordcamp.org', 27 '2016.annarbor.wordcamp.org', 28 '2016.riodejaneiro.wordcamp.org', 29 '2016.milano.wordcamp.org', 30 '2016.cologne.wordcamp.org', 31 ) ) ) { 22 $load_budget_tool = true; 23 24 // Don't load the budget tool on these sites. 25 if ( preg_match( '#\.(?:us|europe)\.wordcamp\.org$#', strtolower( $_SERVER['HTTP_HOST'] ) ) ) { 26 $load_budget_tool = false; 27 } 28 29 // Don't load the budget tool on non YYYY. sites. 30 if ( ! preg_match( '#^[0-9]{4}\.#', $_SERVER['HTTP_HOST'] ) ) { 31 $load_budget_tool = false; 32 } 33 34 // Force budget tool on testing.wordcamp.org 35 if ( 'testing.wordcamp.org' == $_SERVER['HTTP_HOST'] ) { 36 $load_budget_tool = true; 37 } 38 39 if ( $load_budget_tool ) { 32 40 require_once( __DIR__ . '/includes/budget-tool.php' ); 33 41 }
Note: See TracChangeset
for help on using the changeset viewer.