Skip to content

Instantly share code, notes, and snippets.

View flayder's full-sized avatar
🏠
Working from home

Artem flayder

🏠
Working from home
View GitHub Profile
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?>
<a href="/catalog/" class="back_cat">&laquo;&nbsp;&nbsp;Продолжить покупки</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;?>>
\Schema::getColumnListing('articles');
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
http://www.jarrodoberto.com/articles/2011/11/enabling-mod-rewrite-on-ubuntu
если пароля не было до этого
mysqladmin -u root password '1234'
если пароль был.
Останавливаем MySQL:
/etc/init.d/mysql stop
Запускаем в режиме без проверки прав доступа:
/usr/sbin/mysqld --skip-grant-tables &
$(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;
$('.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){
<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_',
});
};
<?=$component->__parent->__template->__component->arParams['AJAX_ID']?>
<?$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"],