Files
Siro/backend
Hamza-AyedandClaude Opus 5 4009af8dd3 Add campaign launcher and app version manager; fix SQL injection in updatePackages
serviceapp/updatePackages.php built its UPDATE by interpolating the request
values straight into the SQL string, so any caller with a valid token could
execute arbitrary SQL through the version field. It now uses bound
parameters, requires an admin role, validates the version format, and writes
an audit entry.

trigger_campaign.php gains dry_run=1: it performs the same Gemini analysis
and target selection but returns before creating the promo code and before
dispatching any notification. Launching without previewing was the only
option before, and a launch writes a seven-day discount and pushes to every
passenger in the country.

Console:
- Campaign launcher with a mandatory preview. Launching stays disabled until
  the current parameters have been previewed, and re-locks if any parameter
  changes afterwards or once a launch completes.
- App version manager with the same version-format check as the server and a
  confirmation naming the old and new values.

Cache busting: assets are served straight off a bind mount with no version,
so browsers kept running the previously cached build after a deploy. Both
asset links now carry ?v=, and the build id is shown in Session & Security
and printed in the diagnostics report.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 14:41:27 +03:00
..
2026-07-09 03:41:48 +03:00
2026-07-23 16:56:58 +03:00
2026-07-23 16:56:58 +03:00
2026-06-09 08:40:31 +03:00
2026-07-23 21:18:25 +03:00
2026-06-09 08:40:31 +03:00
2026-07-14 19:10:36 +03:00
2026-06-09 08:40:31 +03:00
2026-07-14 00:54:51 +03:00
2026-07-12 05:40:28 +03:00
2026-06-16 17:47:19 +03:00
2026-06-29 00:07:33 +03:00
2026-06-09 08:40:31 +03:00
2026-06-12 20:40:40 +03:00
2026-06-28 00:42:26 +03:00
2026-06-11 13:47:40 +03:00
2026-06-25 01:22:26 +03:00
2026-06-16 01:17:29 +03:00
2026-06-24 16:12:30 +03:00
2026-06-27 05:07:43 +03:00
2026-06-25 01:15:22 +03:00
2026-06-12 20:40:40 +03:00