summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 861dda0)
raw | patch | inline | side by side (parent: 861dda0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Apr 2007 07:26:04 +0000 (07:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Apr 2007 07:26:04 +0000 (07:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6151 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiPackage.inc | patch | blob | history | |
plugins/admin/fai/paste_fai_object.tpl | patch | blob | history |
index 0635c85e4defc885e0254d02d02a67aed446f3d7..7e172ce1c0f9d58192b156f7450a022471aed0c6 100644 (file)
{
/* Ask for cn */
$smarty = get_smarty();
+
+ /* Assemble release name */
+ $tmp= preg_replace('/,ou=fai,ou=configs,ou=systems,.*$/', '', $_SESSION['faifilter']['branch']);
+ $tmp= preg_replace('/ou=/', '', $tmp);
+ $rev= array_reverse(split(',', $tmp));
+ $this->FAIdebianRelease= "";
+ foreach ($rev as $part){
+ $this->FAIdebianRelease.= "/$part";
+ }
+ $this->FAIdebianRelease= preg_replace('#^/#', '', $this->FAIdebianRelease);
+
$smarty->assign("cn" ,$this->cn);
$str = $smarty->fetch(get_template_path("paste_fai_object.tpl",TRUE));
$ret = array();
index 66a772462652ce854e622e4da7a6d03aeb70588e..1b94e5374c422ca0bad6630185237068b88671be 100644 (file)
<script language="JavaScript" type="text/javascript">
document.mainform.cn.focus();
</script>
-