|  | @@ 1218-1227 (lines=10) @@ | 
                                                            
                                    | 1215 |  |             $sql_where[] = '`cache_location`.`code2`=\'' . sql_escape($options['adm2']) . '\''; | 
                                                            
                                    | 1216 |  |         } | 
                                                            
                                    | 1217 |  |  | 
                                                            
                                    | 1218 |  |         if ($options['cachetype'] != '') { | 
                                                            
                                    | 1219 |  |             $types = explode(';', $options['cachetype']); | 
                                                            
                                    | 1220 |  |             if (count($types) < sql_value_slave("SELECT COUNT(*) FROM `cache_type`", 0)) { | 
                                                            
                                    | 1221 |  |                 $countTypes = count($types); | 
                                                            
                                    | 1222 |  |                 for ($i = 0; $i < $countTypes; $i++) { | 
                                                            
                                    | 1223 |  |                     $types[$i] = "'" . sql_escape($types[$i]) . "'"; | 
                                                            
                                    | 1224 |  |                 } | 
                                                            
                                    | 1225 |  |                 $sql_where[] = '`caches`.`type` IN (' . implode(',', $types) . ')'; | 
                                                            
                                    | 1226 |  |             } | 
                                                            
                                    | 1227 |  |         } | 
                                                            
                                    | 1228 |  |  | 
                                                            
                                    | 1229 |  |         if ($options['cachesize'] != '') { | 
                                                            
                                    | 1230 |  |             $sizes = explode(';', $options['cachesize']); | 
                                                                                
                                |  | @@ 1229-1238 (lines=10) @@ | 
                                                            
                                    | 1226 |  |             } | 
                                                            
                                    | 1227 |  |         } | 
                                                            
                                    | 1228 |  |  | 
                                                            
                                    | 1229 |  |         if ($options['cachesize'] != '') { | 
                                                            
                                    | 1230 |  |             $sizes = explode(';', $options['cachesize']); | 
                                                            
                                    | 1231 |  |             if (count($sizes) < sql_value_slave('SELECT COUNT(*) FROM `cache_size`', 0)) { | 
                                                            
                                    | 1232 |  |                 $countSizes = count($sizes); | 
                                                            
                                    | 1233 |  |                 for ($i = 0; $i < $countSizes; $i++) { | 
                                                            
                                    | 1234 |  |                     $sizes[$i] = "'" . sql_escape($sizes[$i]) . "'"; | 
                                                            
                                    | 1235 |  |                 } | 
                                                            
                                    | 1236 |  |                 $sql_where[] = '`caches`.`size` IN (' . implode(',', $sizes) . ')'; | 
                                                            
                                    | 1237 |  |             } | 
                                                            
                                    | 1238 |  |         } | 
                                                            
                                    | 1239 |  |  | 
                                                            
                                    | 1240 |  |         if ($options['difficultymin'] != 0) { | 
                                                            
                                    | 1241 |  |             $sql_where[] = '`caches`.`difficulty`>=\'' . sql_escape($options['difficultymin']) . '\''; |