From: hickert Date: Thu, 10 Aug 2006 03:56:05 +0000 (+0000) Subject: Readded default:value to startup tabs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=07f8763f0f2d1296484fbfa1ee967fdd7b0a80e9;p=gosa.git Readded default:value to startup tabs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4448 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc index d325b7478..ccfaa3828 100644 --- a/plugins/admin/systems/class_terminalStartup.inc +++ b/plugins/admin/systems/class_terminalStartup.inc @@ -97,15 +97,17 @@ class termstartup extends plugin while (!feof($fh)) { $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[$name]= $value; + + $name=$value = $buffer; + + if(preg_match("/:/",$buffer)){ + $name = preg_replace("/:.*$/","",$buffer); + $value= preg_replace("/^.*:/","",$buffer); + $this->gotoBootKernels[$name]= $name.":".$value; + }else{ + $this->gotoBootKernels[$name]= $value; + } } } pclose($fh); diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index a2761f271..6df7411c7 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -312,17 +312,20 @@ class workstartup extends plugin $fh= popen($command, "r"); while (!feof($fh)) { $buffer= trim(fgets($fh, 256)); - - $name= $value = $buffer; - - if(preg_match("/:/",$buffer)){ - $name = preg_replace("/:.*$/","",$buffer); - $value = preg_replace("/^.*:/","",$buffer); + + if(!empty($buffer)){ + + $name=$value = $buffer; + + if(preg_match("/:/",$buffer)){ + $name = preg_replace("/:.*$/","",$buffer); + $value= preg_replace("/^.*:/","",$buffer); + $this->gotoBootKernels[$name]= $name.":".$value; + }else{ + $this->gotoBootKernels[$name]= $value; + } } - if ($buffer != ""){ - $this->gotoBootKernels[$name]= $value; - } } pclose($fh); }