RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
const divider = '-';
const symbol = 'x';
let x = symbol;
let prefix = divider;
let suffix = divider;
for (let i = 0; i < 2; i++) {
prefix += x + divider;
suffix = divider + x + suffix;
x += symbol;
}
let result = prefix + x + suffix;
console.log(result);
preg_match("#^/video/([\.\-0-9a-zA-Z]+)(/?)([^/]*)#", $GLOBALS['APPLICATION']->GetCurPage(0))
$arFields['ACTIVE'] = 'N';
try_files $uri $uri/ /bitrix/urlrewrite.php$is_args$args;
try_files $uri $uri/ @bitrix;
location @bitrix {
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/bitrix/urlrewrite.php;
try_files $uri =404;
fastcgi_read_timeout 3600;
fastcgi_send_timeout 3600;
fastcgi_param HTTPS "on";
fastcgi_param SERVER_PORT 443;
fastcgi_pass 127.0.0.1:{{php_fpm_port}};
fastcgi_param PHP_VALUE "{{php_settings}}";
}
function OnBeforeCrmCompanyAddHandler(&$arFields)
{
$res = CCrmCompany::getList(['ID' => 'ASC'], ['=TITLE' => $arFields["TITLE"]], ['ID'], 1);
if ($res->Fetch()) {
$arFields["RESULT_MESSAGE"] = "Данная компания уже существует!";
return false;
}
return true;
}
$_SERVER[HTTP_HOST]
find . -type f -exec grep 'function showMsg2' '{}' \+
$temp = _top();
echo get_class($temp);
die;