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://skill.vpvd.ru/oshibka-udaleniya-tovara.html | |
1) Оключить складской учет | |
2) Обнуть остатки товара | |
3) включить складской учет | |
4) Перейти в Мазазин->Складской учет->Документы | |
5) Отменить (обратить) проводку документов | |
По необходимости: | |
6) Удалить документ | |
7) Оключить складской учет |
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://www.redhat.com/archives/axp-list/2001-January/msg00355.html | |
//http://brokestream.com/procstat.html | |
//https://github.com/hackman/linux-sysadmin-course/blob/master/additional/lecture-03/proc-pid-status-explained.txt | |
$pid = getmypid(); | |
exec('cat /proc/'.$pid.'/stat', $stat); | |
$a = explode(" ",$stat[0]); |
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://nl1.php.net/manual/en/function.imagecreatefromstring.php |
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
1)Нужно дать группе доступ (право чтения) на папку /bitrix/admin/ | |
2)При изменении прав доступа в группе нужно перепривязать всех пользователей. Они сами отвязываются !!!!!! Берут и сами отвязываются !"№;%:?*() |
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
Проверить доступы к папке /upload/ и подпапкам |
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 | |
//http://stackoverflow.com/questions/6222215/regex-for-validating-folder-name-file-name | |
function validateFileName($file_name){ | |
return str_replace("\\/?%*:|\"<>","_",$file_name); | |
} |
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 | |
$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../../"); | |
$DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"]; | |
define("NO_KEEP_STATISTIC", true); | |
define("NOT_CHECK_PERMISSIONS",true); | |
define('CHK_EVENT', true); | |
define('BX_NO_ACCELERATOR_RESET', true); | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); |
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
function calcAllCombinations($count){ | |
// js original from | |
//https://ru.stackoverflow.com/questions/235030/%D0%9A%D0%B0%D0%BA-%D1%81%D0%BE%D1%81%D1%82%D0%B0%D0%B2%D0%B8%D1%82%D1%8C-%D0%B2%D0%BE%D0%B7%D0%BC%D0%BE%D0%B6%D0%BD%D1%8B%D0%B5-%D0%BA%D0%BE%D0%BC%D0%B1%D0%B8%D0%BD%D0%B0%D1%86%D0%B8%D0%B8-%D0%BC%D0%B5%D0%B6%D0%B4%D1%83-%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D0%BC%D0%B8-%D0%BC%D0%BD%D0%BE%D0%B6%D0%B5%D1%81%D1%82%D0%B2 | |
//http://jsfiddle.net/ivanovsuper/Cdxak/ | |
$init_matrix = array(); | |
for($i=0; $i<$count; $i++){ | |
for($j=0; $j<$count; $j++){ | |
//$init_matrix[$j] = $j; | |
$init_matrix[$i][$j] = $j; |
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
<? | |
function generate_combinations($n, $k){ | |
//N=6, {1,2,3,4,5,6}, k=4 | |
//!!! N > K always | |
//http://forum.sources.ru/index.php?showtopic=330364 | |
$ret = array(); | |
$A = array(); | |
for($i = 1; $i<=$k; $i++){ | |
$A[$i] = $i; //Первое подмножество |
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 | |
function getSaleEmail($orAdmin = false){ | |
$saleEmail = COption::GetOptionString('sale', 'order_email', ''); | |
if($orAdmin){ | |
if(empty($saleEmail)){ | |
$saleEmail = COption::GetOptionString('main', 'email_from', ''); | |
} | |
} | |
return $saleEmail; |
OlderNewer