Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 24, 2026

Diff for phpPlatonLib/templateSystems/phpTemplate/Attic/phpTemplate.class.php between version 1.3 and 1.4

version 1.3, 2002/03/25 01:39:41 version 1.4, 2002/04/03 20:01:19
Line 229  class phpTemplate
Line 229  class phpTemplate
                 foreach ($this->_set_vars as $key => $val) {                  foreach ($this->_set_vars as $key => $val) {
                         if (! is_array($val)) {                          if (! is_array($val)) {
                                 $ret .= str_replace("\n", '\'."\n".\'', '$' . $key . '=\''                                  $ret .= str_replace("\n", '\'."\n".\'', '$' . $key . '=\''
                                                 . str_replace("'", "\'", $val) . '\';');                                                  . str_replace("'", "\'", str_replace("\\", "\\\\", $val)) . '\';');
                         }                          }
                 }                  }
   
Line 264  class phpTemplate
Line 264  class phpTemplate
                 foreach ($this->_set_vars as $key => $val) {                  foreach ($this->_set_vars as $key => $val) {
                         if (! is_array($val)) {                          if (! is_array($val)) {
                                 $ret .= ('$' . $key . '=\''                                  $ret .= ('$' . $key . '=\''
                                                 . str_replace("'", "\'", $val) . '\';' . "\n");                                                  . str_replace("'", "\'", str_replace("\\", "\\\\", $val)) . '\';' . "\n");
                         }                          }
                 }                  }
   
Line 274  class phpTemplate
Line 274  class phpTemplate
                                 $ret .= $this->_simpleEchoTransform($this->_array[$i]);                                  $ret .= $this->_simpleEchoTransform($this->_array[$i]);
                         }                          }
                         else {                          else {
                                 $ret .= ('echo(\'' . str_replace("'", "\'", $this->_array[$i])                                  $ret .= ('echo(\'' . str_replace("'", "\'", str_replace("\\", "\\\\", $this->_array[$i]))
                                                         . '\');');                                                          . '\');');
                         }                          }
                         $ret .= "\n";                          $ret .= "\n";
Line 321  class phpTemplate
Line 321  class phpTemplate
   
         function Output()          function Output()
         {          {
                   //echo "<hr><pre>" . htmlentities($this->getCode()) . "</pre>";
                 return eval($this->getCode());                  return eval($this->getCode());
         }          }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top