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
| <? | |
| //https://g-rain-design.ru/components/seofunc/help/ | |
| //https://dev.1c-bitrix.ru/community/webdev/user/87386/blog/9317/ | |
| //Подключаем модуль инфоблоков | |
| if (\Bitrix\Main\Loader::includeModule('iblock')) | |
| { | |
| //регистрируем обработчик события |
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
| <? | |
| //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 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
| <? | |
| function GetClassMethods($object){ | |
| $arReturn = array(); | |
| $class = new \ReflectionClass($object); | |
| foreach($class->getMethods() as $method){ | |
| if($method->isPublic()){ |
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://nl1.php.net/manual/en/function.imagecreatefromstring.php |
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
| 1)Нужно дать группе доступ (право чтения) на папку /bitrix/admin/ | |
| 2)При изменении прав доступа в группе нужно перепривязать всех пользователей. Они сами отвязываются !!!!!! Берут и сами отвязываются !"№;%:?*() |
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
| Проверить доступы к папке /upload/ и подпапкам |
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
| <?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 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
| file order_ajax.js | |
| 1) | |
| editActiveRegionBlock: function(activeNodeMode) | |
| { | |
| //добавить этот код в начало фукцнии editActiveRegionBlock | |
| var node = activeNodeMode ? this.regionBlockNode : this.regionHiddenBlockNode, | |
| regionContent, regionNode, regionNodeCol; | |
| regionContent = node.querySelector('.bx-soa-section-content'); |
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
| <? | |
| define("NO_KEEP_STATISTIC", true); // Не собираем стату по действиям AJAX | |
| define('NO_AGENT_CHECK', true); | |
| define("NOT_CHECK_PERMISSIONS", true); | |
| require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
| $action = (string)$_REQUEST['ajax_action']; | |
| if($action == "component"){ | |
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
| <?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"); |