| version 1.147, 2004/07/15 13:41:14 |
version 1.148, 2004/11/02 19:36:43 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.146 2004/07/15 10:40:19 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.147 2004/07/15 13:41:14 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 2644 function phpMyEdit_filter_handler(theFor |
|
| Line 2644 function phpMyEdit_filter_handler(theFor |
|
| $this->displayed = array(); |
$this->displayed = array(); |
| $this->guidance = false; |
$this->guidance = false; |
| foreach (array_keys($this->fdd) as $key) { |
foreach (array_keys($this->fdd) as $key) { |
| if (preg_match('/^\d*$/', $key)) { // skipping numeric keys |
if (preg_match('/^\d+$/', $key)) { // skipping numeric keys |
| continue; |
continue; |
| } |
} |
| $this->fds[$field_num] = $key; |
$this->fds[$field_num] = $key; |
| Line 2679 function phpMyEdit_filter_handler(theFor |
|
| Line 2679 function phpMyEdit_filter_handler(theFor |
|
| $this->sfn = array_unique($this->sfn); |
$this->sfn = array_unique($this->sfn); |
| $check_ar = array(); |
$check_ar = array(); |
| foreach ($this->sfn as $key => $val) { |
foreach ($this->sfn as $key => $val) { |
| if (preg_match('/^[-]?\d*$/', $val)) { // skipping numeric keys |
if (preg_match('/^[-]?\d+$/', $val)) { // skipping numeric keys |
| $val = abs($val); |
$val = abs($val); |
| if (in_array($val, $check_ar) || $this->password($val)) { |
if (in_array($val, $check_ar) || $this->password($val)) { |
| unset($this->sfn[$key]); |
unset($this->sfn[$key]); |