* @package client * @link https://www.zentao.net */ class clientZen extends client { /** * 检查是否有权限添加或编辑客户端版本。 * Check the permission of add or edit client version. * * @access public * @return void */ public function checkSafeFile() { $statusFile = $this->loadModel('common')->checkSafeFile(); if($statusFile) { $statusFile = str_replace('\\', '/', $statusFile); $error = sprintf($this->lang->noticeOkFile, $statusFile, $statusFile); if($_POST) { $error = str_replace("\n", '', $error); return $this->send(array('result' => 'fail', 'callback' => "zui.Modal.alert({message: {html: \"{$error}\"}, size: 'sm'})")); } $this->view->error = $error; } } }