%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.129.70.238 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/esol.importexportexcel/admin/ |
Upload File : |
<? if(!defined('NO_AGENT_CHECK')) define('NO_AGENT_CHECK', true); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/iblock/prolog.php"); $moduleId = 'esol.importexportexcel'; CModule::IncludeModule($moduleId); IncludeModuleLangFile(__FILE__); $MODULE_RIGHT = $APPLICATION->GetGroupRight($moduleId); if($MODULE_RIGHT < "W") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); if($_GET['action']=='getprofilesfromfile') { define('PUBLIC_AJAX_MODE', 'Y'); $APPLICATION->RestartBuffer(); ob_end_clean(); $oProfile = new \CKDAExportProfile(); $arResult = $oProfile->GetProfilesFromBackup($_FILES['RESTORE_FILE']); echo \CUtil::PhpToJSObject($arResult); die(); } if($_POST['action']=='save') { define('PUBLIC_AJAX_MODE', 'Y'); $APPLICATION->RestartBuffer(); ob_end_clean(); $oProfile = new \CKDAExportProfile(); $arResult = $oProfile->RestoreBackup($_FILES['RESTORE_FILE'], $_POST['PARAMS']); echo \CUtil::PhpToJSObject($arResult); die(); /*$APPLICATION->RestartBuffer(); ob_end_clean(); CKDAImportExtrasettings::HandleParams($PEXTRASETTINGS, $_POST['EXTRASETTINGS']); preg_match_all('/\[([_\d]+)\]/', $fieldName, $keys); $oid = 'field_settings_'.$keys[1][0].'_'.$keys[1][1]; if($_GET['return_data']) { $returnJson = (empty($PEXTRASETTINGS[$keys[1][0]][$keys[1][1]]) ? '""' : CUtil::PhpToJSObject($PEXTRASETTINGS[$keys[1][0]][$keys[1][1]])); echo '<script>EList.SetExtraParams("'.$oid.'", '.$returnJson.')</script>'; } else { $oProfile->UpdateExtra($_REQUEST['PROFILE_ID'], $PEXTRASETTINGS); if(!empty($PEXTRASETTINGS[$keys[1][0]][$keys[1][1]])) echo '<script>$("#'.$oid.'").removeClass("inactive");</script>'; else echo '<script>$("#'.$oid.'").addClass("inactive");</script>'; echo '<script>BX.WindowManager.Get().Close();</script>'; } die();*/ } require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_popup_admin.php"); ?> <form action="" method="post" enctype="multipart/form-data" name="restore_profiles" id="restore_profiles"> <input type="hidden" name="action" value="save"> <?/*if($error){ ShowError($error); ?><script> EProfileList.RestoreDialogButtonsSet(true); </script><? }*/?> <table width="100%"> <col width="40%"> <col width="60%"> <tr> <td class="adm-detail-content-cell-l"><?echo GetMessage("KDA_IE_RESTORE_FILE");?>:</td> <td class="adm-detail-content-cell-r"> <input type="file" name="RESTORE_FILE"> </td> </tr> <tr> <td class="adm-detail-content-cell-l"><?echo GetMessage("KDA_IE_RESTORE_TYPE");?>:</td> <td class="adm-detail-content-cell-r"> <label><input type="radio" name="PARAMS[RESTORE_TYPE]" value="ADD" checked> <?echo GetMessage("KDA_IE_RESTORE_TYPE_ADD");?></label><br> <label><input type="radio" name="PARAMS[RESTORE_TYPE]" value="REPLACE"> <?echo GetMessage("KDA_IE_RESTORE_TYPE_REPLACE");?></label> </td> </tr> <tr id="kda_restore_profile_list_row" style="display: none;"> <td class="adm-detail-content-cell-l" valign="top"><?echo GetMessage("KDA_IE_RESTORE_PROFILE_CHOOSE");?>:</td> <td class="adm-detail-content-cell-r" valign="top"> <div id="kda_restore_profile_list"></div> </td> </tr> </table> </form> <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_popup_admin.php");?>