grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026currentStep = isset($_REQUEST['current_step']) ? ($_REQUEST['current_step'] + 1) : 1; } /** * @see SugarView::display() */ public function display() { global $mod_strings, $sugar_config; // Check to be sure we are getting an import file that is in the right place $uploadFile = "upload://".basename($_REQUEST['tmp_file']); if (!file_exists($uploadFile)) { trigger_error($mod_strings['LBL_CANNOT_OPEN'], E_USER_ERROR); } // Open the import file $importSource = new ImportFile($uploadFile, $_REQUEST['custom_delimiter'], html_entity_decode($_REQUEST['custom_enclosure'], ENT_QUOTES)); //Ensure we have a valid file. if (!$importSource->fileExists()) { trigger_error($mod_strings['LBL_CANNOT_OPEN'], E_USER_ERROR); } if (!ImportCacheFiles::ensureWritable()) { trigger_error($mod_strings['LBL_ERROR_IMPORT_CACHE_NOT_WRITABLE'], E_USER_ERROR); } $importer = new Importer($importSource, $this->bean); $importer->import(); } }