Code

Fixed new window for script / hook downlaod
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 May 2006 03:39:40 +0000 (03:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 May 2006 03:39:40 +0000 (03:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3470 594d385d-05f5-0310-b6e9-bd551577e9d8

html/getFAIscript.php
plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiHookEntry.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiScriptEntry.inc
plugins/admin/fai/class_faiTemplate.inc

index b22451a6798c965b3ed895b88a283276245d07e7..aec3c3bdd3a2f384c0f61028436bdb54e49d09e8 100644 (file)
@@ -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);
index 376a418348a7ce5c0ab8eb0f4e050e24636d0dac..42f7e5feaee73d2b42ac2e63cff8272663de6e9d 100644 (file)
@@ -261,7 +261,7 @@ class faiHook extends plugin
       if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new")){
         $down = "";
       }else{
-        $down = "<a href='getFAIscript.php?id=".base64_encode($name['dn'])."' target='_blank'>
+        $down = "<a href='getFAIscript.php?id=".base64_encode($name['dn'])."'>
           <img src='images/save.png' alt='"._("Download")."' title='"._("Download")."' border=0>
           </a>";
       }
index 14bc4959ecd5e916f10ef63553741da4774da1aa..c73d2e886a54b9820edeac61c0aa99266349e588 100644 (file)
@@ -80,7 +80,7 @@ class faiHookEntry extends plugin
 
     /* Create download button*/
     if($this->dn != "new"){
-      $smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."' target='_blank'>
+      $smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."'>
         <input type='button' value='"._("Download")."'>
         </a>");
     }else{
index 9e3ebcbf0aa6260fa362c2a3eaab3bf93606e3f4..371a57c56c69de091b97bbba99442c35ade46404 100644 (file)
@@ -237,7 +237,7 @@ class faiScript extends plugin
       if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new")){
         $down = "";
       }else{
-        $down = "<a href='getFAIscript.php?id=".base64_encode($name['dn'])."' target='_blank'>
+        $down = "<a href='getFAIscript.php?id=".base64_encode($name['dn'])."' >
           <img src='images/save.png' alt='"._("Download")."' title='"._("Download")."' border=0>
           </a>"; 
       } 
index 35ba0b38baa38b093de517d52d068c9cd3b442d1..617de2612d6d27e72b8d0ec6a1192ccc35c730b9 100644 (file)
@@ -85,7 +85,7 @@ class faiScriptEntry extends plugin
 
      /* Create download button*/
     if($this->dn != "new"){
-      $smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."' target='_blank'>
+      $smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."'>
         <input type='button' value='"._("Download")."'>
         </a>");
     }else{
index 8303530f7f0ab934ecd6ec2b64e6ba4c5fbc8195..56e7f613d02bc6e22742f3a701988cdbedd87d77 100644 (file)
@@ -210,7 +210,7 @@ class faiTemplate extends plugin
   
         $dn = $this->SubObjects[$key]['dn'];       
  
-        $down = "<a href='getFAIscript.php?is_template&id=".base64_encode($dn)."' target='_blank'>
+        $down = "<a href='getFAIscript.php?is_template&id=".base64_encode($dn)."'>
           <img src='images/save.png' alt='"._("Download")."' title='"._("Download")."' border=0>
           </a>";
       }