From: vincent@cubedesigners.com Date: Fri, 21 Oct 2011 15:18:17 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f852b05c83d2e95d1e3b79ab8fb6f2b68e727ffa;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index 5771be61d..b0c622d41 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -713,6 +713,8 @@ class wsAjax extends cubeAjax { public static function restoreLinksVersion($args, &$x) { global $core; + set_time_limit(0); + $book_id = $args[1]; $time = $args[2]; @@ -722,7 +724,7 @@ class wsAjax extends cubeAjax { self::getLinksFromExcel($xls, $links, $rulers); - + $dao = new wsDAODocument($core->con); $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); diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 9b2ad9027..4968148b1 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -762,6 +762,12 @@ html{height:100%}' . "\n"; $meta['og:image'] = 'http://workshop.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id; } + if ($book->parametres->mobileVersion == 'pdf') { + $redirectMobile = 'window.location="data/document.pdf";'; + } else { + $redirectMobile = 'window.location="/viewerh/' . $book_id . '_' . $hash . '_' . TIME . '/";'; + } + $alt = '
' . cubeMedia::image($webcompile . 'getflash.gif', 734, 409, '') . '
'; $res .= ''; @@ -769,7 +775,7 @@ html{height:100%}' . "\n"; $res .= '
'; $res .= '