index 45ca89db01546d63ebe7750bf5dc6e6aa29e1e38..3505c39f853e42f11bd6c69b0f197b554e153c3b 100644 (file)
}elseif(empty($this->FAIdebianSection)){
$disableRelease = $disableMirror = $disableContinue = true;
}elseif(empty($this->FAIdebianMirror)){
- $disableRelease = $disableSection = $disableContinue = true;
+ $disableRelease = $disableSection = true;
}else{
$disableRelease = $disableSection = true;
}
/* check servers matching release and section settings */
$availableServer = array();
foreach($this->mirrors as $mir){
+
+ /* Check if release and section match */
if($mir['release'] == $this->FAIdebianRelease){
$pass = true;
+
foreach($this->FAIdebianSection as $sec){
+
+ /* If a mirror match, attach */
if($sec != $mir['section']){
$pass = false;
}
+
+ /* Save all matching */
if($pass){
$availableServer[$mir['mirror']]=$mir['mirror'];
}
$smarty->assign("SectionACL"," disabled ");
}
+
+ $smarty->assign("DisSection",!empty($this->FAIdebianSection));
+ $smarty->assign("DisRelease",!empty($this->FAIdebianRelease));
+
$smarty->assign("mirrors" ,$availableServer);
$smarty->assign("mirror" ,$this->FAIdebianMirror);
$smarty->assign("releases",$this->releases);