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

Rozdiely pre phpWebFileManager/functions.inc.php medzi verziami 1.5 a 1.6

verzia 1.5, 2004/04/11 16:27:37 verzia 1.6, 2004/04/11 16:29:21
Riadok 17 
Riadok 17 
  * http://platon.sk/projects/phpWebFileManager/   * http://platon.sk/projects/phpWebFileManager/
  */   */
   
 /* $Platon: phpWebFileManager/functions.inc.php,v 1.4 2004/01/26 13:52:43 nepto Exp $ */  /* $Platon: phpWebFileManager/functions.inc.php,v 1.5 2004/04/11 16:27:37 nepto Exp $ */
   
 /* Functions in this file was extracted created from Platon class.  /* Functions in this file was extracted created from Platon class.
   
Riadok 62  function fm_get_cgi_var($name, $default_
Riadok 62  function fm_get_cgi_var($name, $default_
 /**  /**
  * 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 fm_get_origvars_html($origvars, $method = 'POST', $default_value = '') /* {{{ */  function fm_get_origvars_html($origvars, $method = 'POST', $default = '') /* {{{ */
 {  {
     $ret    = '';      $ret    = '';
     $method = strtoupper($method);      $method = strtoupper($method);
Riadok 78  function fm_get_origvars_html($origvars,
Riadok 80  function fm_get_origvars_html($origvars,
             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 88  function fm_get_origvars_html($origvars,
Riadok 90  function fm_get_origvars_html($origvars,
             $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 103  function fm_get_origvars_html($origvars,
Riadok 105  function fm_get_origvars_html($origvars,
             $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.5  
zmenené riadky
  Pridané vo verzii1.6

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