How az-404/stadiumpass works
Stadium Pass is a PHP web application for stadium ticket sales and entry operations. Fans browse upcoming matches, select seats, submit a simulated payment, and manage bookings and tickets; staff verify tickets at the gate and review section entries or complaints. Administrators manage matches, pricing, sections, and reports. The excerpts show several pages querying the shared MySQL connection directly, rather than a separate service layer. The README is empty, so unsampled feature details and relationships are limited to what the source index supports.
Main entry points: database.sql Stadium data · booking.php Match booking · auth_check.php Session and roles · my_bookings.php Booking management
Components 20
Fan bookings
- Match booking
booking.php - Booking management
my_bookings.php - Ticket viewing
ticket.php
Stadium operations
- Ticket verification
staff/verify.php - Section entries
staff/entries.php - Staff complaints
staff/complaints.php
Administration
- Match management
matches.php - Section management
sections.php - Price management
prices.php - Reports
reports.php
Shared services
- Session and roles
auth_check.php - Account access
login.php - Registration
register.php - Google callback
google-callback.php - DB configuration
config/db.php - PDO connection
db.php - Stadium data
database.sql - Shared navigation
includes/header.php - Shared footer
includes/footer.php
Other components
- Fan
Connections 29
- Fan → Match booking: browses and books
booking.php - Match booking → Stadium data: reads matches, seats, prices
booking.php - Match booking → Stadium data: writes bookings and tickets
booking.php - Fan → Booking management: manages bookings
- Booking management → Stadium data: reads and cancels bookings
my_bookings.php - Booking management → Ticket viewing: opens ticket
my_bookings.php - Fan → Account access: signs in
- Fan → Registration: registers
- Account access → Session and roles: checks session
login.php - Registration → Stadium data: creates account
register.php - Ticket verification → Session and roles: checks staff role
staff/verify.php - Ticket verification → Stadium data: validates ticket and records entry
staff/verify.php - Section entries → Stadium data: counts entries
staff/entries.php - Staff complaints → Session and roles: checks staff role
staff/complaints.php - Staff complaints → Stadium data: records and lists complaints
staff/complaints.php - Match management → Session and roles: checks admin role
matches.php - Match management → Stadium data: manages matches
matches.php - Section management → Stadium data: manages sections
sections.php - Price management → Stadium data: manages match prices
prices.php - Reports → Stadium data: queries report data
reports.php - DB configuration → PDO connection: loads
config/db.php - PDO connection → Stadium data: connects to
db.php - Google callback → Stadium data: uses database connection
google-callback.php - Match booking → Session and roles: loads session helpers
booking.php - Match booking → DB configuration: loads database config
booking.php - Match booking → Shared navigation: renders navigation
booking.php - Booking management → Shared navigation: renders navigation
my_bookings.php - Ticket verification → Shared navigation: renders navigation
staff/verify.php - Staff complaints → Shared footer: renders footer
staff/complaints.php