| @@ 486-505 (lines=20) @@ | ||
| 483 | } |
|
| 484 | } |
|
| 485 | ||
| 486 | if ($airline_type != "") |
|
| 487 | { |
|
| 488 | if (!is_string($airline_type)) |
|
| 489 | { |
|
| 490 | return false; |
|
| 491 | } else { |
|
| 492 | if ($airline_type == "passenger") |
|
| 493 | { |
|
| 494 | $additional_query .= " AND (spotter_output.airline_type = 'passenger')"; |
|
| 495 | } |
|
| 496 | if ($airline_type == "cargo") |
|
| 497 | { |
|
| 498 | $additional_query .= " AND (spotter_output.airline_type = 'cargo')"; |
|
| 499 | } |
|
| 500 | if ($airline_type == "military") |
|
| 501 | { |
|
| 502 | $additional_query .= " AND (spotter_output.airline_type = 'military')"; |
|
| 503 | } |
|
| 504 | } |
|
| 505 | } |
|
| 506 | ||
| 507 | if ($airport != "") |
|
| 508 | { |
|
| @@ 573-589 (lines=17) @@ | ||
| 570 | if ($airline_type != "") |
|
| 571 | { |
|
| 572 | $airline_type = filter_var($airline_type,FILTER_SANITIZE_STRING); |
|
| 573 | if (!is_string($airline_type)) |
|
| 574 | { |
|
| 575 | return false; |
|
| 576 | } else { |
|
| 577 | if ($airline_type == "passenger") |
|
| 578 | { |
|
| 579 | $additional_query .= " AND (spotter_archive_output.airline_type = 'passenger')"; |
|
| 580 | } |
|
| 581 | if ($airline_type == "cargo") |
|
| 582 | { |
|
| 583 | $additional_query .= " AND (spotter_archive_output.airline_type = 'cargo')"; |
|
| 584 | } |
|
| 585 | if ($airline_type == "military") |
|
| 586 | { |
|
| 587 | $additional_query .= " AND (spotter_archive_output.airline_type = 'military')"; |
|
| 588 | } |
|
| 589 | } |
|
| 590 | } |
|
| 591 | ||
| 592 | if ($airport != "") |
|