<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Input\Response; use ModStart\Data\DataManager; class FileTemp extends AbstractField { protected $width = 80; protected static $js = array('asset/common/uploadButton.js'); protected function setup() { $this->addVariables(array('server' => modstart_admin_url('data/file_manager/file'))); } public function server($aA0oj) { $this->addVariables(array('server' => $aA0oj)); return $this; } public function prepareInput($tzAUI, $pWRTh) { if (DataManager::isDataTemp($tzAUI)) { goto R4eWU; R4eWU: $uotzZ = DataManager::storeTempDataByPath($tzAUI); goto TaPZo; zFNbB: return DataManager::fix($uotzZ['data']['path']); goto QzfMJ; TaPZo: if (Response::isError($uotzZ)) { return $tzAUI; } goto zFNbB; QzfMJ: } return $tzAUI; } }