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 (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?> | |
<a href="/catalog/" class="back_cat">« Продолжить покупки</a> | |
<div style="clear: both;"></div> | |
<div class="panel_top_basket"> | |
<div class="steps"> | |
<ul class="list"> | |
<li> | |
<a href="/personal/cart/">Редактирование корзины</a> | |
</li> | |
<li <?if(!isset($_REQUEST['ORDER_ID'])):?>class="active"<?endif;?>> |
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
\Schema::getColumnListing('articles'); |
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
sudo apt-get update | |
sudo apt-get install curl php5-cli git | |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
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://www.jarrodoberto.com/articles/2011/11/enabling-mod-rewrite-on-ubuntu |
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
если пароля не было до этого | |
mysqladmin -u root password '1234' | |
если пароль был. | |
Останавливаем MySQL: | |
/etc/init.d/mysql stop | |
Запускаем в режиме без проверки прав доступа: | |
/usr/sbin/mysqld --skip-grant-tables & |
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).ready(function(){ | |
var frame_w, frame_h, centrer1_w, centrer1_h, centrer1_t, centrer1_l, pjax, data, html_loaded, bg_video, mouse_pos, infra_xml, popup_gallery, load_page_js, preloader, param_search_url, menu_frame, menu_btn, menu_content_frame, banks_json; | |
var ratio = 0.5625; | |
function content_move() { | |
frame_w = $(window).width(); | |
frame_h = $(window).height(); | |
frame_d = frame_h / frame_w; | |
if (frame_d > ratio) { | |
centrer1_w = frame_h / ratio; | |
centrer1_h = frame_h; |
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
$('.openpopup').click(function(e){ | |
var $pop = $('#modal'); | |
if($($pop).css('display') != 'block') { | |
$pop.fadeIn(); | |
var firstClick = true; | |
$(document).bind('click.myEvent', function(e) { | |
if (!firstClick && $(e.target).closest('#popup').length == 0 || $(e.target).closest('.close').length == 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
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script> | |
var onloadCallback = function() { | |
var widgetId1 = grecaptcha.render('example1', { | |
'sitekey' : '6Ld6PSEUAAAAAEis4N9UgDpSwsu3OXyS2nhV0kW_', | |
}); | |
}; |
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
<?=$component->__parent->__template->__component->arParams['AJAX_ID']?> |
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( | |
"IBLOCK_ID" => $arParams["IBLOCK_ID"], | |
"ELEMENT_SORT_FIELD" => $arParams["ELEMENT_SORT_FIELD"], | |
"ELEMENT_SORT_ORDER" => $arParams["ELEMENT_SORT_ORDER"], | |
"ELEMENT_SORT_FIELD" => (!empty($fieldSort))?$fieldSort:$arParams["ELEMENT_SORT_FIELD2"], | |
"ELEMENT_SORT_ORDER2" => $arParams["ELEMENT_SORT_ORDER2"], | |
"PROPERTY_CODE" => $arParams["LIST_PROPERTY_CODE"], |