includes/template.php
changeset 22 d0314575e2f0
parent 21 663fcf528726
child 27 dd659f6ba891
equal deleted inserted replaced
21:663fcf528726 22:d0314575e2f0
   645     $SID = ($session->sid_super) ? $session->sid_super : '';
   645     $SID = ($session->sid_super) ? $session->sid_super : '';
   646     
   646     
   647     $urlname_clean = str_replace('\'', '\\\'', str_replace('\\', '\\\\', dirtify_page_id($paths->fullpage)));
   647     $urlname_clean = str_replace('\'', '\\\'', str_replace('\\', '\\\\', dirtify_page_id($paths->fullpage)));
   648     $urlname_clean = strtr( $urlname_clean, array( '<' => '&lt;', '>' => '&gt;' ) );
   648     $urlname_clean = strtr( $urlname_clean, array( '<' => '&lt;', '>' => '&gt;' ) );
   649     
   649     
       
   650     $urlname_jssafe = sanitize_page_id($paths->fullpage);
       
   651     
   650     // Generate the dynamic javascript vars
   652     // Generate the dynamic javascript vars
   651     $js_dynamic = '    <script type="text/javascript">// <![CDATA[
   653     $js_dynamic = '    <script type="text/javascript">// <![CDATA[
   652       // This section defines some basic and very important variables that are used later in the static Javascript library.
   654       // This section defines some basic and very important variables that are used later in the static Javascript library.
   653       // SKIN DEVELOPERS: The template variable for this code block is {JS_DYNAMIC_VARS}. This MUST be inserted BEFORE the tag that links to the main Javascript lib.
   655       // SKIN DEVELOPERS: The template variable for this code block is {JS_DYNAMIC_VARS}. This MUST be inserted BEFORE the tag that links to the main Javascript lib.
   654       var title=\''. $urlname_clean .'\';
   656       var title=\''. $urlname_jssafe .'\';
   655       var page_exists='. ( ( $paths->page_exists) ? 'true' : 'false' ) .';
   657       var page_exists='. ( ( $paths->page_exists) ? 'true' : 'false' ) .';
   656       var scriptPath=\''. scriptPath .'\';
   658       var scriptPath=\''. scriptPath .'\';
   657       var contentPath=\''.contentPath.'\';
   659       var contentPath=\''.contentPath.'\';
   658       var ENANO_SID =\'' . $SID . '\';
   660       var ENANO_SID =\'' . $SID . '\';
   659       var auth_level=' . $session->auth_level . ';
   661       var auth_level=' . $session->auth_level . ';