Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

Diff for phpMyEdit/phpMyEdit.class.php between version 1.163 and 1.164

version 1.163, 2005/01/09 01:33:35 version 1.164, 2005/03/05 12:03:13
Line 19 
Line 19 
  * http://platon.sk/projects/phpMyEdit/   * http://platon.sk/projects/phpMyEdit/
  */   */
   
 /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.162 2005/01/09 01:26:21 nepto Exp $ */  /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.163 2005/01/09 01:33:35 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 640  class phpMyEdit
Line 640  class phpMyEdit
                                                         $afilter = $afilter.',"'.addslashes($m[$key]).'"';                                                          $afilter = $afilter.',"'.addslashes($m[$key]).'"';
                                                         $qf_val .= ',"'.addslashes($m[$key]).'"';                                                          $qf_val .= ',"'.addslashes($m[$key]).'"';
                                                 }                                                  }
                                                 $this->qfn .= '&'.$l.'['.rawurlencode($key).']='.rawurlencode($m[$key]);                                                  $this->qfn .= '&'.$this->cgi['prefix']['sys'].$l.'['.rawurlencode($key).']='.rawurlencode($m[$key]);
                                         }                                          }
                                         $afilter = $afilter.')';                                          $afilter = $afilter.')';
                                         // XXX: $dont_desc and $dont_cols hack                                          // XXX: $dont_desc and $dont_cols hack
Line 658  class phpMyEdit
Line 658  class phpMyEdit
                                 }                                  }
                                 $afilter = addslashes($mi);                                  $afilter = addslashes($mi);
                                 $qo[$this->fqn($k, true, true)] = array('oper'  => '=', 'value' => "'$afilter'");                                  $qo[$this->fqn($k, true, true)] = array('oper'  => '=', 'value' => "'$afilter'");
                                 $this->qfn .= '&'.$li.'='.rawurlencode($mi);                                  $this->qfn .= '&'.$this->cgi['prefix']['sys'].$li.'='.rawurlencode($mi);
                         } else if (isset($m)) {                          } else if (isset($m)) {
                                 if ($m == '*') {                                  if ($m == '*') {
                                         continue;                                          continue;
Line 670  class phpMyEdit
Line 670  class phpMyEdit
                                 if ($this->fdd[$k]['select'] == 'N') {                                  if ($this->fdd[$k]['select'] == 'N') {
                                         $mc = in_array($mc, $this->comp_ops) ? $mc : '=';                                          $mc = in_array($mc, $this->comp_ops) ? $mc : '=';
                                         $qo[$this->fqn($k)] = array('oper' => $mc, 'value' => "'$afilter'");                                          $qo[$this->fqn($k)] = array('oper' => $mc, 'value' => "'$afilter'");
                                         $this->qfn .= '&'.$l .'='.rawurlencode($m);                                          $this->qfn .= '&'.$this->cgi['prefix']['sys'].$l .'='.rawurlencode($m);
                                         $this->qfn .= '&'.$lc.'='.rawurlencode($mc);                                          $this->qfn .= '&'.$this->cgi['prefix']['sys'].$lc.'='.rawurlencode($mc);
                                 } else {                                  } else {
                                         $afilter = '%'.str_replace('*', '%', $afilter).'%';                                          $afilter = '%'.str_replace('*', '%', $afilter).'%';
                                         $ids  = array();                                          $ids  = array();
Line 689  class phpMyEdit
Line 689  class phpMyEdit
                                                 }                                                  }
                                         }                                          }
                                         $qo[] = $ar;                                          $qo[] = $ar;
                                         $this->qfn .= '&'.$l.'='.rawurlencode($m);                                          $this->qfn .= '&'.$this->cgi['prefix']['sys'].$l.'='.rawurlencode($m);
                                 }                                  }
                         }                          }
                 }                  }

Legend:
Removed from v.1.163  
changed lines
  Added in v.1.164

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