[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11410] manual : download pdf for IE
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11410] manual : download pdf for IE |
Date: |
Wed, 30 Oct 2013 11:42:37 +0000 |
Revision: 11410
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11410
Author: sigurdne
Date: 2013-10-30 11:42:33 +0000 (Wed, 30 Oct 2013)
Log Message:
-----------
manual : download pdf for IE
Modified Paths:
--------------
trunk/manual/inc/class.uimanual.inc.php
Modified: trunk/manual/inc/class.uimanual.inc.php
===================================================================
--- trunk/manual/inc/class.uimanual.inc.php 2013-10-29 14:48:44 UTC (rev
11409)
+++ trunk/manual/inc/class.uimanual.inc.php 2013-10-30 11:42:33 UTC (rev
11410)
@@ -110,13 +110,40 @@
}
*/
+
if(is_file($pdffile))
{
$browser = CreateObject('phpgwapi.browser');
- $browser->content_header("{$section}.pdf", '',
filesize($pdffile));
- ob_clean();
- flush();
- readfile($pdffile);
+ if($browser->BROWSER_AGENT = 'IE')
+ {
+ $fname =
"{$GLOBALS['phpgw_info']['server']['webserver_url']}/{$app}/help/{$lang}/{$section}.pdf";
+ echo <<<HTML
+ <html>
+ <head>
+ <script language="javascript">
+ <!--
+ function go_now()
+ {
+ window.location.href =
"{$fname}";
+ }
+ //-->
+ </script>
+ </head>
+ <body onload="go_now()";>
+ <a href="$fname">click here</a> if you are not
re-directed.
+ </body>
+ </html>
+
+HTML;
+
+ }
+ else
+ {
+
$browser->content_header("{$section}.pdf", '', filesize($pdffile));
+ ob_clean();
+ flush();
+ readfile($pdffile);
+ }
$GLOBALS['phpgw']->common->phpgw_exit();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11410] manual : download pdf for IE,
Sigurd Nes <=