How gopalakrishna57/pglife works
PG-Life is a PHP property-finding and management site. Visitors search listings by city and gender, open property details, and can register or sign in; signed-in users can save properties of interest and submit reviews. Administrators sign in separately to publish properties and update descriptions. The excerpts show listing, detail, review, and admin-dashboard behavior; other endpoint internals are unsampled, so their links reflect only the visible forms or filenames. The React component is a separate static sample, not shown wired into the PHP workflow.
Main entry points: property_detail.php Property details · admin_dashboard.php Admin dashboard · db_connect.php Database connection · property_list.php Property listings
Components 17
Property discovery
- Home and search
index.php - Property listings
property_list.php - Property details
property_detail.php
Accounts and engagement
- Shared navigation
header.php - Signup handler
signup_submit.php - Login handler
login_submit.php - Logout handler
logout.php - User dashboard
dashboard.php - Interest toggle
toggle_interested.php - Review submission
submit_review.php
Property administration
- Admin sign-in
admin_login.php - Admin dashboard
admin_dashboard.php - Property publishing
admin_submit.php - Description update
admin_update_desc.php
Data access
- Database connection
db_connect.php - Application database
Other components
- Visitor
Connections 24
- Visitor → Home and search: browses
- Home and search → Property listings: searches
- Property listings → Property details: opens property
- Home and search → Shared navigation: includes
- Property details → Shared navigation: includes
- Visitor → Signup handler: submits signup
- Visitor → Login handler: submits login
- Visitor → Logout handler: requests logout
- Visitor → User dashboard: views account
- Visitor → Interest toggle: toggles interest
- Property details → Review submission: submits review
- Visitor → Admin sign-in: admin sign-in
- Admin sign-in → Admin dashboard: redirects on success
- Admin dashboard → Property publishing: posts property
- Admin dashboard → Description update: posts description
- Property listings → Database connection: requires
- Property details → Database connection: requires
- Review submission → Database connection: requires
- Admin dashboard → Database connection: requires
- Property listings → Application database: queries listings
- Property details → Application database: reads property and reviews
- Review submission → Application database: inserts review
- Admin dashboard → Application database: reads properties
- User dashboard → Database connection: requires