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

Diff for phpMyEdit/phpMyEdit.class.php between version 1.107 and 1.108

version 1.107, 2003/12/30 21:38:27 version 1.108, 2004/01/02 11:37:18
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.106 2003/12/30 21:22:44 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.107 2003/12/30 21:38:27 nepto Exp $ */
   
 /*  This is a generic table editing program. The table and fields to be  /*  This is a generic table editing program. The table and fields to be
         edited are defined in the calling program.          edited are defined in the calling program.
Line 1401  function phpMyEdit_form_control(theForm)
Line 1401  function phpMyEdit_form_control(theForm)
                         return $this->cgi['overwrite'][$name];                          return $this->cgi['overwrite'][$name];
                 }                  }
   
                   static $magic_quotes_gpc = null;
                   if ($magic_quotes_gpc === null) {
                           $magic_quotes_gpc = get_magic_quotes_gpc();
                   }
                 global $HTTP_GET_VARS;                  global $HTTP_GET_VARS;
                 $var = @$HTTP_GET_VARS[$name];                  $var = @$HTTP_GET_VARS[$name];
                 if (! isset($var)) {                  if (! isset($var)) {
Line 1408  function phpMyEdit_form_control(theForm)
Line 1412  function phpMyEdit_form_control(theForm)
                         $var = @$HTTP_POST_VARS[$name];                          $var = @$HTTP_POST_VARS[$name];
                 }                  }
                 if (isset($var)) {                  if (isset($var)) {
                         if (is_array($var)) {                          if ($magic_quotes_gpc) {
                                 foreach (array_keys($var) as $key) {                                  if (is_array($var)) {
                                         $var[$key] = stripslashes($var[$key]);                                          foreach (array_keys($var) as $key) {
                                                   $var[$key] = stripslashes($var[$key]);
                                           }
                                   } else {
                                           $var = stripslashes($var);
                                 }                                  }
                         } else {  
                                 $var = stripslashes($var);  
                         }                          }
                 } else {                  } else {
                         $var = $default_value;                          $var = @$default_value;
                 }                  }
   
                 if (isset($this) && $var === null && isset($this->cgi['append'][$name])) {                  if (isset($this) && $var === null && isset($this->cgi['append'][$name])) {

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108

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