- Timestamp:
- Jan 29, 2018, 5:20:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lmd/trunk/fuentes/admin-center-ltsp.install/adminroot/uploadiso.php
r6716 r6726 33 33 public function save_file(){ 34 34 35 return array('result'=>False,"msg"=>"debug"); 35 36 $cliente = new N4D('localhost'); 36 37 try{ … … 38 39 $groups = array('adm','admin'); 39 40 if(!($result[0] && count(array_intersect($result[1],$groups)) >= 1)){ 40 return array("result"=> "False","msg"=>"");41 return array("result"=>False,"msg"=>"Invalid user"); 41 42 } 42 43 } 43 44 catch (Exception $e){ 44 return array("result"=> "False","msg"=>$e);45 return array("result"=>False,"msg"=>"Exception " . strval($e),"Exception"=>True); 45 46 } 46 47 … … 49 50 if (!is_null($target)){ 50 51 $result['result'] = move_uploaded_file($this->FILES[self::FORMISONAME]['tmp_name'],$target); 52 if(!$result['result']){ 53 $result['msg'] = "Error on upload file"; 54 } 51 55 } 52 56 return $result;
Note: See TracChangeset
for help on using the changeset viewer.