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();
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"