]> _ Git - cubeextranet.git/commitdiff
wait #6778 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 7 Mar 2024 16:17:09 +0000 (16:17 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 7 Mar 2024 16:17:09 +0000 (16:17 +0000)
.docker/docker-compose.yml
inc/ws/Controlleur/class.ws.url.php

index 263c31d953a0dd1df47df3874fc9fa6d143c6255..01fcb839c28f4edaede20416008d203b49cb065c 100644 (file)
@@ -72,8 +72,8 @@ services:
     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
index c2e2642f9430d7efcd55d004177ec05f6c13a3a6..bd631655753901d913856d3fda35c2a027f4799d 100644 (file)
@@ -1043,10 +1043,16 @@ html.tall{height:150%}' . "\n";
         $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);