]> _ Git - cubeextranet.git/commitdiff
wait #4021 @0:10
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Nov 2020 12:46:54 +0000 (12:46 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Nov 2020 12:46:54 +0000 (12:46 +0000)
inc/ws/Controlleur/class.ws.url.php

index 5483dbc1f083dc8a73044cd560536fe1c7537282..f78adf09da2c9a6f33d519e8fa367b7c88f2cc2c 100644 (file)
@@ -1121,12 +1121,12 @@ html.tall{height:150%}' . "\n";
         if ($q != '') {
             $q = '?' . $q;
         }
-        if (count($e) == 2) {
+        $limit = time() - 60;
+        if (count($e) <= 2 || $e[2] < $limit) {
             $e[2] = $time;
             $daoTheme = new wsDAOTheme($core->con);
             $theme = $daoTheme->getThemeOfBook($book_id, true);
             self::loadingCompile(SITE_PATH . 'viewerh/' . implode('_', $e) . '/' . $q, $book, $theme);
-            //http::redirect(SITE_PATH . 'viewerh/' . implode('_', $e) . '/' . $q);
             exit;
         }
         $CrawlerDetect = new Jaybizzle\CrawlerDetect\CrawlerDetect();
@@ -1167,8 +1167,12 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co
         animation-iteration-count: infinite;
         animation-timing-function: linear;}';
         $res .= '</style>';
+        $res .= '<script type="text/javascript">function load(){
+    var url=\'' . $url . '\'+window.location.hash;
+    window.location=url;
+}</script>';
         $res .= '</head>';
-        $res .= '<body onload="window.location=\'' . $url . '\';">';
+        $res .= '<body onload="load();">';
         $res .= '<svg width="48" height="48" id="interface-loader" viewBox="0 0 48 48">
         <circle cx="24" cy="24" r="23" fill="#' . $theme->parametres->couleurL . '"></circle>
         <circle class="animate" cx="24" cy="24" fill="none" stroke="#' . $theme->parametres->loadingSecColor . '" stroke-width="3" r="16"