Ticket #9602: classes.php.patch
| File classes.php.patch, 434 bytes (added by , 17 years ago) |
|---|
| Line | |
|---|---|
| 1 | 219,233c219 |
| 2 | < |
| 3 | < preg_match_all('/\$(.*?)\[(.*?)\]/',$query,$subs); |
| 4 | < $find=array(); |
| 5 | < $replace=array(); |
| 6 | < |
| 7 | < foreach($subs[0] as $key=>$value) |
| 8 | < { |
| 9 | < $tmp=$subs[1][$key]; |
| 10 | < $tmp=$$tmp; |
| 11 | < $tmp=$tmp[$subs[2][$key]]; |
| 12 | < $find[]=$subs[0][$key]; |
| 13 | < $replace[]=$tmp; |
| 14 | < } |
| 15 | < |
| 16 | < $query=str_replace($find,$replace,$query); |
| 17 | --- |
| 18 | > eval("@\$query = \"" . addslashes($query) . "\";"); |