tenweb-speed-optimizer
Last commit date
assets
11 months ago
config
2 years ago
exported
4 years ago
includes
2 months ago
test
4 years ago
vendor
1 month ago
views
11 months ago
.editorconfig
3 years ago
OptimizerAdmin.php
1 year ago
OptimizerAdminBar.php
2 years ago
OptimizerApi.php
1 month ago
OptimizerCli.php
1 year ago
OptimizerDataRepository.php
1 year ago
changelog.txt
3 years ago
config.php
1 month ago
env.php
1 month ago
phpcs.xml
3 years ago
readme.txt
1 month ago
tenweb_speed_optimizer.php
1 month ago
webpack.config.js
3 years ago
env.php
151 lines
| 1 | <?php |
| 2 | if (!defined('TENWEB_SITE_URL')) { |
| 3 | define('TENWEB_SITE_URL', "https://10web.io"); |
| 4 | } |
| 5 | if (!defined('TENWEB_DASHBOARD')) { |
| 6 | define('TENWEB_DASHBOARD', "https://my.10web.io"); |
| 7 | } |
| 8 | if (!defined('TENWEB_API_URL')) { |
| 9 | define('TENWEB_API_URL', 'https://manager.10web.io/api'); |
| 10 | } |
| 11 | if (!defined('TENWEB_S3_BUCKET')) { |
| 12 | define('TENWEB_S3_BUCKET', '10web-products-production'); |
| 13 | } |
| 14 | if (!defined('TENWEB_MANAGER_ID')) { |
| 15 | define('TENWEB_MANAGER_ID', 51); |
| 16 | } |
| 17 | |
| 18 | if (!defined('TENWEB_WVC_THEME_ID')) { |
| 19 | define('TENWEB_WVC_THEME_ID', 222); |
| 20 | } |
| 21 | |
| 22 | if (!defined('TENWEB_WVC_URL')) { |
| 23 | define('TENWEB_WVC_URL', 'https://wvc.10web.io'); |
| 24 | } |
| 25 | |
| 26 | if (!defined('TENWEB_WVC_PRODUCT_ID')) { |
| 27 | define('TENWEB_WVC_PRODUCT_ID', 221); |
| 28 | } |
| 29 | |
| 30 | |
| 31 | if (!defined('TENWEB_DEACTIVATION_REASONS_URL')) { |
| 32 | define('TENWEB_DEACTIVATION_REASONS_URL', 'https://core.10web.io/api/deactivation_reasons'); |
| 33 | } |
| 34 | if (!defined('TENWEB_SO_CRITICAL_URL')) { |
| 35 | define("TENWEB_SO_CRITICAL_URL", 'https://performance.10web.io'); |
| 36 | } |
| 37 | if (!defined('TENWEBIO_API_URL')) { |
| 38 | define('TENWEBIO_API_URL', "https://imageoptimizer.10web.io"); |
| 39 | } |
| 40 | |
| 41 | if(!defined('TENWEB_SO_FREE_SUBSCRIPTION_ID')) { |
| 42 | define("TENWEB_SO_FREE_SUBSCRIPTION_ID",321); |
| 43 | } |
| 44 | |
| 45 | if(!defined('TENWEB_AGENCY_CUSTOMER_SUBSCRIPTION_ID')) { |
| 46 | define('TENWEB_AGENCY_CUSTOMER_SUBSCRIPTION_ID', 477); |
| 47 | } |
| 48 | |
| 49 | if(!defined('TENWEB_SO_AUTOCONNECT')) { |
| 50 | define("TENWEB_SO_AUTOCONNECT",false); |
| 51 | } |
| 52 | |
| 53 | if(!defined('TENWEB_SO_FREE_SUBSCRIPTION_IDS')) { |
| 54 | define("TENWEB_SO_FREE_SUBSCRIPTION_IDS",[ |
| 55 | 321, //booster free subscription id |
| 56 | 337, 338, 339, 340, 341, 342 //ai assistant pro booster free subscription ids |
| 57 | ]); |
| 58 | } |
| 59 | |
| 60 | if(!defined('TWBB_S3_BUCKET')) { |
| 61 | define( 'TWBB_S3_BUCKET', '10webtemplates-production' ); |
| 62 | } |
| 63 | |
| 64 | if(!defined('TENWEB_SIGNUP_MAGIC_LINK_URL')) { |
| 65 | define('TENWEB_SIGNUP_MAGIC_LINK_URL', 'https://core.10web.io/api/checkout/signup-via-magic-link'); |
| 66 | } |
| 67 | |
| 68 | if(!defined('TENWEB_AI_ASSISTANT')) { |
| 69 | define('TENWEB_AI_ASSISTANT', 'https://ai-assistant.10web.io/'); |
| 70 | } |
| 71 | |
| 72 | if(!defined('TENWEB_AI_ASSISTANT_SUBSCRIPTION_ID')) { |
| 73 | define('TENWEB_AI_ASSISTANT_SUBSCRIPTION_ID', 330); |
| 74 | } |
| 75 | |
| 76 | if(!defined('TWM_ENABLE_PAYMENT')) { |
| 77 | define('TWM_ENABLE_PAYMENT', true); |
| 78 | } |
| 79 | |
| 80 | if(!defined('TENWEB_WOOCOM_API_URL')) { |
| 81 | define('TENWEB_WOOCOM_API_URL', 'https://woocommerce.10web.io/'); |
| 82 | } |
| 83 | |
| 84 | if(!defined('TENWEB_PLATFORM_FREE_SUBSCRIPTION_ID')) { |
| 85 | define('TENWEB_PLATFORM_FREE_SUBSCRIPTION_ID', 318); |
| 86 | } |
| 87 | |
| 88 | if(!defined('TENWEB_SEND_GA_EVENT')) { |
| 89 | define('TENWEB_SEND_GA_EVENT', 'https://core.10web.io/api/send-ga-event'); |
| 90 | } |
| 91 | |
| 92 | if(!defined('TENWEB_FE_SERVICE')) { |
| 93 | define('TENWEB_FE_SERVICE', 'https://x.10web.io/'); |
| 94 | } |
| 95 | |
| 96 | if(!defined('TENWEB_BUILDER_API')) { |
| 97 | define('TENWEB_BUILDER_API', 'https://api.ai-website-builder.net/'); |
| 98 | } |
| 99 | |
| 100 | if(!defined('TENWEB_CORE_URL')) { |
| 101 | define('TENWEB_CORE_URL', 'https://core.10web.io'); |
| 102 | } |
| 103 | |
| 104 | global $tenweb_services; |
| 105 | |
| 106 | $tenweb_services = array( |
| 107 | 'imageoptimizer.10web.io', |
| 108 | 'security.10web.io', |
| 109 | 'seo.10web.io', |
| 110 | 'backup.10web.io', |
| 111 | 'manager.10web.io', |
| 112 | 'core.10web.io', |
| 113 | 'lxd.10web.io', |
| 114 | 'wvc.10web.io' |
| 115 | ); |
| 116 | |
| 117 | global $tenweb_regions; |
| 118 | |
| 119 | $tenweb_regions = array( |
| 120 | "asia-east1" => "Changhua County, Taiwan", |
| 121 | "asia-northeast1" => "Tokyo, Japan", |
| 122 | "asia-south1" => "Mumbai, India", |
| 123 | "asia-southeast1" => "Jurong West, Singapore", |
| 124 | "australia-southeast1" => "Sydney, Australia", |
| 125 | "europe-north1" => "Hamina, Finland", |
| 126 | "europe-west1" => "St. Ghislain, Belgium", |
| 127 | "europe-west2" => "London, England, UK", |
| 128 | "europe-west3" => "Frankfurt, Germany", |
| 129 | "europe-west4" => "Eemshaven, Netherlands", |
| 130 | "northamerica-northeast1" => "Montréal, Québec, Canada", |
| 131 | "southamerica-east1" => "São Paulo, Brazil", |
| 132 | "us-central1" => "Council Bluffs, Iowa, USA", |
| 133 | "us-east1" => "Moncks Corner, South Carolina, USA", |
| 134 | "us-east4" => "Ashburn, Northern Virginia, USA", |
| 135 | "us-west1" => "The Dalles, Oregon, USA", |
| 136 | "us-west2" => "Los Angeles, California, USA" |
| 137 | ); |
| 138 | |
| 139 | global $tenweb_firebaseConfig; |
| 140 | |
| 141 | $tenweb_firebaseConfig = [ |
| 142 | 'apiKey' => "AIzaSyADDO7CWkI1jd8HUXFVs7AwSt4z52i27Tc", |
| 143 | 'authDomain'=> "copilote-prod-2096c.firebaseapp.com", |
| 144 | 'projectId'=> "copilote-prod-2096c", |
| 145 | 'storageBucket'=> "copilote-prod-2096c.appspot.com", |
| 146 | 'messagingSenderId'=> "698503034199", |
| 147 | 'appId'=> "1:698503034199:web:2282f40a461d9d95217a12", |
| 148 | 'databaseURL' => "https://copilote-prod-2096c.firebaseio.com", |
| 149 | ]; |
| 150 | |
| 151 |