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
вариант 1 | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] | |
или, если первый вариант не поможет, воспользуйтесь вторым вариантом: | |
вариант 2 | |
RewriteEngine On | |
RewriteCond %{HTTPS} =on | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L] |
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
<? | |
if ($_SERVER['REQUEST_METHOD'] == 'POST'): | |
$result = array(); | |
function fetchUrl($url, $postFields = array()) | |
{ | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 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
Ссылка: <a href="путь к файлу" class="callback fancybox.iframe">>Разместить свое объявление</a> | |
Скрипт: | |
$('a.callback').fancybox({ | |
width: '565', | |
height: '100%', | |
closeClick: true, | |
padding: 0, | |
helpers: {overlay: {locked: false}} | |
}); |
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
$('.order').click(function(){ | |
var ide = $(this).parent().find('input:hidden').val(); | |
$.ajax({ | |
type: "POST", | |
data: 'action=ADD2BASKET&ajax_basket=Y&id='+ide, | |
url: '/', | |
success: function(data){ | |
data = data.split('\'').join('\u0022'); | |
var obj = JSON && JSON.parse(data) || $.parseJSON(data); | |
if (obj.STATUS == 'OK'){ |
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
<?$APPLICATION->IncludeComponent( | |
"bitrix:catalog.section", | |
"", | |
Array( | |
"TEMPLATE_THEME" => $arParams['TEMPLATE_THEME'], | |
"PRODUCT_DISPLAY_MODE" => $arParams['PRODUCT_DISPLAY_MODE'], | |
"ADD_PICT_PROP" => $arParams['ADD_PICT_PROP'], | |
"LABEL_PROP" => $arParams['LABEL_PROP'], | |
"OFFER_ADD_PICT_PROP" => $arParams['OFFER_ADD_PICT_PROP'], | |
"OFFER_TREE_PROPS" => $arParams['OFFER_TREE_PROPS'], |
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
<?$this->SetViewTarget('search');?> | |
<!--code--> | |
<?$this->EndViewTarget();?> | |
//Метод вывода участка кода | |
<?$APPLICATION->ShowViewContent('search');?> | |
//another example | |
<?ob_start(); | |
echo 'SomeText'; |
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
http://prntscr.com/c5xr10 | |
Условие: #^/stati/([a-zA-Z0-9\-_]+)/$# | |
Файл: /stati/detail.php | |
Правило: ELEMENT_CODE=$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
<? | |
$GLOBALS['_____578075656'] = array( | |
base64_decode('R2V0QnlJRA=' . '='), | |
base64_decode('R' . '2' . 'V' . '0QnlJRA=='), | |
base64_decode('RmV0Y2' . 'g='), | |
base64_decode('SW5jbHVkZU1v' . 'ZHVsZUxhbmd' . 'GaWxl'), | |
base64_decode('SW5' . 'j' . 'bH' . 'VkZU1vZHVsZUxh' . 'bmd' . 'Ga' . 'Wxl'), | |
base64_decode('S' . 'W5jbHVkZU' . '1vZHVsZ' . 'Uxh' . 'bmdGaWxl'), | |
base64_decode('SW' . '5jb' . 'HV' . 'kZ' . 'U1vZHVsZ' . 'Uxhb' . 'mdGaWxl'), | |
base64_decode('R2' . 'V' . '0T3B0a' . 'W' . '9uSW50'), |
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
<?$this->SetViewTarget('news_detail');?> | |
<noindex><a rel="nofollow" class="h1-head fancy" href="/develop/change_cover_type.php"><?=$arDataFilter["NAME"]?></a></noindex> | |
<?$this->EndViewTarget();?> | |
<?$APPLICATION->ShowViewContent('news_detail');?> |
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
<?$bxajaxid = CAjax::GetComponentID($component->__name, $component->__template->__name);?> | |
<?if($arResult["NAV_RESULT"]->nEndPage > 1 && $arResult["NAV_RESULT"]->NavPageNomer<$arResult["NAV_RESULT"]->nEndPage):?> | |
<div id="btn_<?=$bxajaxid?>"> | |
<a data-ajax-id="<?=$bxajaxid?>" href="javascript:void(0)" data-show-more="<?=$arResult["NAV_RESULT"]->NavNum?>" data-next-page="<?=($arResult["NAV_RESULT"]->NavPageNomer + 1)?>" data-max-page="<?=$arResult["NAV_RESULT"]->nEndPage?>">Показать еще комментарии</a> | |
</div> | |
<?endif?> | |
$(document).on('click', '[data-show-more]', function(){ | |
var btn = $(this); | |
var page = btn.attr('data-next-page'); | |
var id = btn.attr('data-show-more'); |