Code

Updated tempalte download
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jan 2008 09:57:45 +0000 (09:57 +0000)
committerhickert <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
gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl

index a0734aa6abc34d62ace4dd68551d2cc14187efbf..869cb1f0bce4a231f9600c9227ff3c48d51e4e0b 100644 (file)
@@ -91,7 +91,12 @@ class faiTemplateEntry extends plugin
         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 
index b8ee41a61a4d3b3a2da31c8061d8a7ea6c546ce6..05f7c56a35d128408f4ffe53814f714b334a1445 100644 (file)
@@ -56,7 +56,7 @@
                <td style="vertical-align:top" class="center">
                        {$status}
                        {if $bStatus}
-                         <a href="getbin.php?rand={$rand}">
+                         <a href="{$plug}&amp;getFAItemplate">
                                <img class="center" alt="{t}Save template{/t}..." title="{t}Save template{/t}..." src="images/save.png" border="0" />
                          </a>
                        {/if}