ports:\r
- '54842:80'\r
environment:\r
- VIRTUAL_HOST: workshop.fluidbook.com, extranet.cubedesigners.com, statistics.ysl-retailhandbook.com\r
- LETSENCRYPT_HOST: workshop.fluidbook.com, extranet.cubedesigners.com, statistics.ysl-retailhandbook.com\r
+ VIRTUAL_HOST: workshop.fluidbook.com, extranet.cubedesigners.com\r
+ LETSENCRYPT_HOST: workshop.fluidbook.com, extranet.cubedesigners.com\r
networks:\r
- extranet\r
restart: unless-stopped\r
$dao = new wsDAOBook($core->con);
$book = $dao->selectById($book_id);
+
if ($hash != 'bcf26f9cf4a795ec00b9a44f42750d58' && $book->hash != $hash) {
commonDroits::error();
}
+ if ($book->version == 3) {
+ http::redirect('https://toolbox.fluidbook.com/fluidbook-publication/preview/' . $book_id . '_' . $hash . '/');
+ exit;
+ }
+
if (!wsDroits::admin()) {
if ($book->parametres->redirectDemo != '') {
http::redirect($book->parametres->redirectDemo);