| @@ -224,8 +224,9 @@ | ||
| 224 | 224 | "/embed", |
| 225 | 225 | "/view-order/", |
| 226 | 226 | "/redirect/", |
| 227 | 227 | "/elementskit-content/", |
| 228 | + "/checkout/", | |
| 228 | 229 | ]; |
| 229 | 230 | |
| 230 | 231 | $exclude_items = apply_filters('berqwp_exclude_slug_match', $exclude_items); |
| 231 | 232 | |
| @@ -1936,8 +1937,9 @@ | ||
| 1936 | 1937 | '<IfModule mod_mime.c>', |
| 1937 | 1938 | ' <FilesMatch "index\.html\.gz$">', |
| 1938 | 1939 | ' ForceType text/html', |
| 1939 | 1940 | ' AddEncoding gzip .gz', |
| 1941 | + ' AddDefaultCharset utf-8', | |
| 1940 | 1942 | ' </FilesMatch>', |
| 1941 | 1943 | '</IfModule>', |
| 1942 | 1944 | '<IfModule mod_headers.c>', |
| 1943 | 1945 | ' <FilesMatch "index\.html\.gz$">', |
| @@ -2348,4 +2350,11 @@ | ||
| 2348 | 2350 | $license_key = berqwp_get_license_key(); |
| 2349 | 2351 | |
| 2350 | 2352 | return !empty($configs['site_id']) && !empty($configs['secret']) && !empty($configs['optimization_method']) && $configs['optimization_method'] == 'cloud' && !empty($license_key); |
| 2351 | 2353 | } |
| 2354 | + | |
| 2355 | +function berqwp_generate_site_id() { | |
| 2356 | + $blog_id = get_current_blog_id(); | |
| 2357 | + $network_id = function_exists('get_current_network_id') ? get_current_network_id() : 1; | |
| 2358 | + $siteurl = get_option('siteurl'); | |
| 2359 | + return md5("berqwp|$network_id|$blog_id|$siteurl"); | |
| 2360 | +} | |