summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c97ab5)
raw | patch | inline | side by side (parent: 4c97ab5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Jan 2008 09:57:45 +0000 (09:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 Jan 2008 09:57:45 +0000 (09:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8556 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc | patch | blob | history | |
gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc
index a0734aa6abc34d62ace4dd68551d2cc14187efbf..869cb1f0bce4a231f9600c9227ff3c48d51e4e0b 100644 (file)
session::set('binaryfile',basename($this->FAItemplatePath));
}
}
-
+
+ /* File download requested */
+ if(isset($_GET['getFAItemplate'])){
+ send_binary_content($this->FAItemplateFile,$this->cn.".FAItemplate");
+ }
+
$status= _("no file uploaded yet");
$bStatus = false; // Hide download icon on default
diff --git a/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl b/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl
index b8ee41a61a4d3b3a2da31c8061d8a7ea6c546ce6..05f7c56a35d128408f4ffe53814f714b334a1445 100644 (file)
<td style="vertical-align:top" class="center">
{$status}
{if $bStatus}
- <a href="getbin.php?rand={$rand}">
+ <a href="{$plug}&getFAItemplate">
<img class="center" alt="{t}Save template{/t}..." title="{t}Save template{/t}..." src="images/save.png" border="0" />
</a>
{/if}