RewriteRule ^vieweru/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/(.+)$ fluidbook/books/final/$1/$4 [L]\r
\r
RewriteRule ^viewerp/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/index.html$ viewerp/$1_$2_$3/index [L]\r
-RewriteRule ^viewerp/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/index.swf$ fluidbook/compile/_unprotected/player.swf [L]\r
+RewriteRule ^viewerp/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/index.swf$ fluidbook/compile/_standalone/player.swf [L]\r
RewriteRule ^viewerp/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/(.+)$ fluidbook/books/final/$1/$4 [L]
\ No newline at end of file
\r
self::checkDocumentVersionOfBook($book_id);\r
\r
- echo self::commonViewer($book_id, $e[1]);\r
+ echo self::commonViewer($book_id, $e[1],true);\r
}\r
\r
public static function vieweru($args)\r
echo self::commonViewer($book_id, $e[1]);\r
}\r
\r
- public static function commonViewer($book_id, $hash)\r
+ public static function commonViewer($book_id, $hash,$standalone=false)\r
{\r
if (!defined('MINIMIZE_JS')) {\r
define('MINIMIZE_JS', false);\r
$css = $js = array();\r
$css[] = $webcompile . 'style.css';\r
$fv = array();\r
+ if($standalone){\r
+ $fv['base']=$_SERVER['REQUEST_URI'];\r
+ }\r
\r
$res = '<html>';\r
$res .= '<head>';\r