How haldenniguidula/sharonstore3.0 works
Sharon Store is a PHP store-management system for administrators and cashiers. Users sign in, then reach the admin dashboard or cashier point of sale; the application also exposes inventory, transaction, shift, supplier, reporting, forecasting, account, audit, and backup capabilities. The map groups page-level features, API handlers, shared services, and persistence. Connections are limited to redirects, imports, and fetches visible in the excerpts or SOURCE INDEX; several feature-to-API relationships are not shown and are therefore omitted.
Main entry points: db.php Database access · auth_check.php Session and access · index.php Sign in · inventory.php Inventory API
Components 32
User Pages
- Sign in
index.php - Dashboard
dashboard.php - Point of sale
pos.php - Inventory management
inventory.php - Shift management
shifts.php - Stock monitor
stock-monitor.php - Supplier management
suppliers.php - Reports
reports.php - Sales forecasting
forecasting.php - Backup management
backup.php - Account management
accounts.php
Domain APIs
- Inventory API
api/inventory.php - Transactions API
api/transactions.php - Shifts API
api/shifts.php - Suppliers API
api/suppliers.php - Reports API
api/reports.php - Forecasting API
api/forecasting.php - Backup API
api/backup.php - Audit logs API
api/audit_logs.php - Accounts API
api/accounts.php
Shared Services
- Session and access
includes/auth_check.php - Shift modals
includes/shift_modals.php - Audit logging
includes/audit.php - Stock helpers
includes/inventory_stock.php - Sales report helpers
includes/sales_reports.php - Forecast history
includes/forecast_history.php - Backup operations
includes/backup.php - Scheduled backups
includes/scheduled_backup.php - Supplier categories
includes/supplier_categories.php - Database access
includes/db.php
Persistence
- MySQL database
Other components
- Store user
Connections 35
- Store user → Sign in: signs in
index.php - Sign in → Dashboard: redirects admin
index.php - Sign in → Point of sale: redirects cashier
index.php - Sign in → Database access: loads database
index.php - Session and access → Database access: verifies session
includes/auth_check.php - Dashboard → Session and access: checks access
dashboard.php - Point of sale → Session and access: checks access
pos.php - Point of sale → Shift modals: renders
pos.php - Inventory management → Session and access: checks access
inventory.php - Inventory management → Inventory API: fetches inventory
inventory.php - Inventory API → Database access: queries inventory
api/inventory.php - Inventory API → Session and access: checks access
api/inventory.php - Inventory API → Stock helpers: uses stock helpers
api/inventory.php - Shift management → Session and access: checks access
shifts.php - Shift management → Database access: queries shifts
shifts.php - Supplier management → Supplier categories: uses categories
suppliers.php - Suppliers API → Supplier categories: uses categories
api/suppliers.php - Suppliers API → Database access: queries suppliers
api/suppliers.php - Reports API → Sales report helpers: uses report helpers
api/reports.php - Forecasting API → Forecast history: uses history
api/forecasting.php - Backup API → Backup operations: uses backup operations
api/backup.php - Backup API → Database access: accesses database
api/backup.php - Backup operations → Database access: exports database
includes/backup.php - Scheduled backups → Backup operations: runs backups
includes/scheduled_backup.php - Audit logging → Database access: writes audit logs
includes/audit.php - Accounts API → Session and access: checks access
api/accounts.php - Accounts API → Database access: queries accounts
api/accounts.php - Accounts API → Audit logging: records actions
api/accounts.php - Transactions API → Session and access: checks access
api/transactions.php - Transactions API → Database access: queries transactions
api/transactions.php - Transactions API → Audit logging: records actions
api/transactions.php - Shifts API → Session and access: checks access
api/shifts.php - Shifts API → Database access: queries shifts
api/shifts.php - Audit logs API → Database access: reads audit logs
api/audit_logs.php - Database access → MySQL database: connects to
includes/db.php