public function doMkvMerge() { $result = new ezcMvcResult; $result->variables['page_title'] = "MKV Merge command manager :: MKV Manager"; $result->variables['targetDisks'] = mmMkvManagerDiskHelper::diskList(); if ( isset( $_POST['WinCmd'] ) ) $result->variables += mmApp::doConvertWinCMD( $_POST['WinCmd'], $_POST['Target'] ); return $result; }
/** * Converts the windows MKVMerge command to a UNIX one and returns it */ public function doMkvMerge() { $result = new ezcMvcResult; $result->variables['targetDisks'] = mmMkvManagerDiskHelper::diskList(); if ( isset( $_POST['WinCmd'] ) ) $winCmd = $_POST['WinCmd']; if ( isset( $_POST['Target'] ) ) $targetDisk = $_POST['Target']; if ( isset( $winCmd, $targetDisk ) ) { $result->variables = mmApp::doConvertWinCMD( $winCmd, $targetDisk ); } return $result; }