Commit graph

15 commits

Author SHA1 Message Date
Peter Goodhall
3e944f71cc Normalize location lists and sanitize SQL
Replace fragile quoted-implode station lists with normalized integer CSVs and where_in usage to ensure station_id lists are numeric. Add normalize_location_list helpers in multiple models (Lookup_model, Sig, Timeline_model) and update controllers to cast inputs (e.g. dxcc_id) to ints. Escape user-supplied SQL fragments with $this->db->escape_str/escape_like_str and sanitize band/mode parameters; consolidate band/mode filtering into add_band_mode_filters in Timeline_model. Add guards for empty location lists (returning empty results) and a method_exists check around a legacy vucc_shit call. Overall this improves input validation and reduces SQL injection risk while removing duplicated list-building logic.
2026-06-24 22:29:00 +01:00
Peter Goodhall
a10e4dc33a Sort timeline by earliest contact
Use min(COL_TIME_ON) for ordering in multiple Timeline_model queries (replacing ORDER BY date DESC) and remove unnecessary date() wrappers in SELECTs so groups are sorted by the earliest contact time. In the timeline view, only render the DXCC End Date column when at least one entry has an end date and adjust row output to avoid displaying an empty column.
2026-04-26 21:46:32 +01:00
phl0
eee64ee8e8
Fix details for grids with DXCC none 2024-01-01 01:06:04 +01:00
phl0
95084142b0
LoTW users info for timeline QSOs 2023-06-19 13:21:15 +02:00
phl0
a485d9e72e
Show deleted DXCC badge in timeline 2023-04-27 09:23:11 +02:00
Andreas
dcdfd66a01 [Timeline] Added VUCC as selection for award 2023-01-30 19:54:27 +01:00
Andreas
19e6c54497 [Timeline] Added checkbox for qsl, lotw and eqsl 2022-10-28 19:02:11 +02:00
Andreas
6e6fe817fe [Timeline] Fixed if no QSOs found. 2021-11-14 17:40:36 +01:00
Andreas Kristiansen
42fa1a06d0
Merge branch 'station_logbooks' into cloudlog_php8_compatible 2021-11-13 16:03:52 +01:00
Andreas
939434090d [Bands] Consolidated get_worked_bands to it's own model. This will make it easier to have everything in one place, and perhaps also move bands to db. 2021-11-13 15:55:17 +01:00
Andreas
1b2a88b355 Removed all constructors in models, since this doesn't work in never CodeIgniter 2021-11-06 20:24:28 +01:00
Andreas
9612c02e76 [Timeline] Updated code to support station logbooks 2021-09-10 11:59:41 +02:00
Andreas
583ecb7040 [Timeline] SQL Bugfix for certain MySQL configurations. 2021-07-11 21:32:14 +02:00
Andreas
b33898abdb Expanded timeline with more options. 2020-10-23 12:25:16 +02:00
AndreasK79
e2d84f2332 Added DXCC timeline. 2020-04-28 10:53:11 +02:00