Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/wizards/bitrix/demo/modules/iblock/ |
Upload File : |
<? if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); //Library include_once(dirname(__FILE__)."/iblock_tools.php"); __IncludeLang(GetLangFileName(dirname(__FILE__)."/lang/", "/".basename(__FILE__))); //Parameters if(!is_array($arParams)) $arParams = array(); if(strlen($arParams["site_id"]) <= 0) $arParams["site_id"] = "s1"; //Import XML if($IBLOCK_ID = DEMO_IBlock_ImportXML("040_services_services-links_".LANGUAGE_ID.".xml", $arParams["site_id"], false, true)) { $import = new CIBlockCMLImport(); //Create directory and copy files $search = array( "#IBLOCK.ID(XML_ID=services-links)#", "#IBLOCK_PROPERTY.ID(XML_ID=services-links-property-url)#", "#IBLOCK_PROPERTY.ID(XML_ID=services-links-property-email)#", "#IBLOCK_PROPERTY.ID(XML_ID=services-links-property-user_id)#", ); $replace = array( $IBLOCK_ID, $import->GetPropertyByXML_ID($IBLOCK_ID, "services-links-property-url"), $import->GetPropertyByXML_ID($IBLOCK_ID, "services-links-property-email"), $import->GetPropertyByXML_ID($IBLOCK_ID, "services-links-property-user_id"), ); DEMO_IBlock_CopyFiles("/public/content/links/", "/content/links/", false, $search, $replace); DEMO_IBlock_CopyFiles("/public/content/links/my/", "/content/links/my/", false, $search, $replace); //Add menu item DEMO_IBlock_AddMenuItem("/content/.left.menu.php", Array( GetMessage("DEMO_IBLOCK_CONTENT_LINKS_MENU"), "/content/links/", Array(), Array(), "", )); } ?>