removed obsolete code

This commit is contained in:
Roland Gruber 2010-06-06 18:14:58 +00:00
parent f71304ab8a
commit 108612fde3
1 changed files with 4 additions and 23 deletions

View File

@ -325,29 +325,10 @@ class sambaMungedDial
function getOnDemandFlags () function getOnDemandFlags ()
{ {
$result= array(); $result= array();
if ($_SESSION["js"]){
foreach ($this->timeParams as $value) {
if (!isset($this->ctx[$value]) || (isset($this->ctx[$value]) && $this->ctx[$value] == 0)) {
$result[$value."Mode"]= "disabled";
} else {
$result[$value."Mode"]= "";
}
}
if (substr($this->ctx['CtxCfgFlags1'], 6, 1) == "1") {
$result['CtxInitialProgramMode'] = "disabled";
} else {
$result['CtxInitialProgramMode'] = "";
}
}else{
foreach ($this->timeParams as $value) { foreach ($this->timeParams as $value) {
$result[$value."Mode"]= ""; $result[$value."Mode"]= "";
} }
$result['CtxInitialProgramMode'] = ""; $result['CtxInitialProgramMode'] = "";
}
return $result; return $result;
} }