🔍 Magic-Login Generator Scan
Scanning for: "Account has been created", "magic-login", "magic login", "magicToken", "bin2hex(random".
🔎 Matches for: bin2hex(random
📄 pages/auth/verify-email.php
L57$newToken = bin2hex(random_bytes(32));
L57$newToken = bin2hex(random_bytes(32));
📄 pages/auth/forgot-password.php
L26$token = bin2hex(random_bytes(32));
L26$token = bin2hex(random_bytes(32));
📄 pages/admin/restaurant-payouts.php
L136$_SESSION['_adm_pay_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/restaurant-detail.php
L130$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/restaurant-form.php
L143$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/dashboard.php
L46$_SESSION['_adm_csrf'] = bin2hex(random_bytes(16));
📄 pages/admin/vendors.php
L63$tempPass = bin2hex(random_bytes(8));
📄 pages/admin/restaurant-vendors.php
L76$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/payments.php
L23$_SESSION['admin_payment_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/users.php
L63if ($pass === '') $pass = bin2hex(random_bytes(6)); // 12 chars
L144$newPass = bin2hex(random_bytes(6));
📄 pages/admin/restaurants.php
L99$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/support-tickets.php
L27if (empty($_SESSION['_st_csrf'])) $_SESSION['_st_csrf'] = bin2hex(random_bytes(16));
📄 pages/tour-booking-pay.php
L105$filename = 'proof-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/booking.php
L498$_SESSION['booking_idem_' . (int)$reviewPropertyId] = bin2hex(random_bytes(16));
📄 pages/tour-review.php
L108$fname = 'review-' . $packageId . '-' . $userId . '-' . bin2hex(random_bytes(6)) . '.' . $ext;
📄 pages/tour-booking.php
L80$_SESSION[$idemSessionKey] = bin2hex(random_bytes(16));
L164$ref = function_exists('tourBookingRef') ? tourBookingRef() : ('T-' . strtoupper(bin2hex(random_bytes(5))));
L169$ref = function_exists('tourBookingRef') ? tourBookingRef() : ('T-' . strtoupper(bin2hex(random_bytes(5))));
L172$csrf = $_SESSION['csrf_token'] ?? bin2hex(random_bytes(16));
📄 pages/pricing.php
L247$ref = 'ENT-' . date('Ymd-His') . '-' . strtoupper(substr(bin2hex(random_bytes(2)), 0, 4));
📄 pages/vendor/tour-package-edit.php
L80$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L107$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L80$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L107$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/vendor/support-ticket.php
L14if (empty($_SESSION['_vst_csrf'])) $_SESSION['_vst_csrf'] = bin2hex(random_bytes(16));
L14if (empty($_SESSION['_vst_csrf'])) $_SESSION['_vst_csrf'] = bin2hex(random_bytes(16));
📄 pages/vendor/edit-room.php
L96$filename = 'room_' . $roomId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L96$filename = 'room_' . $roomId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
📄 pages/vendor/tour-operator-profile.php
L76$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L76$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/vendor/tour-quote-edit.php
L152$ref = 'Q-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
L152$ref = 'Q-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
📄 pages/vendor/add-property.php
L83$slug = $slugBase . '-' . substr(bin2hex(random_bytes(3)), 0, 6);
L83$slug = $slugBase . '-' . substr(bin2hex(random_bytes(3)), 0, 6);
📄 pages/vendor/rides-fleet.php
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/vendor/booking-calendar.php
L201'booking_reference' => 'WALK-' . strtoupper(substr(bin2hex(random_bytes(3)), 0, 6)),
L201'booking_reference' => 'WALK-' . strtoupper(substr(bin2hex(random_bytes(3)), 0, 6)),
📄 pages/vendor/rides-fleet-edit.php
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/vendor/rides-drivers.php
L9$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
L9$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/vendor/tour-transfers.php
L87$token = bin2hex(random_bytes(16));
L162$newToken = bin2hex(random_bytes(16));
L87$token = bin2hex(random_bytes(16));
L162$newToken = bin2hex(random_bytes(16));
📄 pages/vendor/tour-onboarding.php
L247$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L247$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/vendor/compliance-new.php
L60$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
L60$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
📄 pages/vendor/laundry-order.php
L128$ref = 'LAU-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
L128$ref = 'LAU-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
📄 pages/vendor/staff.php
L149$tempPass = bin2hex(random_bytes(8));
L311$tempPass = bin2hex(random_bytes(8));
L149$tempPass = bin2hex(random_bytes(8));
L311$tempPass = bin2hex(random_bytes(8));
📄 pages/vendor/menu-qr-generator.php
L82$token = bin2hex(random_bytes(8));
L82$token = bin2hex(random_bytes(8));
📄 pages/vendor/edit-property.php
L196$filename = 'property_' . $propertyId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L196$filename = 'property_' . $propertyId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
📄 pages/vendor/backup.php
L78$_SESSION['csrf_token'] = bin2hex(random_bytes(16));
L160$filename = 'vendor_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
L198$safetyFilename = 'prerestore_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
L78$_SESSION['csrf_token'] = bin2hex(random_bytes(16));
L160$filename = 'vendor_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
L198$safetyFilename = 'prerestore_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
📄 pages/vendor/tour-dashboard.php
L87$newToken = bin2hex(random_bytes(16));
L87$newToken = bin2hex(random_bytes(16));
📄 pages/vendor/documents.php
L131$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
L131$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
📄 pages/vendor/api-access.php
L22$raw='rev_'.bin2hex(random_bytes(24));
L22$raw='rev_'.bin2hex(random_bytes(24));
📄 pages/api/payment.php
L167$newName = $method . '_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L393$newName = 'proof_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L167$newName = $method . '_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L393$newName = 'proof_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
📄 pages/api/event-pay-init.php
L91$ref = 'EVT-' . $code . '-' . bin2hex(random_bytes(6));
L91$ref = 'EVT-' . $code . '-' . bin2hex(random_bytes(6));
📄 pages/api/bookings.php
L222$name = 'proof_' . $newId . '_' . bin2hex(random_bytes(6)) . '.' . $ext;
L222$name = 'proof_' . $newId . '_' . bin2hex(random_bytes(6)) . '.' . $ext;
📄 pages/api/upload-tour.php
L123$filename = $cfg['prefix'] . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L123$filename = $cfg['prefix'] . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/api/upload.php
L97$random = bin2hex(random_bytes(8));
L97$random = bin2hex(random_bytes(8));
📄 pages/live-chat.php
L205$key = 'conv_' . bin2hex(random_bytes(8));
📄 pages/driver/dashboard.php
L14$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/checkout.php
L151$_SESSION['payment_nonce'] = bin2hex(random_bytes(16));
📄 pages/driver-register.php
L17$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/company/rfp-create.php
L177$referenceCode = 'RFP-' . date('Ymd') . '-' . substr(bin2hex(random_bytes(3)), 0, 4);
📄 includes/payment_service.php
L116return $prefix . '-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(5)));
📄 includes/security.php
L40$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 includes/support.php
L24$ticketRef = 'TKT-' . date('Ymd') . '-' . strtoupper(bin2hex(random_bytes(3)));
L119$ticketRef = 'VTK-' . date('Ymd') . '-' . strtoupper(bin2hex(random_bytes(3)));
📄 includes/event_helpers.php
L73return 'REG-' . strtoupper(substr(bin2hex(random_bytes(6)), 0, 8));
L83$token = bin2hex(random_bytes(16));
L89return bin2hex(random_bytes(16));
L1237$randomPass = bin2hex(random_bytes(16));
L1292$token = bin2hex(random_bytes(24)); // 48 hex chars
📄 includes/loyalty.php
L213return $prefix . strtoupper(bin2hex(random_bytes(8)));
📄 includes/carbon.php
L104$certNumber = 'CARBON-' . strtoupper(bin2hex(random_bytes(6)));
📄 includes/subscription_helpers.php
L361$invoiceNumber = 'INV-' . date('Ymd') . '-' . strtoupper(substr(bin2hex(random_bytes(3)), 0, 6));
📄 includes/tenant.php
L81if ($existing) $slug .= '-' . bin2hex(random_bytes(3));
📄 includes/payments_wise.php
L87$bookingRef = 'BK-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(3)));
📄 includes/insurance.php
L91$policyNumber = 'INS-' . date('Y') . '-' . strtoupper(bin2hex(random_bytes(4)));
📄 includes/tour_operators.php
L565return 'T-' . strtoupper(bin2hex(random_bytes(5)));
📄 includes/webrtc.php
L15$roomId = 'room_' . bin2hex(random_bytes(8));
📄 includes/invoice_helpers.php
L19$suffix = strtoupper(substr(bin2hex(random_bytes(3)), 0, 6));
🔎 Matches for: random_bytes
📄 pages/auth/verify-email.php
L57$newToken = bin2hex(random_bytes(32));
L57$newToken = bin2hex(random_bytes(32));
📄 pages/auth/forgot-password.php
L26$token = bin2hex(random_bytes(32));
L26$token = bin2hex(random_bytes(32));
📄 pages/admin/restaurant-payouts.php
L136$_SESSION['_adm_pay_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/restaurant-detail.php
L130$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/restaurant-form.php
L143$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/dashboard.php
L46$_SESSION['_adm_csrf'] = bin2hex(random_bytes(16));
📄 pages/admin/vendors.php
L63$tempPass = bin2hex(random_bytes(8));
📄 pages/admin/restaurant-vendors.php
L76$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/payments.php
L23$_SESSION['admin_payment_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/users.php
L63if ($pass === '') $pass = bin2hex(random_bytes(6)); // 12 chars
L144$newPass = bin2hex(random_bytes(6));
📄 pages/admin/restaurants.php
L99$_SESSION['_adm_rest_csrf'] = bin2hex(random_bytes(32));
📄 pages/admin/support-tickets.php
L27if (empty($_SESSION['_st_csrf'])) $_SESSION['_st_csrf'] = bin2hex(random_bytes(16));
📄 pages/tour-booking-pay.php
L105$filename = 'proof-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/booking.php
L498$_SESSION['booking_idem_' . (int)$reviewPropertyId] = bin2hex(random_bytes(16));
📄 pages/tour-review.php
L108$fname = 'review-' . $packageId . '-' . $userId . '-' . bin2hex(random_bytes(6)) . '.' . $ext;
📄 pages/tour-booking.php
L80$_SESSION[$idemSessionKey] = bin2hex(random_bytes(16));
L164$ref = function_exists('tourBookingRef') ? tourBookingRef() : ('T-' . strtoupper(bin2hex(random_bytes(5))));
L169$ref = function_exists('tourBookingRef') ? tourBookingRef() : ('T-' . strtoupper(bin2hex(random_bytes(5))));
L172$csrf = $_SESSION['csrf_token'] ?? bin2hex(random_bytes(16));
📄 pages/pricing.php
L247$ref = 'ENT-' . date('Ymd-His') . '-' . strtoupper(substr(bin2hex(random_bytes(2)), 0, 4));
📄 pages/vendor/tour-package-edit.php
L80$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L107$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L80$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L107$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/vendor/support-ticket.php
L14if (empty($_SESSION['_vst_csrf'])) $_SESSION['_vst_csrf'] = bin2hex(random_bytes(16));
L14if (empty($_SESSION['_vst_csrf'])) $_SESSION['_vst_csrf'] = bin2hex(random_bytes(16));
📄 pages/vendor/edit-room.php
L96$filename = 'room_' . $roomId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L96$filename = 'room_' . $roomId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
📄 pages/vendor/tour-operator-profile.php
L76$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L76$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/vendor/tour-quote-edit.php
L152$ref = 'Q-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
L152$ref = 'Q-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
📄 pages/vendor/add-property.php
L83$slug = $slugBase . '-' . substr(bin2hex(random_bytes(3)), 0, 6);
L83$slug = $slugBase . '-' . substr(bin2hex(random_bytes(3)), 0, 6);
📄 pages/vendor/rides-fleet.php
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/vendor/booking-calendar.php
L201'booking_reference' => 'WALK-' . strtoupper(substr(bin2hex(random_bytes(3)), 0, 6)),
L201'booking_reference' => 'WALK-' . strtoupper(substr(bin2hex(random_bytes(3)), 0, 6)),
📄 pages/vendor/rides-fleet-edit.php
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
L12$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/vendor/rides-drivers.php
L9$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
L9$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/vendor/tour-transfers.php
L87$token = bin2hex(random_bytes(16));
L162$newToken = bin2hex(random_bytes(16));
L87$token = bin2hex(random_bytes(16));
L162$newToken = bin2hex(random_bytes(16));
📄 pages/vendor/tour-onboarding.php
L247$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L247$filename = $prefix . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/vendor/compliance-new.php
L60$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
L60$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
📄 pages/vendor/laundry-order.php
L128$ref = 'LAU-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
L128$ref = 'LAU-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(2)));
📄 pages/vendor/staff.php
L149$tempPass = bin2hex(random_bytes(8));
L311$tempPass = bin2hex(random_bytes(8));
L149$tempPass = bin2hex(random_bytes(8));
L311$tempPass = bin2hex(random_bytes(8));
📄 pages/vendor/menu.php
L213$guestToken = strtoupper(substr(md5(random_bytes(16)), 0, 12));
L499$token = strtoupper(substr(md5(random_bytes(16)), 0, 12));
L213$guestToken = strtoupper(substr(md5(random_bytes(16)), 0, 12));
L499$token = strtoupper(substr(md5(random_bytes(16)), 0, 12));
📄 pages/vendor/menu-qr-generator.php
L82$token = bin2hex(random_bytes(8));
L82$token = bin2hex(random_bytes(8));
📄 pages/vendor/maintenance.php
L335$token = strtoupper(substr(md5(random_bytes(16)), 0, 12));
L335$token = strtoupper(substr(md5(random_bytes(16)), 0, 12));
📄 pages/vendor/edit-property.php
L196$filename = 'property_' . $propertyId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L196$filename = 'property_' . $propertyId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
📄 pages/vendor/backup.php
L78$_SESSION['csrf_token'] = bin2hex(random_bytes(16));
L160$filename = 'vendor_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
L198$safetyFilename = 'prerestore_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
L78$_SESSION['csrf_token'] = bin2hex(random_bytes(16));
L160$filename = 'vendor_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
L198$safetyFilename = 'prerestore_' . $vendorId . '_' . date('Y-m-d_H-i-s') . '_' . bin2hex(random_bytes(4)) . '.sql';
📄 pages/vendor/smart-devices.php
L367$accessCode = strtoupper(substr(md5(random_bytes(8)), 0, 8));
L367$accessCode = strtoupper(substr(md5(random_bytes(8)), 0, 8));
📄 pages/vendor/tour-dashboard.php
L87$newToken = bin2hex(random_bytes(16));
L87$newToken = bin2hex(random_bytes(16));
📄 pages/vendor/documents.php
L131$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
L131$storedName = date('Ymd-His') . '-' . $safeBase . '-' . bin2hex(random_bytes(3)) . '.' . $ext;
📄 pages/vendor/api-access.php
L22$raw='rev_'.bin2hex(random_bytes(24));
L22$raw='rev_'.bin2hex(random_bytes(24));
📄 pages/api/payment.php
L167$newName = $method . '_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L393$newName = 'proof_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L167$newName = $method . '_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
L393$newName = 'proof_' . $userId . '_' . bin2hex(random_bytes(8)) . '.' . $ext;
📄 pages/api/event-pay-init.php
L91$ref = 'EVT-' . $code . '-' . bin2hex(random_bytes(6));
L91$ref = 'EVT-' . $code . '-' . bin2hex(random_bytes(6));
📄 pages/api/bookings.php
L222$name = 'proof_' . $newId . '_' . bin2hex(random_bytes(6)) . '.' . $ext;
L222$name = 'proof_' . $newId . '_' . bin2hex(random_bytes(6)) . '.' . $ext;
📄 pages/api/upload-tour.php
L123$filename = $cfg['prefix'] . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
L123$filename = $cfg['prefix'] . '-' . time() . '-' . bin2hex(random_bytes(4)) . '.' . $ext;
📄 pages/api/upload.php
L97$random = bin2hex(random_bytes(8));
L97$random = bin2hex(random_bytes(8));
📄 pages/api/ride-book.php
L70$ref = 'RIDE-' . strtoupper(substr(md5(random_bytes(8)), 0, 8));
L70$ref = 'RIDE-' . strtoupper(substr(md5(random_bytes(8)), 0, 8));
📄 pages/live-chat.php
L205$key = 'conv_' . bin2hex(random_bytes(8));
📄 pages/guest-menu.php
L149$guestToken = strtoupper(substr(md5(random_bytes(16)), 0, 12));
📄 pages/driver/dashboard.php
L14$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/checkout.php
L151$_SESSION['payment_nonce'] = bin2hex(random_bytes(16));
📄 pages/driver-register.php
L17$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 pages/company/rfp-create.php
L177$referenceCode = 'RFP-' . date('Ymd') . '-' . substr(bin2hex(random_bytes(3)), 0, 4);
📄 includes/payment_service.php
L116return $prefix . '-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(5)));
📄 includes/security.php
L40$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
📄 includes/support.php
L24$ticketRef = 'TKT-' . date('Ymd') . '-' . strtoupper(bin2hex(random_bytes(3)));
L119$ticketRef = 'VTK-' . date('Ymd') . '-' . strtoupper(bin2hex(random_bytes(3)));
📄 includes/event_helpers.php
L73return 'REG-' . strtoupper(substr(bin2hex(random_bytes(6)), 0, 8));
L83$token = bin2hex(random_bytes(16));
L89return bin2hex(random_bytes(16));
L1237$randomPass = bin2hex(random_bytes(16));
L1292$token = bin2hex(random_bytes(24)); // 48 hex chars
📄 includes/loyalty.php
L213return $prefix . strtoupper(bin2hex(random_bytes(8)));
📄 includes/carbon.php
L104$certNumber = 'CARBON-' . strtoupper(bin2hex(random_bytes(6)));
📄 includes/subscription_helpers.php
L361$invoiceNumber = 'INV-' . date('Ymd') . '-' . strtoupper(substr(bin2hex(random_bytes(3)), 0, 6));
📄 includes/tenant.php
L81if ($existing) $slug .= '-' . bin2hex(random_bytes(3));
📄 includes/payments_wise.php
L87$bookingRef = 'BK-' . date('ymd') . '-' . strtoupper(bin2hex(random_bytes(3)));
📄 includes/insurance.php
L91$policyNumber = 'INS-' . date('Y') . '-' . strtoupper(bin2hex(random_bytes(4)));
📄 includes/tour_operators.php
L565return 'T-' . strtoupper(bin2hex(random_bytes(5)));
📄 includes/webrtc.php
L15$roomId = 'room_' . bin2hex(random_bytes(8));
📄 includes/invoice_helpers.php
L19$suffix = strtoupper(substr(bin2hex(random_bytes(3)), 0, 6));
🔎 Matches for: magic-login
📄 pages/auth/magic-login.php
L4* FILE: pages/auth/magic-login.php
L7* ROUTE: ?page=magic-login&token=...
L39error_log('magic-login: ' . $e->getMessage());
L4* FILE: pages/auth/magic-login.php
L7* ROUTE: ?page=magic-login&token=...
L39error_log('magic-login: ' . $e->getMessage());
📄 pages/event-register.php
L200STEP 2 — Generate magic-login token for the email
📄 pages/magic-login.php
L4* FILE: pages/magic-login.php
L7* ROUTE: ?page=magic-login&token=...
L74error_log('magic-login lookup: ' . $e->getMessage());
L97error_log('magic-login update last_login: ' . $e->getMessage());
📄 includes/event_helpers.php
L1284* Persists to magic_login_tokens (looked up by magic-login.php).
L1296// 1) Primary: magic_login_tokens (consumed by pages/magic-login.php)
L1344? $base . '/?page=magic-login&token=' . urlencode($magicToken)
🔎 Matches for: Account has been created
📄 pages/vendor/list-your-restaurant.php
L241Your account has been created. Next, add menu items and set your opening hours.
L241Your account has been created. Next, add menu items and set your opening hours.
🔎 Matches for: account has been created
📄 pages/vendor/list-your-restaurant.php
L241Your account has been created. Next, add menu items and set your opening hours.
L241Your account has been created. Next, add menu items and set your opening hours.
🔎 Matches for: magic login
📄 pages/event-register.php
L12* - ALWAYS sends a welcome email with magic login link
🔎 Matches for: magicLogin
📄 pages/event-register.php
L203if ($userId > 0 && function_exists('evGenerateMagicLoginToken')) {
L204try { $magicToken = evGenerateMagicLoginToken($userId, 72); }
📄 includes/event_helpers.php
L1281if (!function_exists('evGenerateMagicLoginToken')) {
L1288function evGenerateMagicLoginToken(int $userId, int $ttlHours = 72): string {
L1318error_log('evGenerateMagicLoginToken mirror: ' . $e->getMessage());
L1323error_log('evGenerateMagicLoginToken: ' . $e->getMessage());
🔎 Matches for: magicToken
📄 pages/event-register.php
L202$magicToken = '';
L204try { $magicToken = evGenerateMagicLoginToken($userId, 72); }
L239try { evSendWelcomeEmail($reg, $magicToken, 'paid_pending'); }
L257try { evSendWelcomeEmail($reg, $magicToken, 'waitlist'); }
L283try { evSendWelcomeEmail($reg, $magicToken, 'free'); }
📄 includes/event_helpers.php
L1334function evSendWelcomeEmail(array $reg, string $magicToken = '', string $state = 'free'): bool {
L1343$loginUrl = $magicToken !== ''
L1344? $base . '/?page=magic-login&token=' . urlencode($magicToken)
🔎 Matches for: magic_login
📄 pages/magic-login.php
L10* Looks up SHA-256 hash of token in magic_login_tokens.
L41FROM magic_login_tokens
L68"UPDATE magic_login_tokens SET used_at = NOW() WHERE id = ?",
📄 includes/event_helpers.php
L1284* Persists to magic_login_tokens (looked up by magic-login.php).
L1296// 1) Primary: magic_login_tokens (consumed by pages/magic-login.php)
L1298"INSERT INTO magic_login_tokens
L1317// Non-fatal — the magic_login_tokens row is the source of truth
⚠ Delete /find-generator.php after you're done.