55 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html) 
66 * @author     Andreas Gohr <[email protected] > 77 */ 
8- 
9- if (!defined ('DOKU_INC ' )) define ('DOKU_INC ' , realpath (dirname (__FILE__ ).'/../../ ' ).'/ ' );
10- if (!defined ('DOKU_PLUGIN ' )) define ('DOKU_PLUGIN ' , DOKU_INC .'lib/plugins/ ' );
11- require_once (DOKU_PLUGIN .'syntax.php ' );
12- require_once (DOKU_INC .'inc/search.php ' );
13- require_once (DOKU_INC .'inc/JpegMeta.php ' );
14- 
158class  syntax_plugin_panoview extends  DokuWiki_Syntax_Plugin {
169
1710    /** 
@@ -102,8 +95,6 @@ function handle($match, $state, $pos, Doku_Handler $handler) {
10295    function  render ($ mode , Doku_Renderer   $ R , $ data ) {
10396        if ($ mode  != 'xhtml ' ) return  false ;
10497        global  $ ID  ;
105-         require_once (DOKU_INC .'inc/JSON.php ' );
106-         $ json  = new  JSON ();
10798
10899        $ img  = '<a href=" ' .ml ($ data ['image ' ], array ('id ' => $ ID  ), false ).'"><img src=" ' .
109100            ml ($ data ['image ' ], array ('w ' => $ data ['width ' ], 'h ' => $ data ['height ' ])).'" width=" ' .
@@ -126,7 +117,7 @@ function render($mode, Doku_Renderer $R, $data) {
126117                <span class="zoomOut" title="Zoom Out">-</span> 
127118                <span class="maximize"><img src=" ' .DOKU_BASE .'lib/plugins/panoview/gfx/window.gif" style="position: absolute; bottom: 4px; right: 5px;" title="Maximize"></span>  
128119              </p> 
129-                 <div class="options" style="display:none"> ' .hsc ($ json -> encode ($ data )).'</div>  
120+                 <div class="options" style="display:none"> ' .hsc (json_encode ($ data )).'</div>  
130121            </div> 
131122         ' ;
132123
@@ -257,7 +248,4 @@ function tile_unlock($d) {
257248        @rmdir ($ lockDir );
258249        @ignore_user_abort (0 );
259250    }
260- 
261251}
262- 
263- //Setup VIM: ex: et ts=4 enc=utf-8 : 
0 commit comments