| #129 | }
|
| #130 | }
|
| #131 | require_once ROOT_PATH . 'lecms/plugin/le_guest_seo/lib_guest_seo.php';
|
| #132 |
|
| #133 | $lgseo_setting = lgseo_get_setting();
|
| #134 | if (!empty($lgseo_setting['enabled']) && !empty($lgseo_setting['rewrite_output'])) {
|
| #135 | $method = isset($_SERVER['REQUEST_METHOD']) ? strtoupper((string)$_SERVER['REQUEST_METHOD']) : 'GET';
|
| #136 | $accept = isset($_SERVER['HTTP_ACCEPT']) ? strtolower((string)$_SERVER['HTTP_ACCEPT']) : '';
|
| #137 | if (($method === 'GET' || $method === 'HEAD') && !(defined('APP_NAME') && APP_NAME === 'admin')) {
|
| #138 | if ($accept === '' || strpos($accept, 'text/html') !== false || strpos($accept, '*/*') !== false) {
|