From: cajus Date: Tue, 30 Sep 2008 09:25:44 +0000 (+0000) Subject: Do not do parameter munging anymore - use common goto mechanisms and ctftpd X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=204cacfab08d275fabff823f42095fd49a3f5455;p=gosa.git Do not do parameter munging anymore - use common goto mechanisms and ctftpd git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12561 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc index 9ae9ad960..665acb09b 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc @@ -28,7 +28,6 @@ class termstartup extends plugin var $view_logged = FALSE; /* Helper */ - var $customParameters= ""; var $orig_dn= ""; var $ignore_account= TRUE; @@ -52,12 +51,6 @@ class termstartup extends plugin $this->$val= array_unique($this->$val); } - if (preg_match("/ o /", $this->gotoKernelParameters)){ - $this->customParameters= preg_replace ("/^.* o /", "", $this->gotoKernelParameters); - } else { - $this->customParameters= ""; - } - /* Prepare Shares */ if((isset($this->attrs['gotoShare']))&&(is_array($this->attrs['gotoShare']))){ unset($this->attrs['gotoShare']['count']); @@ -308,7 +301,7 @@ class termstartup extends plugin } /* Values */ - foreach(array("gotoBootKernel", "customParameters") as $val){ + foreach(array("gotoBootKernel", "gotoKernelParameters") as $val){ $smarty->assign($val, $this->$val); } @@ -338,8 +331,8 @@ class termstartup extends plugin } /* Save kernel parameters */ - if ($this->acl_is_writeable("gotoKernelParameters") && isset($_POST["customParameters"])){ - $this->customParameters= $_POST["customParameters"]; + if ($this->acl_is_writeable("gotoKernelParameters") && isset($_POST["gotoKernelParameters"])){ + $this->gotoKernelParameters= $_POST["gotoKernelParameters"]; } } } @@ -378,17 +371,6 @@ class termstartup extends plugin } } - /* Add semi automatic values */ - // FIXME: LDAP Server may not be set here... - $this->gotoKernelParameters= "root=/dev/nfs nfsroot=". - $this->gotoTerminalPath. - ",ro,hard,nolock,fg,rsize=8192 ". - "ip=::::::dhcp ldap=".base64_encode($this->gotoLdapServer); - - if ($this->customParameters != ""){ - $this->gotoKernelParameters.= " o ".$this->customParameters; - } - plugin::save(); /* Add missing arrays */ @@ -508,7 +490,7 @@ class termstartup extends plugin $source_o = new termstartup ($this->config, $source['dn']); - foreach(array("gotoModules", "gotoKernelParameters","gotoShares","customParameters","gotoTerminalPath","gotoShares","goLdapServerList","gotoBootKernel","gotoLdapServer","gotoBootKernels") as $attr){ + foreach(array("gotoModules", "gotoKernelParameters","gotoShares","gotoKernelParameters","gotoTerminalPath","gotoShares","goLdapServerList","gotoBootKernel","gotoLdapServer","gotoBootKernels") as $attr){ $this->$attr = $source_o->$attr; } } diff --git a/gosa-plugins/goto/admin/systems/goto/terminalStartup.tpl b/gosa-plugins/goto/admin/systems/goto/terminalStartup.tpl index 41d5bfa64..bd3c0413c 100644 --- a/gosa-plugins/goto/admin/systems/goto/terminalStartup.tpl +++ b/gosa-plugins/goto/admin/systems/goto/terminalStartup.tpl @@ -46,11 +46,11 @@ - + {render acl=$gotoKernelParametersACL} - + {/render}