public static function restoreLinksVersion($args, &$x) {\r
global $core;\r
\r
+ set_time_limit(0);\r
+ \r
$book_id = $args[1];\r
$time = $args[2];\r
\r
\r
self::getLinksFromExcel($xls, $links, $rulers);\r
\r
-\r
+ \r
\r
$dao = new wsDAODocument($core->con);\r
$dao->setLinksAndRulers($book_id, json_encode($links), json_encode($rulers), 'Restore links from ' . date('Y-m-d H:i:s', $time), $core->user->utilisateur_id);\r
$meta['og:image'] = 'http://workshop.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id;\r
}\r
\r
+ if ($book->parametres->mobileVersion == 'pdf') {\r
+ $redirectMobile = 'window.location="data/document.pdf";';\r
+ } else {\r
+ $redirectMobile = 'window.location="/viewerh/' . $book_id . '_' . $hash . '_' . TIME . '/";';\r
+ }\r
+\r
$alt = '<div style="width:734px;margin:100px auto;"><a href="http://get.adobe.com/flashplayer/" target="_blank">' . cubeMedia::image($webcompile . 'getflash.gif', 734, 409, '') . '</a></div>';\r
\r
$res .= '</head>';\r
$res .= '<div id="fluidbook"><div style="width:734px;margin:100px auto;"><a href="http://get.adobe.com/flashplayer/" target="_blank"><img src="http://static.workshop.fluidbook.com/fluidbook/compile/getflash.gif" alt="" width="734" height="409"/></a></div></div>';\r
$res .= '<script type="text/javascript">';\r
$res.='if(isMobile()){' . "\n";\r
- $res.="\t" . 'window.location="data/document.pdf"' . "\n";\r
+ $res.="\t" . $redirectMobile . "\n";\r
$res.='} else {' . "\n";\r
$res .= "\t" . 'swfobject.embedSWF("index.swf", "fluidbook", "100%", "100%", "10.0.22",';\r
$res .= '"", ' . json_encode($fv) . ',';\r
foreach ($links as $l) {
$i = 0;
foreach ($cols as $id => $label) {
- if (!is_null($pages) && ($id == 'document_id' || $id == 'document_page')) {
- $infos = $pages[$l['page']];
- $value = $infos[$id];
+ if (($id == 'document_id' || $id == 'document_page')) {
+ if (!is_null($pages)) {
+ $infos = $pages[$l['page']];
+ $value = $infos[$id];
+ }else{
+ $value='';
+ }
} else {
+
if (is_bool($l[$id])) {
$l[$id] = $l[$id] ? 1 : 0;
}
$fontforge->setArg(null, '-');
$fontforge->setArg(null, $this->vdir . '/data/style/F' . $index . '.' . $format);
$fontforge->execute();
-
- fb($fontforge->commande);
- fb($fontforge->output);
}
}
}