По материалам сайта Calculate Linux: https://www.calculate-linux.org/main/ru/git
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
Создание и настройка ssh ключей | |
1. Запустите Git Bash и введите | |
ssh-keygen -t rsa -C "your@email.ru" | |
2. На вопрос “Enter file in which to save the key” введите id_rsa и нажмите “Enter” | |
3. Далее введите любой пароль, и подтвердите его (лучше пропустить, потому что каждый раз при соединении с github, придется вводить его) |
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
Axure RP 7.0注册码 | |
用户名:axureuser | |
序列号:8wFfIX7a8hHq6yAy6T8zCz5R0NBKeVxo9IKu+kgKh79FL6IyPD6lK7G6+tqEV4LG |
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 | |
namespace Grizzly; | |
use Bitrix\Main\Loader; | |
/* | |
$param = array( | |
'id' => 38, | |
'width' => 1200, | |
'height' => 999999, | |
'resize' => 'DETAIL_PICTURE' |
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
Сначала нужно выполнить | |
http://<сайт>/bitrix/admin/1c_exchange.php?type=sale&mode=checkauth | |
В четвертой строке сайт вернет токен(session id) | |
затем | |
http://<сайт>/bitrix/admin/1c_exchange.php?type=sale&mode=init + "&" + токен + "&version=2.08" | |
затем |
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
<? | |
//Отправка логина и пароля | |
AddEventHandler("main", "OnAfterUserAdd", array('UserHandler', "CSendUserPass")); | |
//Подстановка e-mail как логин | |
AddEventHandler("main", "OnBeforeUserRegister", array('UserHandler', "OnBeforeUserRegister")); | |
class UserHandler | |
{ | |
public static function CSendUserPass($arFields) | |
{ |
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
<? | |
foreach($arResult["ITEMS"] as $index => $arItem) | |
{ | |
if (!empty($arItem["PROPERTIES"]["PHOTO_MAIN"]["VALUE"])) | |
{ | |
$arResult["ITEMS"][$index]["PROPERTIES"]["PHOTO_MAIN"]["SRC"] = CFile::GetPath($arItem["PROPERTIES"]["PHOTO_MAIN"]["VALUE"]); | |
} | |
} |
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
<a id="go-to-top" href="#" class="go-to-top" role="button" title="Вверх"> | |
<i class="fa fa-chevron-up" aria-hidden="true"></i> | |
</a> |
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
<? | |
AddEventHandler("sale", "OnOrderNewSendEmail", "OnOrderNewSendEmailNewFields"); | |
function OnOrderNewSendEmailNewFields($orderID, &$eventName, &$arFields){ | |
$arOrder = CSaleOrder::GetByID($orderID); | |
$country = ""; | |
$city = ""; | |
$address = ""; | |
$order_props = CSaleOrderPropsValue::GetOrderProps($orderID); | |
while ($arProps = $order_props->Fetch()){ |
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
<? | |
if (!CModule::IncludeModule('sale') | |
|| !CModule::IncludeModule('iblock') | |
|| !CModule::IncludeModule('catalog') | |
|| !CModule::IncludeModule('currency')) | |
die(); | |
global $USER, $APPLICATION; | |
$work = true; |
NewerOlder