summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 644fe22)
raw | patch | inline | side by side (parent: 644fe22)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Apr 2008 15:39:01 +0000 (15:39 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Apr 2008 15:39:01 +0000 (15:39 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10338 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc
index 2524c97cc6bc3d417fd9c9b686d8b74025b4e695..ee62ddd0963f38cfbaf16957afad1c82caf4859b 100644 (file)
if (preg_match('/^_/', $disk['partitions'][$name]['FAIfsType'])){
$disk['partitions'][$name]['FAIfsType']= preg_replace('/^_/', '', $disk['partitions'][$name]['FAIfsType']);
- $disk['partitions'][$name]['FAIencrypted']= true;
- } else {
- $disk['partitions'][$name]['FAIencrypted']= false;
}
}
}
$tmp[$attr] = "";
}
$tmp["old_cn"] = "";
- $tmp["FAIencrypted"] = FALSE;
$tmp['status']="new";
$this->partitions[count($this->partitions)+1]=$tmp;
}
$str .= "<td><b>"._("Mount options")."</b></td>";
$str .= "<td><b>"._("FS option")."</b></td>";
$str .= "<td><b>"._("Preserve")."</b></td>";
- $str .= "<td><b>"._("Encrypted")."</b></td>";
$str .= "<td> </td>";
$str .= "</tr>";
}
}else{
$str .= "\n<td><input type='checkbox' name='FAIpartitionFlags_".$key."' value='preserve' ".$changeState." ".$disableALL."></td>";
}
- if($part['FAIencrypted']!=false){
- $str .= "\n<td><input type='checkbox' name='FAIencrypted_".$key."' value='encrypted' checked></td>";
- }else{
- $str .= "\n<td><input type='checkbox' name='FAIencrypted_".$key."' value='encrypted'></td>";
- }
}else{
if($part['FAIpartitionFlags']!=false){
$str .= "<td>"._("False")."</td>";
}else{
$str .= "<td>"._("True")."</td>";
}
- if($part['FAIencrypted']!=false){
- $str .= "<td>"._("False")."</td>";
- }else{
- $str .= "<td>"._("True")."</td>";
- }
}
if($this->acl_is_removeable()){
$str .= "\n<td><input type='submit' name='Delete_".$key."' value='"._("Remove")."' ".$disableALL."></td>";
/* Attach partitions */
foreach($this->partitions as $key=>$val) {
- if (isset($this->partitions[$key]['FAIencrypted']) && $this->partitions[$key]['FAIencrypted']){
- unset ($this->partitions[$key]['FAIencrypted']);
- $this->partitions[$key]['FAIfsType']= "_".$this->partitions[$key]['FAIfsType'];
- }
$this->partitions[$key]['FAIpartitionNr']=$key;
}
}
}
- if($this->acl_is_writeable("FAIencrypted")){
-
- if(isset($_POST["FAIencrypted_".$key])){
- $this->partitions[$key]["FAIencrypted"] = $_POST["FAIencrypted_".$key];
- }else{
- $this->partitions[$key]["FAIencrypted"] = false;
- }
- }
-
/* Adapt ext3 to have -j option */
if ($this->partitions[$key]["FAIfsType"] == "ext3") {
$this->partitions[$key]["FAIfsOptions"]= preg_replace('/\s*-j\s*/', '', $this->partitions[$key]["FAIfsOptions"]);
"FAIpartitionSize" => _("Partition size"),
"FAImountOptions" => _("Mount options"),
"FAIfsOptions" => _("File system options"),
- "FAIencrypted" => _("File system encryption"),
"FAIpartitionFlags" => _("Partition flags"))
));
}