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/modules/htmls.1c77exchange/admin/ |
Upload File : |
<? define('BX_SESSION_ID_CHANGE', false); define('BX_SKIP_POST_UNQUOTE', true); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); //error_reporting(E_ALL); ?> <? IncludeModuleLangFile(__FILE__); $res = CModule::IncludeModuleEx('htmls.1c77exchange'); //echo $res; if($res == 3) die(utf2win($MESS["V77EXCHANGE_MODULE_DEMO_EXPIRED"])); if($_REQUEST['mode'] == 'init'){ $res = COption::GetOptionString("catalog", "1C_USE_ZIP", "Y"); if(CModule::IncludeModuleEx("htmls.1c77plus") < 3){ $res .= '@' . COption::GetOptionString("htmls.1c77exchange", "V77EXCHANGE_USE_STORE", "N");; } else{ $res .= '@N'; } $res .= '@' . COption::GetOptionString("htmls.1c77exchange", "V77EXCHANGE_USE_SKU", "N"); $res .= '@' . COption::GetOptionString("catalog", "1C_SKIP_ROOT_SECTION", "N"); $res .= '@' . COption::GetOptionString("htmls.1c77exchange", "V77EXCHANGE_CATALOG_USE_BASE64", "N"); echo $res; } if($_REQUEST['type'] == 'catalog'){ CModule::IncludeModule('iblock'); CModule::IncludeModule('catalog'); $V7Exchange = new CV7ExchangeProcessing; if($_REQUEST['mode'] == 'checkauth'){ $V7Exchange->Auth(); } if($_REQUEST['mode'] == 'file'){ $V7Exchange->Upload(); } if($_REQUEST['mode'] == 'import'){ $file = $_REQUEST['filename']; if($file == 'file'){ $V7Exchange->ImportOffLine(); } else{ $V7Exchange->Import(); } } } if($_REQUEST['type'] == 'sale'){ CModule::IncludeModule('sale'); $V7Exchange = new CV7ExchangeProcessing; if($_REQUEST['mode'] == 'checkauth'){ $V7Exchange->Auth(); } if($_REQUEST['mode'] == 'query'){ $V7Exchange->Export(); } if($_REQUEST['mode'] == 'status'){ $V7Exchange->SetStatus(); } } function utf2win($str) { if(strtoupper(LANG_CHARSET) == 'UTF-8') return iconv('UTF-8', 'WINDOWS-1251', $str); else return $str; } ?> <? require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php"); ?>