feat(legacy): read stream config from file

- We don't delete the stream preferences from the database to prevent data loss. This will be handled in a future release.
This commit is contained in:
jo 2022-09-06 12:00:50 +02:00 committed by Kyle Robbertze
parent ba73866e47
commit 5bf62dd9cb
14 changed files with 498 additions and 1237 deletions

View file

@ -11,39 +11,11 @@
<h3><?php echo _("Global") ?></h3>
<fieldset class="padded stream-setting-global">
<dl class="zend_form">
<?php if ($this->form->getElement('output_sound_device') != null) { ?>
<dt id="hardwareOut-label">
<label class="required">
<?php echo $this->form->getElement('output_sound_device')->getLabel() ?> :
</label>
</dt>
<dd id="hardwareOut-element">
<?php echo $this->form->getElement('output_sound_device') ?>
</dd>
<dt id="hardwareOutType-label">
<label class="required">
<?php echo $this->form->getElement('output_sound_device_type')->getLabel() ?> :
</label>
</dt>
<dd id="hardwareOutType-element">
<?php echo $this->form->getElement('output_sound_device_type') ?>
</dd>
<?php } ?>
<dt id="vorbisMetadata-label">
<label class="required">
<?php echo $this->form->getElement('icecast_vorbis_metadata')->getLabel() ?> :
<span class='icecast_metadata_help_icon'></span>
</label>
</dt>
<dd id="vorbisMetadata-element">
<?php echo $this->form->getElement('icecast_vorbis_metadata') ?>
</dd>
<dt id="streamFormat-label">
<label class="optional"><?php echo $this->form->getElement('streamFormat')->getLabel() ?></label>
</dt>
<br>
<dd id="streamFormat-element" class="radio-inline-list">
<dd id="streamFormat-element" class="radio-list">
<?php $i = 0;
$value = $this->form->getElement('streamFormat')->getValue();
?>
@ -52,7 +24,7 @@
<input type="radio" value="<?php echo $i ?>" id="streamFormat-<?php echo $i ?>" name="streamFormat" <?php if ($i == $value) {
echo 'checked="checked"';
} ?>>
<?php echo $radio ?> <br><br>
<?php echo $radio ?><br><br>
</input>
</label>
<?php $i = $i + 1; ?>
@ -65,6 +37,7 @@
</ul>
<?php endif; ?>
</dd>
<dt id="offAirMeta-label">
<label>
<?php echo $this->form->getElement('offAirMeta')->getLabel() ?> :
@ -73,6 +46,7 @@
<dd id="offAirMeta-element">
<?php echo $this->form->getElement('offAirMeta') ?>
</dd>
<dt id="enableReplayGain-label">
<label>
<?php echo $this->form->getElement('enableReplayGain')->getLabel() ?> :
@ -108,8 +82,6 @@
<h3><?php echo _("Output Streams") ?></h3>
<fieldset class="padded">
<?php
// TODO: replace this with something that looks good
echo $this->form->getElement('customStreamSettings')->render();
for ($i = 1; $i <= $this->num_stream; $i++) {
echo $this->form->getSubform("s" . $i . "_subform");
}