CC-2727: Limit number of streams and max bitrate

- create airtime-stream php script to set number of streams and max bitrate
- the stream section itself is not displayed rather than grey out
This commit is contained in:
james 2011-08-26 15:41:20 -04:00
parent d992457bd5
commit b92793e80f
6 changed files with 146 additions and 4 deletions

View file

@ -7,7 +7,7 @@ class Application_Model_Preference
global $CC_CONFIG, $CC_DBC;
//called from a daemon process
if(!Zend_Auth::getInstance()->hasIdentity()) {
if(!class_exists("Zend_Auth", false) || !Zend_Auth::getInstance()->hasIdentity()) {
$id = NULL;
}
else {
@ -394,5 +394,21 @@ class Application_Model_Preference
public static function GetPrivacyPolicyCheck(){
return Application_Model_Preference::GetValue("privacy_policy");
}
public static function SetNumOfStream($num){
Application_Model_Preference::SetValue("num_of_streams", intval($num));
}
public static function GetNumOfStream(){
return Application_Model_Preference::GetValue("num_of_streams");
}
public static function SetMaxBitrate($bitrate){
Application_Model_Preference::SetValue("max_bitrate", intval($bitrate));
}
public static function GetMaxBitrate(){
return Application_Model_Preference::GetValue("max_bitrate");
}
}