\r
\r
$res .= commonPage::bh();\r
- $res .= cubeLang::translationForm(array(PLAYER_SOURCES, WS_COMPILE_ASSETS.'/_html5/js/libs'), $lang_id, null, 'liste', array(), '<a href="#" class="submit">' . $core->typo->Ajouter(__('Enregistrer')) . '</a>', $lang->traductions);\r
+ $res .= cubeLang::translationForm(array(PLAYER_SOURCES, WS_COMPILE_ASSETS . '/_html5/js/libs'), $lang_id, null, 'liste', array(), '<a href="#" class="submit">' . $core->typo->Ajouter(__('Enregistrer')) . '</a>', $lang->traductions);\r
$res .= commonPage::bf();\r
$res .= '</form>';\r
return $res;\r
\r
self::checkDocumentVersionOfBook($book_id);\r
\r
- echo self::commonViewer($book_id, $e[1]);\r
+ echo self::commonViewer($book_id, $e[1], false, 'default', true);\r
}\r
\r
public static function viewer($args) {\r
echo self::commonViewer($book_id, $e[1], false, $wmode, $newurl);\r
}\r
\r
- public static function commonViewer($book_id, $hash, $standalone = false, $wmode = 'default') {\r
+ public static function commonViewer($book_id, $hash, $standalone = false, $wmode = 'default', $fps=false) {\r
if (!defined('MINIMIZE_JS')) {\r
define('MINIMIZE_JS', false);\r
}\r
if ($standalone) {\r
$fv['base'] = $_SERVER['REQUEST_URI'];\r
}\r
+ if ($fps) {\r
+ $fv['monitoring'] = '1';\r
+ }\r
\r
$res = '<html>';\r
$res .= '<head>';\r
$res.="\t" . 'window.location="data/document.pdf"' . "\n";\r
$res.='} else {' . "\n";\r
$res .= "\t" . 'swfobject.embedSWF("index.swf", "fluidbook", "100%", "100%", "10.0.22",';\r
- $res .= '"", [],';\r
+ $res .= '"", ' . json_encode($fv) . ',';\r
$res .= '{"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":getWmode(),"allowFullScreen":"true"},{"bgcolor":"#' . $theme->parametres->loadingBackColor . '"}';\r
$res .= ');' . "\n";\r
$res.='}' . "\n";\r