RewriteRule ^viewerht/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/(.+)$ fluidbook/books/html5/$1/$4 [L]\r
\r
RewriteRule ^viewerh([ai])/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/(.+)$ fluidbook/books/html5$1/$2/$5 [L]\r
- \r
</IfModule>
\ No newline at end of file
var _GET = parseGet();\r
+var _openedWindows = {};\r
\r
function getWmode() {\r
if (_GET['wmode'] != undefined) {\r
}\r
\r
function popupFocus(url, target) {\r
- var opened = window.open(url, target, 'width=' + screen.width + ',height=' + screen.height + ',resizable=yes');\r
- opened.focus();\r
+ var openedw;\r
+ if (target.substr(0, 1) == '_') {\r
+ openedw = window.open(url, target, 'width=' + screen.width + ',height=' + screen.height + ',resizable=yes');\r
+ } else {\r
+ if (_openedWindows[target] != undefined && _openedWindows[target] != null) {\r
+ openedw = _openedWindows[target];\r
+ openedw.location = url;\r
+ } else {\r
+ openedw = window.open(url, target, 'width=' + screen.width + ',height=' + screen.height + ',resizable=yes');\r
+ _openedWindows[target] = openedw;\r
+ }\r
+ }\r
+\r
+\r
+\r
+\r
+ openedw.focus();\r
}\r
\r
function getCookieVal(offset)\r
<style type="text/css" media="print">*{ visibility: hidden; display: none }</style>\r
<script type="text/javascript" src="$spfluidbook.js?junk=$junk"></script>\r
<script type="text/javascript">\r
- FB_DEFAULT_LANG='$lang';\r
- var backgroundColor="$bgcolor";\r
- if(isMobile()){\r
+ FB_DEFAULT_LANG = '$lang';\r
+ var backgroundColor = "$bgcolor";\r
+ if (isMobile()) {\r
$redirectMobile\r
- }else if(isBadMobile()){\r
+ } else if (isBadMobile()) {\r
$redirectPDF\r
- }else{\r
- swfobject.embedSWF("$pathToIndex?junk=$junk", "fluidbook", "100%", "100%", "$flashversion","",getFlashvars($junk,$fv),{"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":getWmode(),"allowFullScreen":"true"},{"bgcolor":"#"+getBackgroundColor()});\r
+ } else {\r
+ swfobject.embedSWF("$pathToIndex?junk=$junk", "fluidbook", "100%", "100%", "$flashversion", "", getFlashvars($junk, $fv), {"allowScriptAccess": "always", "quality": "high", "scale": "noscale", "wmode": getWmode(), "allowFullScreen": "true", 'allowFullScreenInteractive': 'true'}, {"bgcolor": "#" + getBackgroundColor()});\r
}\r
</script>\r
$ga\r
$liste[] = 'output';\r
$liste[] = ROOT . '/factures/print_' . $core->user->utilisateur_id . '_' . TIME . '.pdf';\r
\r
- $pdftk = new cubeCommandLine('/usr/local/bin/pdftk');\r
+ $pdftk = new cubeCommandLine('pdftk');\r
$pdftk->setManualArg(implode(' ', $liste));\r
$pdftk->execute();\r
\r
$res.='} else {' . "\n";\r
$res .= "\t" . 'swfobject.embedSWF("index.swf", "fluidbook", "100%", "100%", "' . $flashVersion . '",';\r
$res .= '"", ' . json_encode($fv) . ',';\r
- $res .= '{"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":getWmode(),"allowFullScreen":"true"},{"bgcolor":"#' . $theme->parametres->loadingBackColor . '"}';\r
+ $res .= '{"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":getWmode(),"allowFullScreen":"true","allowFullScreenInteractive":"true"},{"bgcolor":"#' . $theme->parametres->loadingBackColor . '"}';\r
$res .= ');' . "\n";\r
$res.='}' . "\n";\r
$res .= '</script>';\r