Request['id']); $drive = intval($this->Request['drive']); $slot = intval($this->Request['slot']); $storage = $this->getModule('storage')->getStorageById($storageid); if(!is_null($storage)) { $storageMount = $this->getModule('bconsole')->bconsoleCommand($this->director, array('mount', 'storage="' . $storage->name . '"', 'drive=' . $drive, 'slot=' . $slot), $this->user); $this->output = $storageMount->output; $this->error = (integer)$storageMount->exitcode; } else { $this->output = StorageError::MSG_ERROR_STORAGE_DOES_NOT_EXISTS; $this->error = StorageError::ERROR_STORAGE_DOES_NOT_EXISTS; } } } ?>