How darshanyadav-dev/campuslost-prototype works
CampusLost is a PHP/MySQL campus lost-and-found portal. Students register or sign in, post lost/found listings (optionally with photos), browse and search listings, view item details, submit ownership claims, and manage listings and claims; administrators moderate listings. The graph separates discovery, accounts, listing/claim workflows, and shared infrastructure. Database schema and MySQL are documented, while some page implementations and database wiring are not excerpted; those connections are shown only where the excerpts or README support them.
Main entry points: functions.php Session and upload helpers · item.php Item details · index.php Home and recent items · browse.php Browse and search
Components 21
Discovery
- Home and recent items
index.php - Browse and search
browse.php - Item details
item.php
Accounts
- Registration
register.php - Sign in
login.php - Sign out
logout.php
Listings and claims
- Post listing
post-item.php - Manage listings
my-items.php - Submit claim
claim.php - Review claims
claims.php - Listing moderation
admin.php
Shared infrastructure
- Shared navigation
header.php - Shared page footer
footer.php - Listing card
item-card.php - Session and upload helpers
functions.php - Database configuration
config.php - Listing photo files
uploads - Database schema
database.sql
Other components
- Student
- Administrator
- MySQL
Connections 37
- Student → Home and recent items: opens
README.md - Student → Registration: registers
README.md - Student → Sign in: signs in
README.md - Student → Browse and search: searches
README.md - Student → Post listing: posts
README.md - Student → Submit claim: claims
README.md - Student → Manage listings: manages
my-items.php - Administrator → Listing moderation: moderates
README.md - Home and recent items → Shared navigation: includes
index.php - Home and recent items → Listing card: renders
index.php - Home and recent items → Shared page footer: includes
index.php - Browse and search → Shared navigation: includes
browse.php - Browse and search → Listing card: renders
browse.php - Browse and search → Shared page footer: includes
browse.php - Item details → Shared navigation: includes
item.php - Item details → Shared page footer: includes
item.php - Item details → Submit claim: links to
item.php - Post listing → Session and upload helpers: requires login
post-item.php - Post listing → Session and upload helpers: uploads photo
post-item.php - Session and upload helpers → Listing photo files: stores photo
functions.php - Manage listings → Session and upload helpers: requires login
my-items.php - Submit claim → Session and upload helpers: requires login
claim.php - Review claims → Session and upload helpers: requires login
claims.php - Listing moderation → Session and upload helpers: checks admin
admin.php - Submit claim → Review claims: owner reviews
README.md - Item details → Manage listings: links to manage
item.php - Shared navigation → Session and upload helpers: uses session helpers
header.php - Session and upload helpers → Database configuration: loads
functions.php - Database schema → MySQL: imported into
README.md - Home and recent items → MySQL: queries listings
index.php - Browse and search → MySQL: queries listings
browse.php - Item details → MySQL: queries item
item.php - Post listing → MySQL: inserts listing
post-item.php - Manage listings → MySQL: reads and updates
my-items.php - Submit claim → MySQL: reads and inserts
claim.php - Review claims → MySQL: reads and updates
claims.php - Listing moderation → MySQL: reads and deletes
admin.php