Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 23. október 2026

Rozdiely pre phpPlatonLib/Platon/Platon.php medzi verziami 1.22 a 1.23

verzia 1.22, 2004/01/26 13:53:55 verzia 1.23, 2004/04/11 16:19:46
Riadok 24 
Riadok 24 
  * @access      public   * @access      public
  */   */
   
 /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.21 2004/01/02 11:31:39 nepto Exp $ */  /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.22 2004/01/26 13:53:55 nepto Exp $ */
   
 class Platon  class Platon
 {  {
Riadok 200  class Platon
Riadok 200  class Platon
     /**      /**
      * Returns original variables HTML code for use in forms or links.       * Returns original variables HTML code for use in forms or links.
      *       *
      * @param   mixed   $origvars       string or array of original varaibles       * @param   mixed   $origvars  string or array of original variables;
      * @param   string  $method         type of method ("POST" or "GET")       *                             if string values should be rawurlencoded();
      * @param   mixed   $default_value  default value of variables       *                             if array values should not be encoded
      *                                  if null, empty values will be skipped       * @param   string  $method    type of method ("POST" or "GET")
      * @return                          get HTML code of original varaibles       * @param   mixed   $default   default value of variables
        *                             if null, empty values will be skipped
        * @return                     get HTML code of original variables
      */       */
     function get_origvars_html($origvars, $method = 'POST', $default_value = '') /* {{{ */      function get_origvars_html($origvars, $method = 'POST', $default = '') /* {{{ */
     {      {
         $ret    = '';          $ret    = '';
         $method = strtoupper($method);          $method = strtoupper($method);
Riadok 216  class Platon
Riadok 218  class Platon
                 foreach (explode('&', $origvars) as $param) {                  foreach (explode('&', $origvars) as $param) {
                     $parts = explode('=', $param, 2);                      $parts = explode('=', $param, 2);
                     if (! isset($parts[1])) {                      if (! isset($parts[1])) {
                         $parts[1] = $default_value;                          $parts[1] = $default;
                     }                      }
                     if (strlen($parts[0]) <= 0) {                      if (strlen($parts[0]) <= 0) {
                         continue;                          continue;
Riadok 226  class Platon
Riadok 228  class Platon
                 $origvars =& $new_origvars;                  $origvars =& $new_origvars;
             }              }
             foreach ($origvars as $key => $val) {              foreach ($origvars as $key => $val) {
                 if (strlen($val) <= 0 && $default_value === null) {                  if (strlen($val) <= 0 && $default === null) {
                     continue;                      continue;
                 }                  }
                 $key = rawurldecode($key);                  $key = rawurldecode($key);
Riadok 241  class Platon
Riadok 243  class Platon
                 $ret .= $origvars;                  $ret .= $origvars;
             } else {              } else {
                 foreach ($origvars as $key => $val) {                  foreach ($origvars as $key => $val) {
                     if (strlen($val) <= 0 && $default_value === null) {                      if (strlen($val) <= 0 && $default === null) {
                         continue;                          continue;
                     }                      }
                     $ret == '' || $ret .= '&amp;';                      $ret == '' || $ret .= '&amp;';

Legend:
Odstranené z verzie1.22  
zmenené riadky
  Pridané vo verzii1.23

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok