global $USER; if (!$USER->IsAdmin()) { $APPLICATION->AuthForm(GetMessage('ACCESS_DENIED')); } require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/learning/classes/general/legacy/converter_to_11.5.0.php'; IncludeModuleLangFile(__FILE__); if (isset($_REQUEST['learning_process']) && $_REQUEST['learning_process'] === 'Y') { CUtil::JSPostUnescape(); require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_js.php'; $processedSummary = 0; $processedAtLastStep = false; if (isset($_REQUEST['processedSummary'])) { $processedSummary = (int) $_REQUEST['processedSummary']; } try { $rc = CLearnInstall201203ConvertDB::run(); if (strlen($rc) > 0) { throw new Exception($rc); } $processedAtLastStep = (int) CLearnInstall201203ConvertDB::$items_processed; } catch (Exception $e) { // nothing to do here } ?> <script> CloseWaitWindow(); </script> <?php if (is_int($processedAtLastStep)) { $processedSummary += $processedAtLastStep; }