From: cajus Date: Thu, 10 Apr 2008 15:39:01 +0000 (+0000) Subject: Removed encryption in favor of FAI classes. Closes #414 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a65fbea6dd38a42b4e5748b05f4225f1dc07dd8f;p=gosa.git Removed encryption in favor of FAI classes. Closes #414 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10338 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc index 2524c97cc..ee62ddd09 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc @@ -67,9 +67,6 @@ class faiPartitionTableEntry extends plugin 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; } } } @@ -146,7 +143,6 @@ class faiPartitionTableEntry extends plugin $tmp[$attr] = ""; } $tmp["old_cn"] = ""; - $tmp["FAIencrypted"] = FALSE; $tmp['status']="new"; $this->partitions[count($this->partitions)+1]=$tmp; } @@ -196,7 +192,6 @@ class faiPartitionTableEntry extends plugin $str .= ""._("Mount options").""; $str .= ""._("FS option").""; $str .= ""._("Preserve").""; - $str .= ""._("Encrypted").""; $str .= " "; $str .= ""; } @@ -287,22 +282,12 @@ class faiPartitionTableEntry extends plugin }else{ $str .= "\n"; } - if($part['FAIencrypted']!=false){ - $str .= "\n"; - }else{ - $str .= "\n"; - } }else{ if($part['FAIpartitionFlags']!=false){ $str .= ""._("False").""; }else{ $str .= ""._("True").""; } - if($part['FAIencrypted']!=false){ - $str .= ""._("False").""; - }else{ - $str .= ""._("True").""; - } } if($this->acl_is_removeable()){ $str .= "\n"; @@ -327,10 +312,6 @@ class faiPartitionTableEntry extends plugin /* 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; } @@ -372,15 +353,6 @@ class faiPartitionTableEntry extends plugin } } - 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"]); @@ -504,7 +476,6 @@ class faiPartitionTableEntry extends plugin "FAIpartitionSize" => _("Partition size"), "FAImountOptions" => _("Mount options"), "FAIfsOptions" => _("File system options"), - "FAIencrypted" => _("File system encryption"), "FAIpartitionFlags" => _("Partition flags")) )); }