Merge remote-tracking branch 'origin/saas-stream-settings' into saas-dev
This commit is contained in:
commit
e49d337db0
14 changed files with 240 additions and 170 deletions
|
@ -11,6 +11,7 @@ class ProvisioningHelper
|
|||
private $dbuser, $dbpass, $dbname, $dbhost, $dbowner, $apikey;
|
||||
private $instanceId;
|
||||
private $stationName, $description;
|
||||
private $defaultIcecastPassword;
|
||||
|
||||
public function __construct($apikey)
|
||||
{
|
||||
|
@ -118,6 +119,9 @@ class ProvisioningHelper
|
|||
if (isset($_POST['description'])) {
|
||||
$this->description = $_POST['description'];
|
||||
}
|
||||
if (isset($_POST['icecast_pass'])) {
|
||||
$this->defaultIcecastPassword = $_POST['icecast_pass'];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -208,6 +212,9 @@ class ProvisioningHelper
|
|||
if ($this->description) {
|
||||
Application_Model_Preference::SetStationDescription($this->description);
|
||||
}
|
||||
if (isset($this->defaultIcecastPassword)) {
|
||||
Application_Model_Preference::setDefaultIcecastPassword($this->defaultIcecastPassword);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue