How lordzohar/hospital works
This is a legacy PHP hospital portal combining patient appointment booking and notifications with manager/vendor medicine-quotation workflows. A patient submits an appointment, views appointments matched against doctor availability, and can trigger an email notification. Managers have separate registration/login and a quotation-list view; vendor quotation and other account flows are visible in the tree but their runtime links are not established by the sampled source. Evidence is limited: several listed handlers were not excerpted, so uncertain connections are omitted.
Main entry points: hospital.sql Hospital database · index.php Appointment notification · myaccount.php Appointment lookup · action.php Appointment booking
Components 24
Patient appointments
- Appointment booking
action.php - Appointment lookup
myaccount.php - Appointment confirmation
myaccount1.php - Doctor availability
medical.html
Portal accounts
- Patient login
login.php - Patient registration
reg.php - Account pages
account.php - Manager registration
managerregister.php - Manager login
managerlogin.php - Vendor registration
vendorregister.php - Vendor login
vendorlogin.php
Medicine procurement
- Quotation submission
qoutation.php - Quotation comparison
data.php - Medicine data
medicine.sql - Vendor data
vendor.sql
Email delivery
- Appointment notification
index.php - Mailer autoloader
PHPMailer/PHPMailerAutoload.php - Message construction
PHPMailer/class.phpmailer.php - SMTP transport
PHPMailer/class.smtp.php
Other components
- Patient
- Hospital database
hospital.sql - Manager
- Vendor
- SMTP service
Connections 20
- Patient → Appointment booking: submits
- Appointment booking → Hospital database: writes appointment
action.php - Appointment booking → Hospital database: queries booking
action.php - Appointment lookup → Hospital database: queries appointments
myaccount.php - Appointment lookup → Doctor availability: matches availability
myaccount.php - Appointment lookup → Appointment notification: opens notification
myaccount.php - Appointment notification → Mailer autoloader: loads
index.php - Message construction → SMTP transport: delegates SMTP
PHPMailer/class.phpmailer.php - Message construction → SMTP service: sends message
- Appointment notification → SMTP service: configures SMTP
index.php - Appointment notification → Appointment confirmation: redirects on success
index.php - Manager → Manager registration: registers
- Manager registration → Hospital database: writes manager
managerregister.php - Manager → Manager login: signs in
- Manager login → Quotation comparison: redirects
managerlogin.php - Quotation comparison → Hospital database: reads quotations
data.php - Vendor → Vendor registration: registers
- Vendor → Vendor login: signs in
- Vendor → Quotation submission: submits quotation
- Quotation submission → Hospital database: writes quotation