]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 17 Feb 2011 20:19:38 +0000 (20:19 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 17 Feb 2011 20:19:38 +0000 (20:19 +0000)
.htaccess
inc/ws/Controlleur/class.ws.url.php

index 16e1440daf83a424f4254b37cfac87970798b03f..608ec71a74bc868ae19c90d7bb677225ce0f14b1 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -37,5 +37,5 @@ RewriteRule ^vieweru/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/player.swf$ fluidbook/comp
 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
index c8a1acfb380e026ab8d45876d79350bdedd971a0..7789dc534dab65d73fd099087be15903f390c89e 100644 (file)
@@ -356,7 +356,7 @@ html{height:100%}' . "\n";
 \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
@@ -398,7 +398,7 @@ html{height:100%}' . "\n";
                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
@@ -438,6 +438,9 @@ html{height:100%}' . "\n";
                $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