How pbgeorge/pvs_new_website works
This repository combines a Power Vantage Solutions marketing/contact site with a separate PHP food diary. The food-log workflow is account sign-in, then logging meals or activities, reviewing dashboard/diary summaries, and exporting records. Meal entry estimates nutrition before saving; users can also manage account settings and recover passwords. Shared bootstrap code supplies authentication, database access, schema setup, and diary helpers. The excerpts establish the principal calls and page links; several other capabilities are represented from the file index, so unsampled relationships are omitted.
Main entry points: bootstrap.php Auth And Diary Helpers · diary.php Meal Diary · submit.php Lead Handler · activity.php Activity Entry
Components 24
Marketing Site
- Contact Form
index.html - Lead Handler
submit.php - Lead Configuration
db_config.php
Food Log Pages
- Sign In And Recovery
food/login.php - Nutrition Dashboard
food/index.php - Meal Diary
food/diary.php - Meal Entry
food/meal.php - Activity Entry
food/activity.php - Entry Choice
food/add.php - Export Options
food/exports.php - Spreadsheet Export
food/export.php - Printable Diary
food/print.php - Account Settings
food/password.php
Food Log Core
- Auth And Diary Helpers
food/bootstrap.php - Food Configuration
food/config.php - Shared Page Header
food/header.php - Shared Page Footer
food/footer.php - SMTP Mailer
food/mailer.php
Data And Services
- Food Log Database
- Leads Database
- SMTP Service
- Nutrition Estimation API
Other components
- Site Visitor
- Food Log User
Connections 37
- Site Visitor → Contact Form: submits enquiry
- Contact Form → Lead Handler: posts form
- Site Visitor → Lead Handler: sends request
- Lead Handler → Lead Configuration: loads settings
submit.php - Lead Handler → Leads Database: stores enquiry
submit.php - Lead Handler → SMTP Service: sends notification
submit.php - Food Log User → Sign In And Recovery: signs in
- Food Log User → Nutrition Dashboard: views summary
- Food Log User → Meal Diary: reviews entries
- Food Log User → Entry Choice: starts entry
- Food Log User → Export Options: chooses export
- Nutrition Dashboard → Auth And Diary Helpers: loads summaries
food/index.php - Meal Diary → Auth And Diary Helpers: builds diary view
food/diary.php - Meal Diary → Meal Entry: links meal edits
food/diary.php - Meal Diary → Activity Entry: links activity edits
food/diary.php - Entry Choice → Meal Entry: routes meal entry
- Entry Choice → Activity Entry: routes activity entry
- Meal Entry → Auth And Diary Helpers: uses helpers
food/meal.php - Meal Entry → Nutrition Estimation API: requests estimates
food/meal.php - Activity Entry → Auth And Diary Helpers: uses helpers
food/activity.php - Export Options → Spreadsheet Export: fetches rows
food/exports.php - Export Options → Printable Diary: opens print view
food/exports.php - Spreadsheet Export → Auth And Diary Helpers: uses helpers
food/export.php - Printable Diary → Auth And Diary Helpers: builds export view
food/print.php - Sign In And Recovery → Auth And Diary Helpers: uses auth helpers
food/login.php - Sign In And Recovery → SMTP Mailer: sends recovery mail
- SMTP Mailer → SMTP Service: sends email
- Account Settings → Auth And Diary Helpers: uses helpers
- Auth And Diary Helpers → Food Configuration: loads settings
food/bootstrap.php - Auth And Diary Helpers → Food Log Database: connects and initializes
food/bootstrap.php - Nutrition Dashboard → Shared Page Header: renders header
food/index.php - Meal Diary → Shared Page Header: renders header
food/diary.php - Activity Entry → Shared Page Header: renders header
food/activity.php - Printable Diary → Shared Page Header: renders header
food/print.php - Meal Diary → Shared Page Footer: renders footer
food/diary.php - Activity Entry → Shared Page Footer: renders footer
food/activity.php - Printable Diary → Shared Page Footer: renders footer
food/print.php