Administrators Thanked: 265 раз
Oh, sorry, COT_AJAX is a constant and it is always predefined in common.php line 190:
define(
'COT_AJAX'
, !
empty
(
$_SERVER
[
'HTTP_X_REQUESTED_WITH'
]) || !
'X-Requested-With'
]) ||
$_GET
'_ajax'
] == 1);
So changing it doesn't really work. Instead, you have a few options: