This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Download https://owlcarousel2.github.io/OwlCarousel2/docs/started-welcome.html | |
| <link href="/css/owl.carousel.min.css" rel="stylesheet" /> | |
| <link href="/css/owl.theme.default.min.css" rel="stylesheet" /> | |
| <script src="/js/owl.carousel.min.js"></script> | |
| <script> | |
| jQuery(document).ready(function(){ | |
| jQuery('.owl-carousel').owlCarousel({ | |
| loop:true, | |
| items:1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $document = &JFactory::getDocument(); | |
| $renderer = $document->loadRenderer('modules'); | |
| echo $renderer->render('позиция',$options,null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $doc = JFactory::getDocument(); | |
| return $_SERVER['HTTP_REFERER']; | |
| скрытое поле, значение по умолчанию |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? require($_SERVER['DOCUMENT_ROOT']."/bitrix/header.php"); echo $USER->Update(1,array("PASSWORD"=>'Bitrix*123456')); echo $USER->LAST_ERROR; require($_SERVER['DOCUMENT_ROOT']."/bitrix/footer.php"); ?> | |
| Если доступ для неавторизованных пользователей закрыт, то перед процедурой восстановления пароля надо поправить файл .access.php в корне сайта, заменив: | |
| $PERM["/"]["*"]="D"; | |
| на: | |
| $PERM["/"]["*"]="R"; | |
| А после сброса вернуть изменения назад. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:variable name="emptyDesc" select="result/meta/description"/> | |
| <xsl:choose> | |
| <xsl:when test="$emptyDesc != '' "> | |
| <meta name="description" content="{result/meta/description}" /> | |
| </xsl:when> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| В Joomla есть файл configuration.php, в котором есть строчки: | |
| var $host = 'сервер'; | |
| var $user = 'имя_пользователя'; | |
| var $db = 'имя_базы_данных'; | |
| var $password = 'пароль'; | |
| В WordPress есть файл wp-config.php, в котором есть строчки: | |
| define('DB_NAME', 'имя_базы_данных'); | |
| define('DB_USER', 'имя_пользователя'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In head | |
| <? session_start(); if (!empty($_SERVER['HTTP_REFERER'])) { if (strripos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) === false ) { if(strripos($_SERVER['HTTP_REFERER'], 'google') or strripos($_SERVER['HTTP_REFERER'], 'yandex.ru')) { if(strripos($_SERVER['HTTP_REFERER'], 'aclk?sa')) { $_SESSION['referer'] = 'Google Adwords'; } if(strripos($_SERVER['HTTP_REFERER'], 'url?sa')) { $_SESSION['referer'] = 'Google Поиск'; } if(strripos($_SERVER['HTTP_REFERER'], 'yabs.yandex.ru')) { $_SESSION['referer'] = 'Яндекс Директ'; } if(strripos($_SERVER['HTTP_REFERER'], 'yandex.ru/clck/jsredir')) { $_SESSION['referer'] = 'Яндекс Поиск'; } } else { $_SESSION['referer'] = $_SERVER['HTTP_REFERER']; } } } ?> | |
| In form hidden input | |
| <?php echo $_SESSION['referer']; ?> | |
| In Bitix | |
| <? if (!empty($_SESSION['referer'])) { $arResult["REF_LINK"] = $_SESSION['referer']; } else { $arResult["REF_LINK"] = 'REFERER отсутствует‚'; } ?> //$arResult["REF_LINK"] - поле в почтовом шаблоне <input type="hidden" name="ref" value="<?=$arResu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="recaptcha1" class="g-recaptcha" data-sitekey="key"></div> | |
| <div id="recaptcha2" class="g-recaptcha" data-sitekey="key"></div> | |
| <script type="text/javascript"> | |
| var onloadCallback = function() { | |
| mysitekey = 'your_site_key'; | |
| grecaptcha.render('recaptcha1', { |