index bc45bf43bab13e8b145d74a1060e8bae869f8498..4437598370f824dc89d5c1c064c521e8986c286f 100644 (file)
/* Post handling for Section, Release and Mirror Setup */
if(isset($_POST['SetRepository'])){
- if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){
- $this->FAIdebianRelease = $_POST['FAIdebianReleaseS'];
- }
- if((isset($_POST['FAIdebianMirrorS']))&&(!empty($_POST['FAIdebianMirrorS']))){
- $this->FAIdebianMirror = $_POST['FAIdebianMirrorS'];
- }
-
foreach($this->sections as $sec => $val){
if(isset($_POST[$sec])){
$this->sections[$sec]=true;
}elseif(empty($this->FAIdebianSection)){
$disableRelease = $disableMirror = $disableContinue = true;
}elseif(empty($this->FAIdebianMirror)){
- $disableRelease = $disableSection = $disableContinue = true;
+ $disableRelease = $disableSection = true;
}else{
$disableRelease = $disableSection = true;
}
$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);
/* Save data to object */
function save_object()
{
+ if(isset($_POST['SetRepository'])){
+ /* Post handling for Section, Release and Mirror Setup */
+ if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){
+ $this->FAIdebianRelease = $_POST['FAIdebianReleaseS'];
+ }
+ if((isset($_POST['FAIdebianMirrorS']))&&(!empty($_POST['FAIdebianMirrorS']))){
+ $this->FAIdebianMirror = $_POST['FAIdebianMirrorS'];
+ }
+ }
}
/* Check supplied data */