$wmode = isset($args[1]) ? $args[1] : '';\r
\r
$e = explode('_', $args[0]);\r
+ $newurl=null;\r
if (count($e) == 2 || $e[2] < TIME - 10) {\r
$e[2] = TIME;\r
- //http::redirect(SITE_PATH . 'viewer/' . implode('_', $e) . '/' . $wmode);\r
- $url = SITE_PATH . 'viewer/' . implode('_', $e) . '/' . $wmode . '/';\r
- $url = rtrim($url, '/') . '/';\r
- ob_end_clean();\r
- echo '<script type="text/javascript">window.location=\'' . $url . '\'+window.location.hash;</script>';\r
+ http::redirect(SITE_PATH . 'viewer/' . implode('_', $e) . '/' . $wmode);\r
exit;\r
}\r
\r
self::checkDocumentVersionOfBook($book_id);\r
wsSecureSWF::checkProtectedSWF();\r
\r
- echo self::commonViewer($book_id, $e[1], false, $wmode);\r
+ echo self::commonViewer($book_id, $e[1], false, $wmode,$newurl);\r
}\r
\r
public static function commonViewer($book_id, $hash, $standalone = false, $wmode = 'default') {\r
if ($book->parametres->facebook_description != '') {\r
$meta['og:description'] = $book->parametres->facebook_description;\r
}\r
- $meta['og:image'] = 'http://dev.ws.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id;\r
+ $meta['og:image'] = 'http://workshop.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id;\r
}\r
\r
$alt = '<div style="width:734px;margin:100px auto;"><a href="http://get.adobe.com/flashplayer/" target="_blank">' . cubeMedia::image($webcompile . 'getflash.gif', 734, 409, '') . '</a></div>';\r