This file contains 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
//cron | |
%progdir%\modules\php%phpdriver%\php-win.exe -c %progdir%\modules\php%phpdriver%\php.ini -q -f %sitedir%\delight\bitrix\modules\main\tools\cron_events.php | |
delight - path |
This file contains 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
router/a | |
#rest get | |
ip host | |
ip host {domain} {address} | |
system configuration save | |
"domain": "local.name-site.ru", | |
"address": "192.168.1.112" |
This file contains 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
https://gist.github.com/demoriz/ | |
https://github.com/hackjutsu/Lepton | |
https://github.com/SiartPro/bx_form | |
//программа для запуска импорта | |
https://eax.me/screen/ | |
//композит |
This file contains 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 node js | |
npm install -g @vue/cli | |
--new | |
vue create name-project | |
vue create -n name-project //not git | |
vue create . //this folder | |
--run |
This file contains 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
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks | |
RewriteEngine On | |
#redirect http->https, www->empty, index.php->empty | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ | |
RewriteRule ^index\.php$ https://hotel-shanell.ru/ [R=301,L] | |
RewriteRule ^(.*)=(.*) /$1$2 [L,R=301] | |
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] |
This file contains 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
\Bitrix\Main\Diag\Debug::writeToFile($signatureValue, '$signatureValue', '__#params_1.log'); | |
//php 8.1 | |
https://www.sng-it.ru/snippet/oshibki-pri-perekhode-sayta-na-bitrikse-na-php-8-1.html | |
//платежка | |
https://g-rain-design.ru/blog/posts/payment-handlers-bitrix-d7/ | |
//скорость выполнения скрипта | |
$time_start = microtime(true); |
This file contains 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/modules/main/include/prolog_before.php'); | |
require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/php_interface/libs/tcpdf/tcpdf.php"); | |
use Bitrix\Main\Application; | |
use Bitrix\Main\Context; | |
$obRequest = Application::getInstance()->getContext()->getRequest(); | |
$intID = $obRequest->get('id'); |
This file contains 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
####### GOOGLE console | |
https://search.google.com/test/rich-results?utm_campaign=devsite&utm_medium=jsonld&utm_source=article&id=biHfArES8wbgNoMSc0OMFw | |
$arSchemaOrg = array( | |
'@context' => 'http://schema.org', | |
'@type' => 'Article', | |
'name' => $arResult['NAME'], | |
'datePublished' => $strDateActive, | |
'author' => 'person', |
This file contains 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
<?php | |
use Bitrix\Main\Loader; | |
use Bitrix\Main\Diag\Debug; | |
Loader::includeModule('iblock'); | |
Loader::includeModule('catalog'); | |
AddEventHandler('iblock', 'OnAfterIBlockElementAdd', 'setProductMinPrice'); | |
AddEventHandler('iblock', 'OnAfterIBlockElementUpdate', 'setProductMinPrice'); |
This file contains 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
//html | |
<form enctype="multipart/form-data" method="post"> | |
<input type="file" name="place_file[]" multiple> | |
</fotm> | |
//php | |
$obContext = Context::getCurrent(); | |
$obRequest = $obContext->getRequest(); | |
$arFileAll = array(); |
NewerOlder