Hamza-Ayed and Claude Opus 5
db4ca7dd7a
Fix dashbord.php parse error; require super_admin on pricing and crypto tools
...
Hotfix: a comment added to the dashboard SQL contained double quotes inside
the double-quoted PHP string, terminating it and making dashbord.php fail to
parse. Production was returning a parse error for every dashboard request.
Authorisation gaps closed — connect.php only proves a token is valid, it does
not check what the caller is allowed to do:
- Admin/ggg.php decrypts any database field and was authorised solely by an
admin phone number sent in the request body. Anyone who knew a listed
number could decrypt platform data without signing in. It now runs behind
connect.php, requires super_admin, keeps the phone list as a second factor,
and records every use.
- ride/kazan/update.php, kazan/add.php and ride/promo/{add,update,delete}.php
changed live pricing and discount codes with no role check at all, so any
valid token — including a driver's or passenger's — could rewrite the fare
table. All now require super_admin.
Staff/pending.php: adminUser has no `status` column in this deployment, so
the query failed with an opaque "unavailable". It now checks for the column
and reports the actual reason.
Console: Kazan tariff editor for super admins — sends only changed fields,
shows an old → new confirmation before saving, and stays read-only with an
explanatory notice for plain admins.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-25 02:00:14 +03:00
Hamza-Ayed and Claude Opus 5
852c6ece5c
Fix admin status handling for the current ride pipeline; extend console
...
The ride table holds two generations of status values: the legacy CamelCase
set ('Finished', 'CancelFromPassenger') and the lowercase set written by
backend/ride/rides/* today ('completed', 'cancelled_by_passenger'). Admin
queries only matched the legacy set, so on live data:
- get_rides_by_status.php returned nothing meaningful for every filter, and
the "in progress" default masked it.
- dashbord.php reported total_driver_earnings as NULL, completed_rides as a
fraction of the real count, and cancelled_rides as 0.
- driver_avg_duration averaged in negative durations, yielding "-00h 22m".
All three now match on LOWER(status) across both families.
Staff/pending.php ran with no authentication at all, exposing pending
admins' names and phone numbers to any caller; it now goes through
connect.php with a role check. It also returned HTTP 400 for everything when
the `users` table was absent — each source is queried independently and
reports its own availability.
Console:
- Render rides from either schema generation (price/date/time and
start_location coordinates, or the older address/created_at columns).
- Null aggregates render as "—" rather than a measured 0.00.
- Add tariff/promo, WhatsApp send and encryption modules, all super-admin
gated; pricing remains read-only.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-25 01:47:55 +03:00
Hamza-Ayed
915a148ebf
Update: 2026-07-25 01:38:11
2026-07-25 01:38:11 +03:00
Hamza-Ayed
0d9095fd3f
Update: 2026-07-25 01:16:32
2026-07-25 01:16:33 +03:00
Hamza-Ayed
eda7018434
Update: 2026-07-25 01:02:01
2026-07-25 01:02:02 +03:00
Hamza-Ayed
822cb5963a
Ensure Live Backend mode is enforced and clear old Demo localStorage session
2026-07-25 00:44:11 +03:00
Hamza-Ayed
8ec7b9aae6
Bind live MySQL database tables (Rides, Passengers, Pending Approvals) into Siro Admin Portal
2026-07-25 00:41:18 +03:00
Hamza-Ayed
c9168c1c80
Enhance Siro Admin Dashboard with live backend API database bindings
2026-07-25 00:33:32 +03:00
Hamza-Ayed
10f1154cc7
Update adminUser fingerprint and fingerprint_hash in database upon successful OTP verification
2026-07-25 00:30:14 +03:00
Hamza-Ayed
9d2a665d64
Restore WhatsApp OTP (Nabeh API) flow for Admin authentication
2026-07-25 00:25:53 +03:00
Hamza-Ayed
4c738e8f43
Remove legacy encrypt_decrypt.php - bootstrap.php already provides encryptionHelper
2026-07-25 00:23:27 +03:00
Hamza-Ayed
032e1edda5
Remove broken providers.php require_once - issue JWT directly on valid password
2026-07-24 23:59:27 +03:00
Hamza-Ayed
1ca2c5a5dd
Fix require_once path in login.php using realpath
2026-07-24 23:51:28 +03:00
Hamza-Ayed
f115292dd2
Refactor login.php with decryption lookup for encrypted fields and restore Nabeh OTP integration
2026-07-24 23:48:57 +03:00
Hamza-Ayed
60e344598b
Fix Admin login path issue and issue direct JWT on valid credentials
2026-07-24 23:45:28 +03:00
Hamza-Ayed
8bc9290916
Safely initialize encryptionHelper and handle Throwable in Admin login.php
2026-07-24 23:42:39 +03:00
Hamza-Ayed
9e2964d307
Allow email and ID login in Admin auth login.php and bind web device fingerprint
2026-07-24 23:38:17 +03:00
Hamza-Ayed
b3126013f5
Update: 2026-07-24 23:31:37
2026-07-24 23:31:37 +03:00
Hamza-Ayed
5ebff42841
Update: 2026-07-24 23:23:54
2026-07-24 23:23:55 +03:00
Hamza-Ayed
2944f21f53
Add dashboard web applications (siro-admin & siro-service) with docker Nginx routing
2026-07-24 22:59:26 +03:00
Hamza-Ayed
917dfc025f
Update: 2026-07-24 22:57:32
2026-07-24 22:57:32 +03:00
Hamza-Ayed
0b24bc21b6
Update: 2026-07-24 22:55:34
2026-07-24 22:55:34 +03:00
Hamza-Ayed
474c212bcb
refactor: migrate amount fields to decimal and implement location service restriction for unsupported regions
2026-07-24 15:08:37 +03:00
Hamza-Ayed
e7629a9eb9
Update: 2026-07-23 22:14:10
2026-07-23 22:14:10 +03:00
Hamza-Ayed
695d6d7cb2
Update: 2026-07-23 21:18:25
2026-07-23 21:18:25 +03:00
Hamza-Ayed
e7aa28fe3d
Update: 2026-07-23 21:05:22
2026-07-23 21:05:22 +03:00
Hamza-Ayed
7d646b579b
Update: 2026-07-23 21:02:51
2026-07-23 21:02:51 +03:00
Hamza-Ayed
b4451a0dde
Update: 2026-07-23 20:50:10
2026-07-23 20:50:10 +03:00
Hamza-Ayed
92eb7fe25d
Update: 2026-07-23 20:43:21
2026-07-23 20:43:21 +03:00
Hamza-Ayed
1e785061ec
Fix decryptData null type error and live analytics overflow
2026-07-23 20:42:48 +03:00
Hamza-Ayed
12e70f3d7e
Fix status warning in admin login
2026-07-23 20:34:27 +03:00
Hamza-Ayed
12a1cbc98c
Update: 2026-07-23 20:15:22
2026-07-23 20:15:22 +03:00
Hamza-Ayed
c35b350b31
Update: 2026-07-23 16:56:57
2026-07-23 16:56:58 +03:00
Hamza-Ayed
1cef598fc5
Update: 2026-07-23 02:19:01
2026-07-23 02:19:01 +03:00
Hamza-Ayed
e5bf70fddb
Update: 2026-07-23 02:14:58
2026-07-23 02:14:58 +03:00
Hamza-Ayed
9e065e5a83
Update: 2026-07-23 00:16:56
2026-07-23 00:16:56 +03:00
Hamza-Ayed
ed8a93a6a3
Update: 2026-07-23 00:13:41
2026-07-23 00:13:41 +03:00
Hamza-Ayed
a7fa40dc31
Update: 2026-07-23 00:11:36
2026-07-23 00:11:37 +03:00
Hamza-Ayed
b86f95c90d
Update: 2026-07-22 23:27:18
2026-07-22 23:27:18 +03:00
Hamza-Ayed
b83ca1f664
Update: 2026-07-22 23:20:32
2026-07-22 23:20:33 +03:00
Hamza-Ayed
fbb95c70fa
Update: 2026-07-22 23:06:34
2026-07-22 23:06:34 +03:00
Hamza-Ayed
b9efba3787
Update: 2026-07-22 18:32:11
2026-07-22 18:32:11 +03:00
Hamza-Ayed
e798f84c03
Update: 2026-07-22 18:30:10
2026-07-22 18:30:11 +03:00
Hamza-Ayed
55fbe22f8e
Update: 2026-07-22 18:23:10
2026-07-22 18:23:10 +03:00
Hamza-Ayed
f76623a25e
Update: 2026-07-22 18:20:33
2026-07-22 18:20:33 +03:00
Hamza-Ayed
f62716b510
Update: 2026-07-22 18:11:54
2026-07-22 18:11:54 +03:00
Hamza-Ayed
771b436c69
Update: 2026-07-22 17:58:19
2026-07-22 17:58:19 +03:00
Hamza-Ayed
939c7a9c2c
Update: 2026-07-22 17:49:27
2026-07-22 17:49:28 +03:00
Hamza-Ayed
ccbe3ab88d
Update: 2026-07-22 16:01:21
2026-07-22 16:01:21 +03:00
Hamza-Ayed
09a4bbc79f
Fix driver visibility radius and silence tolerance in api_get_nearby
2026-07-22 15:45:54 +03:00
Hamza-Ayed
901f429b9c
Update driver and rider socket URLs to jordan-siro.intaleqapp.com for Docker setup
2026-07-22 04:15:18 +03:00
Hamza-Ayed
6282be37d8
Fix get.php key loading fallback
2026-07-22 04:03:37 +03:00
Hamza-Ayed
a2f0911d13
Fix api_get_nearby syntax error and Docker key paths
2026-07-22 03:59:40 +03:00
Hamza-Ayed
dabf4c13ba
Fix driver_socket JWT compatibility for Flutter app
2026-07-22 03:57:14 +03:00
Hamza-Ayed
1b45b505f8
Update: 2026-07-22 01:40:24
2026-07-22 01:40:24 +03:00
Hamza-Ayed
8ec0ac2942
Update: 2026-07-22 01:35:37
2026-07-22 01:35:37 +03:00
Hamza-Ayed
26d0ec2982
Update: 2026-07-22 01:07:41
2026-07-22 01:07:41 +03:00
Hamza-Ayed
11d7d86b2f
Update: 2026-07-22 01:06:03
2026-07-22 01:06:03 +03:00
Hamza-Ayed
a4b5a2545c
Update: 2026-07-22 01:04:56
2026-07-22 01:04:57 +03:00
Hamza-Ayed
be14b2716e
Update: 2026-07-22 01:01:26
2026-07-22 01:01:26 +03:00
Hamza-Ayed
9a73f4303d
Update: 2026-07-22 00:55:45
2026-07-22 00:55:45 +03:00
Hamza-Ayed
bbcefd20cf
Update: 2026-07-22 00:52:19
2026-07-22 00:52:20 +03:00
Hamza-Ayed
521d76c4cf
Update: 2026-07-22 00:48:30
2026-07-22 00:48:30 +03:00
Hamza-Ayed
b613022169
Update: 2026-07-22 00:46:37
2026-07-22 00:46:37 +03:00
Hamza-Ayed
540e77984b
Update: 2026-07-22 00:44:11
2026-07-22 00:44:11 +03:00
Hamza-Ayed
bec8089fd1
Update: 2026-07-22 00:42:09
2026-07-22 00:42:09 +03:00
Hamza-Ayed
a5ae6fecbe
Update: 2026-07-22 00:40:58
2026-07-22 00:40:58 +03:00
Hamza-Ayed
16101927e1
Update: 2026-07-22 00:39:28
2026-07-22 00:39:28 +03:00
Hamza-Ayed
58222fbf81
Update: 2026-07-22 00:37:03
2026-07-22 00:37:03 +03:00
Hamza-Ayed
bcab0ea221
Update: 2026-07-22 00:36:04
2026-07-22 00:36:05 +03:00
Hamza-Ayed
87b4f12da0
Update: 2026-07-22 00:33:44
2026-07-22 00:33:44 +03:00
Hamza-Ayed
17abdada10
Update: 2026-07-22 00:32:07
2026-07-22 00:32:07 +03:00
Hamza-Ayed
2b302db1dd
Update: 2026-07-22 00:29:56
2026-07-22 00:29:56 +03:00
Hamza-Ayed
cf95455bcf
Update: 2026-07-22 00:27:49
2026-07-22 00:27:50 +03:00
Hamza-Ayed
699b380f2b
Update: 2026-07-21 20:58:30
2026-07-21 20:58:30 +03:00
Hamza-Ayed
3d0c266b7a
Update: 2026-07-21 20:55:19
2026-07-21 20:55:20 +03:00
Hamza-Ayed
586deec4f4
Update: 2026-07-21 20:50:03
2026-07-21 20:50:04 +03:00
Hamza-Ayed
bb3536aa90
Update: 2026-07-21 20:40:48
2026-07-21 20:40:48 +03:00
Hamza-Ayed
23f697b1c6
Update: 2026-07-21 19:43:50
2026-07-21 19:43:51 +03:00
Hamza-Ayed
1bec13634a
Update: 2026-07-21 19:34:29
2026-07-21 19:34:29 +03:00
Hamza-Ayed
0ee3655c05
Update: 2026-07-21 19:31:02
2026-07-21 19:31:02 +03:00
Hamza-Ayed
4f47c0ad1d
Update: 2026-07-21 19:28:08
2026-07-21 19:28:08 +03:00
Hamza-Ayed
f3905bcb2c
Update: 2026-07-21 19:24:57
2026-07-21 19:24:57 +03:00
Hamza-Ayed
1103f6ffcf
Update: 2026-07-21 19:22:23
2026-07-21 19:22:23 +03:00
Hamza-Ayed
0351bffafc
Update: 2026-07-21 19:19:15
2026-07-21 19:19:15 +03:00
Hamza-Ayed
096f6a13a0
Update: 2026-07-21 19:15:57
2026-07-21 19:15:57 +03:00
Hamza-Ayed
ebd6f3734a
Update: 2026-07-21 19:09:42
2026-07-21 19:09:42 +03:00
Hamza-Ayed
8d8c3a3817
Update: 2026-07-21 19:03:47
2026-07-21 19:03:47 +03:00
Hamza-Ayed
432245a688
Update: 2026-07-21 18:55:51
2026-07-21 18:55:51 +03:00
Hamza-Ayed
5d68ec5d0c
Update: 2026-07-21 18:33:13
2026-07-21 18:33:13 +03:00
Hamza-Ayed
c9bef58f47
Update: 2026-07-21 18:31:25
2026-07-21 18:31:25 +03:00
Hamza-Ayed
36ca266132
Update: 2026-07-21 18:25:21
2026-07-21 18:25:21 +03:00
Hamza-Ayed
e88d45add4
Update: 2026-07-21 18:24:21
2026-07-21 18:24:21 +03:00
Hamza-Ayed
6d6c7cab7f
Update: 2026-07-21 18:18:21
2026-07-21 18:18:21 +03:00
Hamza-Ayed
818220bba2
Update: 2026-07-21 17:47:43
2026-07-21 17:47:43 +03:00
Hamza-Ayed
0f59975144
Update: 2026-07-21 17:31:31
2026-07-21 17:31:31 +03:00
Hamza-Ayed
24e03ae46c
Update: 2026-07-21 17:29:09
2026-07-21 17:29:09 +03:00
Hamza-Ayed
58ada98dd7
Update: 2026-07-21 17:27:39
2026-07-21 17:27:39 +03:00
Hamza-Ayed
1b4d831ca6
Update: 2026-07-21 17:23:24
2026-07-21 17:23:24 +03:00
Hamza-Ayed
69f043c297
Update: 2026-07-21 17:19:49
2026-07-21 17:19:50 +03:00