Commit graph

66 commits

Author SHA1 Message Date
Peter Goodhall
5b3272eafc Return upload status and report no Clublog QSOs
Track and return whether any QSOs were actually uploaded to Clublog and log/report when none are pending. index(): introduced $uploaded_any_qsos and aggregate per-user upload results; if nothing uploaded, echo a message and write an info log. uploadUser(): return false on invalid Clublog username (was previously void); added $uploaded_for_user tracking while iterating station profiles and set it when Clublog responds with 'accepted'. uploadUser now returns true when QSOs were uploaded for the user, otherwise false.
2026-05-28 13:42:41 +01:00
Peter Goodhall
0e0244dd73 Resolve file path for Clublog uploads
Use FCPATH to build the upload file path and fall back to DOCUMENT_ROOT plus the configured install directory if the file is missing. Normalizes leading/trailing slashes and casts values to strings to avoid notices, and checks file existence before attempting the fallback. This improves robustness when the app is installed in a subdirectory or when DOCUMENT_ROOT is not set.
2026-05-28 13:40:47 +01:00
Peter Goodhall
e6ecfa4f1b Require Clublog username to be a valid email address
Enforces that Clublog usernames are valid email addresses throughout the application, reflecting Clublog's policy change to no longer accept callsigns as usernames. Updates validation in controllers, models, and views, adds a migration to clear non-email usernames, and updates language files in multiple languages to clarify the requirement.
2025-10-13 13:40:56 +01:00
Peter Goodhall
28f73d5970 Improved commenting 2025-05-21 17:12:22 +01:00
Peter Goodhall
3e24905520 If Clublog returns 403 disable upload 2025-05-21 16:47:57 +01:00
int2001
032e77957f
Clublog-RT-Upload 2023-11-27 12:55:16 +00:00
Andreas
e00aacc96c [Clublog] Updated script (cron job) to work for all users with a username and password set 2022-09-11 15:02:31 +02:00
Peter Goodhall
de491981d4 Improved some text output rendering 2020-11-28 20:00:07 +00:00
Paul Beesley
5d23802e16 Further tweaks to text and text formatting
This commit has some further changes to text throughout the application. There are also some small fixes for text formatting. E.g. making sure that the small "helper" text under certain form fields is all consistent in terms of colour, font, etc.
2020-11-02 09:34:29 +00:00
Peter Goodhall
ec9a3cc10b Update Clublog.php 2019-10-13 18:17:13 +01:00
Peter Goodhall
2b22b0139a Update Clublog.php 2019-10-13 18:10:23 +01:00
Peter Goodhall
34e0f94b66 Update Clublog.php 2019-10-13 18:08:22 +01:00
Peter Goodhall
32ed67896f Update Clublog.php 2019-10-13 18:04:46 +01:00
Peter Goodhall
5560e5005e POST Each QSO to clublog seperately and if successful mark as sent. 2019-10-13 18:04:17 +01:00
Peter Goodhall
0c74ac5605 clublog realtime function wasn't public so couldn't be called 2019-10-13 16:26:34 +01:00
Peter Goodhall
7f538b4cab added clublog/realtime function this hasn't been tested current thinking is to run in a cronjob every minute or so 2019-10-12 23:42:03 +01:00
Peter Goodhall
ffa1e12048 started the barebones to add realtime clublog uploading 2019-10-12 23:10:22 +01:00
Peter Goodhall
51419ad9e0 Added debug error logging 2019-10-09 21:39:12 +01:00
Michael G7VJR
80145b4732 Use Club Log CDN for cty.xml
Change the URL for collecting Club Log's cty.xml definitions to use https://cdn.clublog.org (Content Delivery Network, faster). Remove reference to secure.clublog.org and update string "Clublog" to be "Club Log".

Getting my hands dirty for the first time so very minor stuff!
2019-10-08 20:53:14 +01:00
Peter Goodhall
51723d146c Added XSS clean to incoming items and code to delete clublog adif files 2019-10-05 19:26:07 +01:00
Peter Goodhall
49f7bdf6e8 Delete clublog ADIF after upload 2019-10-05 19:21:07 +01:00
Peter Goodhall
bf6963bf38 Update Clublog.php 2019-09-26 13:20:56 +01:00
Peter Goodhall
7f18ffcabf Update Clublog.php 2019-09-26 13:19:37 +01:00
Peter Goodhall
bd8cbd5616 Update Clublog.php 2019-09-26 13:15:33 +01:00
Peter Goodhall
11458ceafb Update Clublog.php 2019-09-26 13:13:53 +01:00
Peter Goodhall
1834feaed8 Update Clublog.php 2019-09-26 13:12:59 +01:00
Peter Goodhall
41131dacb9 Fixed IF bug 2019-09-26 13:08:47 +01:00
Peter Goodhall
eff165f28e Clublog will upload to logbook based on the station callsign of the station profile 2019-09-26 13:05:28 +01:00
Peter Goodhall
06297e76e5 Moved Clublog lookup function to Clublog controller 2019-08-16 12:11:46 +01:00
Peter Goodhall
3aeb1e6fe6 Show the actual error from Clublog if there is one 2019-06-20 16:31:00 +01:00
Peter Goodhall
e351185bf1 Added a function to mark all qsos not sent to clublog
markallnotsent is really only needed if theres been a major failure
2019-06-20 15:53:57 +01:00
Peter Goodhall
4816240d9b Catch error didn't like being put in an array 2019-06-20 15:43:58 +01:00
Peter Goodhall
c126df2fb3 Removed debug info that wasn't needed 2019-06-20 15:30:35 +01:00
Peter Goodhall
2368a1c322 Update Clublog.php 2019-06-20 15:27:09 +01:00
Peter Goodhall
9ca408e888 More states of data in the table 2019-06-20 15:26:36 +01:00
Peter Goodhall
76107c72d4 More functions 2019-06-20 15:24:54 +01:00
Peter Goodhall
ef2dfde183 mark qso sent to clublog function 2019-06-20 15:21:05 +01:00
Peter Goodhall
d6acdce80d Possibly fixes the last of the clublog errors 2019-06-20 15:16:53 +01:00
Peter Goodhall
d16874e1b4 Update Clublog.php 2019-06-19 18:03:48 +01:00
Peter Goodhall
f2277f5d57 Update Clublog.php 2019-06-19 17:51:03 +01:00
Peter Goodhall
08735b116f Update Clublog.php 2019-06-19 17:43:35 +01:00
Peter Goodhall
4eb7ea834d Update Clublog.php 2019-06-19 17:42:20 +01:00
Peter Goodhall
0e8f47255a Didnt remove debug Think I shouldnt be coding this eve 2019-06-19 17:39:21 +01:00
Peter Goodhall
f5efb96392 Fixes directory to file issue, within config.php you must state your directory if its not in the main dir. 2019-06-19 17:36:33 +01:00
Peter Goodhall
f28d1686a1 Update Clublog.php 2019-06-19 17:22:28 +01:00
Peter Goodhall
1158582dc4 typo 2019-06-19 17:21:49 +01:00
Peter Goodhall
50ea6a61d9 check for curl errors 2019-06-19 17:21:27 +01:00
Peter Goodhall
f5b8b101a1 Update Clublog.php 2019-06-19 17:19:05 +01:00
Peter Goodhall
6276b17a25 set it to show all php errors 2019-06-19 17:16:17 +01:00
Peter Goodhall
81ae05f476 Check if this is a memory issue 2019-06-19 17:14:07 +01:00