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