How realjoker0921/blessedpastore works
This is a PHP web app for managing store products, suppliers, sales, and reports. A user signs in or creates an account, reaches the dashboard, then manages inventory or suppliers and records sales; the app also presents dashboard summaries and sales reports. Page handlers share a PDO connection to MySQL, while session checks protect the operational pages. The excerpts show authentication and dashboard queries directly; several operational handlers are partial, so their database links rely on the source index rather than complete excerpts.
Main entry points: index.php Sign in / sign up · dbcon.php PDO connection · dashboard.php Dashboard · product.php Product management
Components 11
Authentication
- Sign in / sign up
index.php - Auth interactions
script.js - Session logout
logout.php
Store Operations
- Product management
product.php - Supplier management
suppliers.php - Sale recording
sales.php
Store Insights
- Dashboard
dashboard.php - Sales reports
reports.php
Persistence
- PDO connection
dbcon.php - MySQL database
Other components
- Store user
Connections 17
- Store user → Sign in / sign up: submits credentials
index.php - Auth interactions → Sign in / sign up: controls form
index.php - Sign in / sign up → PDO connection: queries users
index.php - Sign in / sign up → Dashboard: redirects on success
index.php - Store user → Dashboard: opens workspace
- Dashboard → PDO connection: queries summaries
dashboard.php - Product management → PDO connection: uses database
product.php - Supplier management → PDO connection: uses database
suppliers.php - Sale recording → PDO connection: uses database
sales.php - Sales reports → PDO connection: uses database
reports.php - PDO connection → MySQL database: connects PDO
dbcon.php - Product management → Sign in / sign up: redirects unauthenticated
product.php - Supplier management → Sign in / sign up: redirects unauthenticated
suppliers.php - Sale recording → Sign in / sign up: redirects unauthenticated
sales.php - Sales reports → Sign in / sign up: redirects unauthenticated
reports.php - Store user → Session logout: requests sign out
logout.php - Session logout → Sign in / sign up: redirects after clearing session
logout.php