public function putFile($filename, $nls = 'none', $originalName = null) { $filename = (string) $filename; $nls = (string) $nls; if (!isset($originalName)) { $originalName = $filename; } $originalName = (string) $originalName; $registeredFiles = (array) $this->store->getvar('registeredFiles'); $error = ''; $fileInfo = ldRegisterFile($originalName, $error); if (!$error) { $cleanInfo = array('name' => $fileInfo[$originalName], 'temp' => $fileInfo[$originalName . '_temp'], 'size' => $fileInfo[$originalName . '_size'], 'type' => $fileInfo[$originalName . '_type']); $registeredFiles[$filename][$nls] = $cleanInfo; $this->store->putvar('registeredFiles', $registeredFiles); $result = $cleanInfo; } else { $result = ar('error')->raiseError($error, 501); } return $result; }
<div class="sourcepath"> <?php echo $ARnls['importobject'] . " {$srcpath}"; ?> <div id="progressbar"> <div id="progress"></div> <div id="progress_text">0/<?php echo $total; ?> </div> </div> </div> </div> <div id="progress_verbose"></div> <?php $file = ldRegisterFile("source", $this->error); if ($file && !$this->error) { require $this->store->get_config("code") . "/configs/axstore.phtml"; include $this->store->get_config("code") . "/stores/axstore.phtml"; $ARCurrent->options["verbose"] = true; if ($without_grants = $this->getdata("without_grants", "none")) { $ARCurrent->options["without_grants"] = true; } if ($without_data = $this->getdata("without_data", "none")) { $ARCurrent->options["without_data"] = true; } if ($without_templates = $this->getdata("without_templates", "none")) { $ARCurrent->options["without_templates"] = true; } if ($without_files = $this->getdata("without_files", "none")) { $ARCurrent->options["without_files"] = true;