includes/functions.php
changeset 582 a38876c0793c
parent 581 5e8fd89c02ea
child 592 27377179fe58
equal deleted inserted replaced
581:5e8fd89c02ea 582:a38876c0793c
  3051   $reserved_words = '(' . implode('|', $reserved_words) . ')';
  3051   $reserved_words = '(' . implode('|', $reserved_words) . ')';
  3052   
  3052   
  3053   for ( $i = 0; $i < count($jscript[0]); $i++ )
  3053   for ( $i = 0; $i < count($jscript[0]); $i++ )
  3054   {
  3054   {
  3055     $js =& $jscript[2][$i];
  3055     $js =& $jscript[2][$i];
  3056     
  3056     if ( empty($js) )
  3057     // echo('<pre>' . "-----------------------------------------------------------------------------\n" . htmlspecialchars($js) . '</pre>');
  3057       continue;
  3058     
  3058     
  3059     $js = $jsc->getClean($js);
  3059     $js = $jsc->getClean($js);
  3060     
  3060     
  3061     $replacement = "<script{$jscript[1][$i]}>/* <![CDATA[ */ $js /* ]]> */</script>";
  3061     $replacement = "<script{$jscript[1][$i]}>/* <![CDATA[ */ $js /* ]]> */</script>";
  3062     // apply changes
  3062     // apply changes