How lemoniannecode/blog works
This is a PHP/MySQL blog application with account registration and login, an authenticated post feed with image uploads and owner-controlled editing, and a separate administrator workflow for listing, deleting, and updating accounts. The main request handlers perform database operations directly through the shared connection include. The excerpts show those calls and the image-file operations; the SQL files are listed in the tree but were not sampled, so schema details are not inferred.
Main entry points: index.php Login · Admin/index.php Account listing · db_conn.php MySQL connection · registration.php Registration
Components 11
Accounts and access
- Login
index.php - Registration
registration.php - Login error
error.php
Blog publishing
- Post feed and actions
mainpage/index.php - Uploaded images
imgstorage
Account administration
- Account listing
Admin/index.php - Delete account
Admin/del.php - Update account
Admin/upd.php
Persistence
- MySQL connection
includes/db_conn.php - Blogsite database
Other components
- Visitor
Connections 26
- Visitor → Login: submits credentials
index.php - Visitor → Registration: submits details
registration.php - Login → Registration: offers signup
index.php - Registration → Login: links back
registration.php - Login → MySQL connection: includes
index.php - Login → Blogsite database: checks credentials
index.php - Login → Post feed and actions: redirects on success
index.php - Login → Login error: redirects on failure
index.php - Registration → MySQL connection: includes
registration.php - Registration → Blogsite database: creates account
registration.php - Post feed and actions → MySQL connection: includes
mainpage/index.php - Post feed and actions → Blogsite database: reads and changes posts
mainpage/index.php - Post feed and actions → Uploaded images: saves and removes images
mainpage/index.php - Visitor → Post feed and actions: views and submits posts
mainpage/index.php - Visitor → Account listing: uses admin panel
Admin/index.php - Account listing → MySQL connection: includes
Admin/index.php - Account listing → Blogsite database: lists accounts
Admin/index.php - Account listing → Delete account: links to deletion
Admin/index.php - Account listing → Update account: links to editing
Admin/index.php - Delete account → MySQL connection: includes
Admin/del.php - Delete account → Blogsite database: deletes and lists accounts
Admin/del.php - Update account → MySQL connection: includes
Admin/upd.php - Update account → Blogsite database: reads and updates account
Admin/upd.php - Delete account → Account listing: offers return
Admin/del.php - Update account → Account listing: offers return
Admin/upd.php - MySQL connection → Blogsite database: opens connection
includes/db_conn.php