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.9 and 1.10

version 1.9, 2002/08/01 20:52:58 version 1.10, 2002/08/02 20:55:36
Line 259  class phpTemplate
Line 259  class phpTemplate
                         if (is_array($this->_set_vars[$key])) {                          if (is_array($this->_set_vars[$key])) {
                                 $ret .= $val[0];                                  $ret .= $val[0];
                         } else {                          } else {
                                 $ret .= '$' . $key . '=\''                                  $ret = '$' . $key . '=\''
                                         . str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val)) . '\';';                                          . str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val)) . '\';'
                                           . $ret;
                         }                          }
                 }                  }
   
Line 312  class phpTemplate
Line 313  class phpTemplate
   
                 if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) {                  if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) {
                         foreach ($this->_set_vars as $key => $val) {                          foreach ($this->_set_vars as $key => $val) {
                                 if (! is_array($val)) {                                  if (is_array($this->_set_vars[$key])) {
                                         $ret .= ('$'.$key.'__phpTemplate_var_bck=$'.$key.';');                                          $ret .= '$'.$key.'__phpTemplate_var_bck=$'.$key.';';
                                           $ret .= $val[0];
                                   } else {
                                           $ret = '$' . $key . '=\''
                                                   . str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val))
                                                   . '\';' . "\n"
                                                   . $ret;
                                           $ret = '$'.$key.'__phpTemplate_var_bck=$'.$key.';' . "\n" . $ret;
                                 }                                  }
                         }                          }
                 }                  } else {
                           foreach ($this->_set_vars as $key => $val) {
                 foreach ($this->_set_vars as $key => $val) {                                  if (is_array($this->_set_vars[$key])) {
                         if (is_array($this->_set_vars[$key])) {                                          $ret .= $val[0];
                                 $ret .= $val[0];                                  } else {
                         } else {                                          $ret = '$' . $key . '=\''
                                 $ret .= ('$' . $key . '=\''  
                                                 . str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val))                                                  . str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val))
                                                 . '\';' . "\n");                                                  . '\';' . "\n"
                                                   . $ret;
                                   }
                         }                          }
                 }                  }
   
Line 350  class phpTemplate
Line 359  class phpTemplate
   
                 if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) {                  if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) {
                         foreach ($this->_set_vars as $key => $val) {                          foreach ($this->_set_vars as $key => $val) {
                                 if (! is_array($val)) {                                  $ret .= '$'.$key.'=$'.$key.'__phpTemplate_var_bck;';
                                         $ret .= ('$'.$key.'=$'.$key.'__phpTemplate_var_bck;');  
                                 }  
                         }                          }
                 }                  }
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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