From d4729740d1db57e957c1c6667edf37f5b09e99e1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 22 May 2006 03:39:40 +0000 Subject: [PATCH] Fixed new window for script / hook downlaod git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3470 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/getFAIscript.php | 1 + plugins/admin/fai/class_faiHook.inc | 2 +- plugins/admin/fai/class_faiHookEntry.inc | 2 +- plugins/admin/fai/class_faiScript.inc | 2 +- plugins/admin/fai/class_faiScriptEntry.inc | 2 +- plugins/admin/fai/class_faiTemplate.inc | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/html/getFAIscript.php b/html/getFAIscript.php index b22451a67..aec3c3bdd 100644 --- a/html/getFAIscript.php +++ b/html/getFAIscript.php @@ -49,6 +49,7 @@ restore_error_handler(); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); + header("Content-transfer-encoding: binary\n"); header("Cache-Control: post-check=0, pre-check=0"); header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=".$name); diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 376a41834..42f7e5fea 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -261,7 +261,7 @@ class faiHook extends plugin if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new")){ $down = ""; }else{ - $down = " + $down = " "._("Download")." "; } diff --git a/plugins/admin/fai/class_faiHookEntry.inc b/plugins/admin/fai/class_faiHookEntry.inc index 14bc4959e..c73d2e886 100644 --- a/plugins/admin/fai/class_faiHookEntry.inc +++ b/plugins/admin/fai/class_faiHookEntry.inc @@ -80,7 +80,7 @@ class faiHookEntry extends plugin /* Create download button*/ if($this->dn != "new"){ - $smarty->assign("DownMe"," + $smarty->assign("DownMe"," "); }else{ diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 9e3ebcbf0..371a57c56 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -237,7 +237,7 @@ class faiScript extends plugin if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new")){ $down = ""; }else{ - $down = " + $down = " "._("Download")." "; } diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc index 35ba0b38b..617de2612 100644 --- a/plugins/admin/fai/class_faiScriptEntry.inc +++ b/plugins/admin/fai/class_faiScriptEntry.inc @@ -85,7 +85,7 @@ class faiScriptEntry extends plugin /* Create download button*/ if($this->dn != "new"){ - $smarty->assign("DownMe"," + $smarty->assign("DownMe"," "); }else{ diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index 8303530f7..56e7f613d 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -210,7 +210,7 @@ class faiTemplate extends plugin $dn = $this->SubObjects[$key]['dn']; - $down = " + $down = " "._("Download")." "; } -- 2.30.2