G
G
Gerasim9712020-11-23 11:14:58
1C-Bitrix
Gerasim971, 2020-11-23 11:14:58

How to find a Bitrix page template?

We placed a spam script on the site with a redirect to a spam site, I can’t find the file where they could put it.
5fbb6f521f6e4769442034.png
I didn’t find it in the /bitrix/header directory, I changed all index.php, where I removed it, but it still loads from somewhere, what options can there be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2020-11-23
@Adamos

Bitrix Templates - /bitrix/templates
Actually, you can just look at the "Website Templates" in the admin panel - there is an editor of the same files.

O
Oleg, 2020-11-23
@402d

Typical Bitrix header template. See for yourself how many places you can shove.

<head>
<?IncludeTemplateLangFile(__FILE__);?> - //подключение lang (языковых) файлов

<?$APPLICATION->ShowHead();?> - //Подключает стили и скрипты из основного шаблона

<title><?$APPLICATION->ShowTitle()?></title> - //вывод тайтла в основном шаблоне сайта

<?$APPLICATION->SetAdditionalCSS(SITE_TEMPLATE_PATH.'/css/my-css.css');?> - //подключение CSS
//из шаблона
<?$APPLICATION->SetAdditionalCSS("/bitrix/templates/.default/css/my-css.css")?> - //подключение css
//по прямому пути

<?$APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/js/my-js.js');?> - //подключение JS из шаблона
<?$APPLICATION->AddHeadScript('/bitrix/templates/.default/js/my-js.js')?> - //подключение JS
//по прямому пути

<link rel="shortcut icon" type="image/x-icon" href="<?=SITE_TEMPLATE_PATH?>/favicon.ico" /> - 
//подключение favicon

</head>

and includes and calls to engine methods that can be modified

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question