summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d45d43d)
raw | patch | inline | side by side (parent: d45d43d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 06:14:00 +0000 (06:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 06:14:00 +0000 (06:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4431 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_terminalStartup.inc | patch | blob | history | |
plugins/admin/systems/terminalStartup.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index 84c72ffb0cdca81346b7b3830114e68900073f6f..d325b74781be91868baee2c6935406b918953f11 100644 (file)
/* Generic terminal attributes */
var $bootmode= "G";
var $goLdapServerList= array();
- var $gotoBootKernel= "";
+ var $gotoBootKernel= "default-inherit";
var $gotoKernelParameters= "";
var $gotoLdapServer= "";
var $gotoModules= array();
{
plugin::plugin ($config, $dn);
- $this->gotoBootKernels = array("default"=>"["._("inherited")."]");
+ $this->gotoBootKernels = array("default-inherit"=>"["._("inherited")."]");
/* Get arrays */
foreach (array("gotoModules") as $val){
} else {
$fh= popen($command, "r");
while (!feof($fh)) {
- $buffer= fgets($fh, 256);
+ $buffer= trim(fgets($fh, 256));
+
+ $name=$value = $buffer;
+
+ if(preg_match("/:/",$buffer)){
+ $name = preg_replace("/:.*$/","",$buffer);
+ $value= preg_replace("/^.*:/","",$buffer);
+ }
+
if(!empty($buffer)){
- $this->gotoBootKernels[]= $buffer;
+ $this->gotoBootKernels[$name]= $value;
}
}
pclose($fh);
$tmp = $this->config->data['SERVERS']['LDAP'];
foreach($tmp as $server){
$visible = $server;
- if($server == "default"){
+ if($server == "default-inherit"){
$visible = "["._("inherited")."]";
}
$this->goLdapServerList[$server] = $visible;
switch ($name){
case 'gotoLdapServer':
- $this->goLdapServerList= array_merge(array('default' => _("inherited").' ['.$attrs[$name][0].']' ), $this->goLdapServerList);
+ $this->goLdapServerList= array_merge(array('default-inherit' => _("inherited").' ['.$attrs[$name][0].']' ), $this->goLdapServerList);
break;
}
}
/* Find proper terminal path for tftp configuration
FIXME: This is suboptimal when the default has changed to
another location! */
- if ($this->gotoTerminalPath == "default"){
+ if ($this->gotoTerminalPath == "default-inherit"){
$ldap= $this->config->get_ldap_link();
/* Strip relevant part from dn, keep trailing ',' */
/* Strip out 'default' values */
foreach(array("gotoBootKernel","gotoLdapServer") as $value){
- if (!isset($this->attrs[$value]) || $this->attrs[$value] == "default"){
+ if (!isset($this->attrs[$value]) || $this->attrs[$value] == "default-inherit"){
$this->attrs[$value] = array();
}
}
index e45fa874a85cc0039f1b09636471ee324a29492d..6a5d38f02a7c53a1d14f2930071dcff0a50b4083 100644 (file)
<tr>
<td style="width:30%"><LABEL for="gotoBootKernel">{t}Boot kernel{/t}</LABEL></td>
<td>
- <select id="gotoBootKernel" name="gotoBootKernel" {$gotoBootKernelACL} onchange='document.mainform.submit()'>
+ <select id="gotoBootKernel" name="gotoBootKernel" {$gotoBootKernelACL}>
{html_options options=$gotoBootKernels selected=$gotoBootKernel}
<option disabled> </option>
</select>