* Moved register_media under CBSD

This commit is contained in:
Momchil Bozhinov
2021-02-23 23:24:28 +02:00
parent 9ad42d0b84
commit b43aab5a10
3 changed files with 16 additions and 15 deletions

View File

@@ -2239,19 +2239,6 @@ class ClonOS {
return '<span class="cbsd-str">'.$cmd_string.'</span>';
}
function register_media($path,$file,$ext){
$cmd='cbsd media mode=register name=%s path=%s type=%s';
$res=CBSD::run($cmd, array($file, $path.$file, $ext));
if($res['error']){
$arr['error']=true;
$arr['error_message']='File image not registered!';
} else {
$arr['error']=false;
}
echo json_encode($arr);
}
function media_iso_list_html(){
// $form=$this->form;
$db=new Db('base','storage_media');