[2026-01-17 01:40:34] 🔵 [REGISTER] Starting registration process
[2026-01-17 01:40:34] 🔵 [REGISTER] Received data: email=snsowaa2019@gmail.com
[2026-01-17 01:40:34] ✅ [REGISTER] Basic validation passed
[2026-01-17 01:40:34] ✅ [REGISTER] Email is unique
[2026-01-17 01:40:34] ✅ [REGISTER] Generated username: snsowaa2019_696ae892917f2
[2026-01-17 01:40:34] ✅ [REGISTER] Password hashed
[2026-01-17 01:40:34] 🔵 [REGISTER] Inserting user into database
[2026-01-17 01:40:34] ✅ [REGISTER] User inserted with ID: 7
[2026-01-17 01:40:34] ✅ [REGISTER] Session variables set
[2026-01-17 01:40:34] 🔵 [REGISTER] Logging registration activity
[2026-01-17 01:40:34] ✅ [REGISTER] Activity logged
[2026-01-17 01:40:34] 🔵 [REGISTER] Attempting to send welcome email
[2026-01-17 01:51:50] 🔵 [REGISTER] Starting registration process
[2026-01-17 01:51:50] 🔵 [REGISTER] Received data: email=snsowaa2019@gmail.com
[2026-01-17 01:51:50] ✅ [REGISTER] Basic validation passed
[2026-01-17 01:51:50] ✅ [REGISTER] Email is unique
[2026-01-17 01:51:50] ✅ [REGISTER] Generated username: snsowaa2019_696aeb36f394b
[2026-01-17 01:51:51] ✅ [REGISTER] Password hashed
[2026-01-17 01:51:51] 🔵 [REGISTER] Inserting user into database
[2026-01-17 01:51:51] ✅ [REGISTER] User inserted with ID: 8
[2026-01-17 01:51:51] ✅ [REGISTER] Session variables set
[2026-01-17 01:51:51] 🔵 [REGISTER] Logging registration activity
[2026-01-17 01:51:51] ✅ [REGISTER] Activity logged
[2026-01-17 01:51:51] 🔵 [REGISTER] Attempting to send welcome email
[2026-01-17 01:51:51] ❌ [PHP EXCEPTION] syntax error, unexpected string content "", expecting "-" or identifier or variable or number in /home2/afrinovaimpacttr/public_html/helpers/email.php:778
[2026-01-17 01:56:32] 🔵 [REGISTER] Starting registration process
[2026-01-17 01:56:32] 🔵 [REGISTER] Received data: email=snsowaa2019@gmail.com
[2026-01-17 01:56:32] ✅ [REGISTER] Basic validation passed
[2026-01-17 01:56:32] ✅ [REGISTER] Email is unique
[2026-01-17 01:56:32] ✅ [REGISTER] Generated username: snsowaa2019_696aec50f1d41
[2026-01-17 01:56:33] ✅ [REGISTER] Password hashed
[2026-01-17 01:56:33] 🔵 [REGISTER] Inserting user into database
[2026-01-17 01:56:33] ✅ [REGISTER] User inserted with ID: 9
[2026-01-17 01:56:33] ✅ [REGISTER] Session variables set
[2026-01-17 01:56:33] 🔵 [REGISTER] Logging registration activity
[2026-01-17 01:56:33] ✅ [REGISTER] Activity logged
[2026-01-17 01:56:33] 🔵 [REGISTER] Attempting to send welcome email
[2026-01-17 01:56:33] ❌ [PHP EXCEPTION] Call to undefined function site_url() in /home2/afrinovaimpacttr/public_html/helpers/email.php:828
[2026-01-17 02:18:20] 🔵 [REGISTER] Starting registration process
[2026-01-17 02:18:20] 🔵 [REGISTER] Received data: email=snsowaa2019@gmail.com
[2026-01-17 02:18:20] ✅ [REGISTER] Basic validation passed
[2026-01-17 02:18:20] ❌ [REGISTER] Email already registered: snsowaa2019@gmail.com
[2026-01-17 02:18:35] 🔵 [REGISTER] Starting registration process
[2026-01-17 02:18:35] 🔵 [REGISTER] Received data: email=snsowaa2019@gmail.com
[2026-01-17 02:18:35] ✅ [REGISTER] Basic validation passed
[2026-01-17 02:18:35] ✅ [REGISTER] Email is unique
[2026-01-17 02:18:35] ✅ [REGISTER] Generated username: snsowaa2019_696af17b55f63
[2026-01-17 02:18:35] ✅ [REGISTER] Password hashed
[2026-01-17 02:18:35] 🔵 [REGISTER] Inserting user into database
[2026-01-17 02:18:35] ✅ [REGISTER] User inserted with ID: 10
[2026-01-17 02:18:35] ✅ [REGISTER] Session variables set
[2026-01-17 02:18:35] 🔵 [REGISTER] Logging registration activity
[2026-01-17 02:18:35] ✅ [REGISTER] Activity logged
[2026-01-17 02:18:35] 🔵 [REGISTER] Attempting to send welcome email
[2026-01-17 02:18:35] ✅ [REGISTER] Welcome email sent successfully
[2026-01-17 02:18:35] 🟢 [REGISTER] Sending success response to client
[2026-01-17 11:00:26] 🔵 [REGISTER] Starting registration process
[2026-01-17 11:00:26] 🔵 [REGISTER] Received data: email=oppemma98@yahoo.com
[2026-01-17 11:00:26] ✅ [REGISTER] Basic validation passed
[2026-01-17 11:00:26] ✅ [REGISTER] Email is unique
[2026-01-17 11:00:26] ✅ [REGISTER] Generated username: oppemma98_696b6bca06f58
[2026-01-17 11:00:26] ✅ [REGISTER] Password hashed
[2026-01-17 11:00:26] 🔵 [REGISTER] Inserting user into database
[2026-01-17 11:00:26] ✅ [REGISTER] User inserted with ID: 11
[2026-01-17 11:00:26] ✅ [REGISTER] Session variables set
[2026-01-17 11:00:26] 🔵 [REGISTER] Logging registration activity
[2026-01-17 11:00:26] ✅ [REGISTER] Activity logged
[2026-01-17 11:00:26] 🔵 [REGISTER] Attempting to send welcome email
[2026-01-17 11:00:26] ✅ [REGISTER] Welcome email sent successfully
[2026-01-17 11:00:26] 🟢 [REGISTER] Sending success response to client
[2026-01-17 11:04:02] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=10
[2026-01-17 11:04:02] ❌ [BOOKING] saveBooking PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'deposit_amount' in 'field list'
[2026-01-17 11:04:02] ❌ [BOOKING] saveBooking SQL error code: 42S22
[2026-01-17 11:14:25] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=10
[2026-01-17 11:14:25] ✅ [BOOKING] saveBooking: Booking inserted with ID=122
[2026-01-17 12:07:28] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:07:28] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:07:28] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:07:31] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:07:31] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:07:31] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:07:34] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:07:34] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:07:34] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:09:12] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:09:12] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:09:12] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:14:11] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:14:11] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:14:11] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:14:20] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:14:20] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:14:20] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:14:23] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:14:23] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:14:23] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:14:28] 🔍 [getAllUsers] Checking admin status for user_id: 10
[2026-01-17 12:14:28] 🔍 [getAllUsers] User data: {"id":"10","username":"snsowaa2019_696af17b55f63","user_type":"customer","role":"editor"}
[2026-01-17 12:14:28] ❌ [getAllUsers] User is not admin. user_type=customer, role=editor
[2026-01-17 12:15:10] 🔵 [searchBookings] Received: ref=BK-20260117-28F06A53, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 12:15:37] 🔵 [searchBookings] Received: ref=BK-20260117-28F06A53, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:05:49] 🔵 [searchBookings] Received: ref=BK-20260117-28F06A53, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:13:46] 🔵 [searchBookings] Received: ref=BK-20260117-28F06A53, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:17:09] 🔵 [searchBookings] Received: ref=BK-20260117-28F06A53, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:17:49] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=10
[2026-01-17 13:17:49] ✅ [BOOKING] saveBooking: Booking inserted with ID=123
[2026-01-17 13:18:54] 🔵 [searchBookings] Received: ref=BK-20260117-28627D8B, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:21:22] 🔵 [searchBookings] Received: ref=BK-20260117-28627D8B, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:43:53] 🔵 [searchBookings] Received: ref=BK-20260117-28627D8B, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:48:26] 🔵 [searchBookings] Received: ref=BK-20260117-28627D8B, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 13:48:29] 🔵 [searchBookings] Received: ref=BK-20260117-28627D8B, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 14:06:21] 🔵 [searchBookings] Received: ref=BK-20260117-28F06A53, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-17 14:06:54] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=10
[2026-01-17 14:06:54] ✅ [BOOKING] saveBooking: Booking inserted with ID=124
[2026-01-17 17:56:22] 🔵 [REGISTER] Starting registration process
[2026-01-17 17:56:22] 🔵 [REGISTER] Received data: email=oppemma98@yahoo.com
[2026-01-17 17:56:22] ✅ [REGISTER] Basic validation passed
[2026-01-17 17:56:22] ❌ [REGISTER] Email already registered: oppemma98@yahoo.com
[2026-01-17 17:56:42] 🔵 [REGISTER] Starting registration process
[2026-01-17 17:56:42] 🔵 [REGISTER] Received data: email=frickyberry470@gmail.com
[2026-01-17 17:56:42] ✅ [REGISTER] Basic validation passed
[2026-01-17 17:56:42] ✅ [REGISTER] Email is unique
[2026-01-17 17:56:42] ✅ [REGISTER] Generated username: frickyberry470_696bcd5a2239f
[2026-01-17 17:56:42] ✅ [REGISTER] Password hashed
[2026-01-17 17:56:42] 🔵 [REGISTER] Inserting user into database
[2026-01-17 17:56:42] ✅ [REGISTER] User inserted with ID: 12
[2026-01-17 17:56:42] ✅ [REGISTER] Session variables set
[2026-01-17 17:56:42] 🔵 [REGISTER] Logging registration activity
[2026-01-17 17:56:42] ✅ [REGISTER] Activity logged
[2026-01-17 17:56:42] 🔵 [REGISTER] Attempting to send welcome email
[2026-01-17 17:56:42] ✅ [REGISTER] Welcome email sent successfully
[2026-01-17 17:56:42] 🟢 [REGISTER] Sending success response to client
[2026-01-17 17:57:19] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=12
[2026-01-17 17:57:19] ✅ [BOOKING] saveBooking: Booking inserted with ID=125
[2026-01-17 18:24:23] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-17 18:24:23] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-17 18:24:23] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-17 18:24:30] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-17 18:24:30] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-17 18:24:30] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-17 19:25:44] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=12
[2026-01-17 19:25:45] ✅ [BOOKING] saveBooking: Booking inserted with ID=126
[2026-01-17 19:38:13] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=12
[2026-01-17 19:38:13] ✅ [BOOKING] saveBooking: Booking inserted with ID=127
[2026-01-17 19:45:38] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=12
[2026-01-17 19:45:38] ✅ [BOOKING] saveBooking: Booking inserted with ID=128
[2026-01-17 19:53:00] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-17 19:53:00] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-17 19:53:00] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-17 21:37:09] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-17 21:37:09] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-17 21:37:09] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-17 21:37:29] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-17 21:37:29] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-17 21:37:29] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-19 01:57:57] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 01:57:57] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 01:57:57] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-19 02:01:18] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=10
[2026-01-19 02:01:18] ✅ [BOOKING] saveBooking: Booking inserted with ID=129
[2026-01-19 02:15:46] 🔵 [searchBookings] Received: ref=BK-20260119-54AE0E50, name=Samuel Nsowaa, email=snsowaa2019@gmail.com, phone=+233205132353
[2026-01-19 09:55:29] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 09:55:29] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 09:55:29] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-19 09:55:39] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 09:55:39] 🔍 [getAllUsers] User data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 09:55:39] ❌ [getAllUsers] User is not admin. user_type=customer, role=superadmin
[2026-01-19 10:10:29] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:10:29] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:10:29] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:10:29] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:10:39] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:10:39] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:10:39] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:10:39] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:10:53] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:10:53] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:10:53] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:10:53] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:22:47] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:22:47] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:22:47] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:22:47] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:22:56] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:22:56] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:22:56] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:22:56] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:23:15] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:23:15] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:23:15] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:23:15] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:23:32] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:23:32] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:23:32] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:23:32] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:24:01] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:24:01] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:24:01] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:24:01] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:30:57] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:30:57] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:30:57] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:30:57] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:31:00] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:31:00] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:31:00] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:31:00] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:31:19] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:31:19] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:31:19] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:31:19] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:40:23] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:40:23] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:40:23] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:40:23] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-01-19 10:40:26] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-01-19 10:40:26] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-01-19 10:40:26] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-01-19 10:40:26] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-02-02 10:26:43] ❌ [PHP EXCEPTION] Call to undefined function mail() in /home2/afrinovaimpacttr/public_html/api/auth.php:607
[2026-02-02 10:29:07] ✅ [forgotPassword] Password reset email sent to: snsowaa2019@gmail.com
[2026-02-02 10:29:07] ✅ [forgotPassword] Reset email sent to: snsowaa2019@gmail.com
[2026-02-02 10:32:21] ✅ [resetPassword] Password reset successfully for user: 10
[2026-02-10 13:23:48] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-02-10 13:23:48] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-02-10 13:23:48] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-02-10 13:23:48] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-02-10 14:21:57] ✅ [forgotPassword] Password reset email sent to: oppemma98@yahoo.com
[2026-02-10 14:21:57] ✅ [forgotPassword] Reset email sent to: oppemma98@yahoo.com
[2026-02-10 14:22:43] ✅ [resetPassword] Password reset successfully for user: 11
[2026-02-10 14:23:33] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=11
[2026-02-10 14:23:33] ✅ [BOOKING] saveBooking: Booking inserted with ID=130
[2026-02-11 21:52:08] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-02-11 21:52:08] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-02-11 21:52:08] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-02-11 21:52:08] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-02-11 21:52:13] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-02-11 21:52:13] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-02-11 21:52:13] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-02-11 21:52:13] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-02-11 21:52:23] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-02-11 21:52:23] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-02-11 21:52:23] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-02-11 21:52:23] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-02-12 00:30:02] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-02-12 00:30:02] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-02-12 00:30:02] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-02-12 00:30:02] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-02-12 00:30:11] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-02-12 00:30:11] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-02-12 00:30:11] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-02-12 00:30:11] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-02-16 01:55:53] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=10
[2026-02-16 01:55:53] ✅ [BOOKING] saveBooking: Booking inserted with ID=131
[2026-02-20 19:53:26] 🔍 [getAllUsers] Checking admin status for user_id: 1
[2026-02-20 19:53:26] 🔍 [getAllUsers] Session user_type: customer, role: superadmin
[2026-02-20 19:53:26] 🔍 [getAllUsers] Database user data: {"id":"1","username":"info@afrinovaimpacttrek.org","user_type":"customer","role":"superadmin"}
[2026-02-20 19:53:26] ❌ [getAllUsers] User is not admin. session_user_type=customer, session_role=superadmin
[2026-05-15 14:55:33] 🔵 [REGISTER] Starting registration process
[2026-05-15 14:55:33] 🔵 [REGISTER] Received data: email=mafiatripple@gmail.com
[2026-05-15 14:55:33] ✅ [REGISTER] Basic validation passed
[2026-05-15 14:55:33] ✅ [REGISTER] Email is unique
[2026-05-15 14:55:33] ✅ [REGISTER] Generated username: mafiatripple_6a0733e582e36
[2026-05-15 14:55:33] ✅ [REGISTER] Password hashed
[2026-05-15 14:55:33] 🔵 [REGISTER] Inserting user into database
[2026-05-15 14:55:33] ✅ [REGISTER] User inserted with ID: 13
[2026-05-15 14:55:33] ✅ [REGISTER] Session variables set
[2026-05-15 14:55:33] 🔵 [REGISTER] Logging registration activity
[2026-05-15 14:55:33] ✅ [REGISTER] Activity logged
[2026-05-15 14:55:33] 🔵 [REGISTER] Attempting to send welcome email
[2026-05-15 14:55:33] ✅ [REGISTER] Welcome email sent successfully
[2026-05-15 14:55:33] 🟢 [REGISTER] Sending success response to client
[2026-05-18 18:27:32] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=13
[2026-05-18 18:27:32] ✅ [BOOKING] saveBooking: Booking inserted with ID=132
[2026-05-18 18:28:00] 🔵 [BOOKING] saveBooking: Preparing to insert booking with user_id=13
[2026-05-18 18:28:00] ✅ [BOOKING] saveBooking: Booking inserted with ID=133
