How sivavinay07/blog_system works
This is a PHP blog application for publishing and browsing categorized posts, with accounts, comments requiring moderation, and administrative controls. The main visitor flow lists and filters posts, opens a post, and displays approved comments; signed-in users can submit posts or comments, while administrators manage posts, categories, and comment approval. The graph reflects calls visible in excerpts and file references in the source index; some endpoints and configuration internals were not sampled, so their behavior and connections are not expanded.
Main entry points: Post.php Post operations · Category.php Category operations · index.php Browse posts · header.php Shared header
Components 22
Post publishing
- Browse posts
index.php - View post
view_post.php - Author dashboard
dashboard.php - Create post
create_post.php - Edit post
edit_post.php - Admin dashboard
admin_dashboard.php - Post operations
classes/Post.php - Add category
add_category.php - Category operations
classes/Category.php
Community features
- Post comments
classes/Comment.php - Approve comments
approve_comments.php
Accounts and access
- Register account
register.php - Sign in
login.php - Sign out
logout.php - User operations
classes/User.php
Shared runtime and data
- Shared header
includes/header.php - Shared footer
includes/footer.php - Database configuration
config.php - Application database
Other components
- Visitor
- Signed-in user
- Administrator
Connections 36
- Visitor → Browse posts: browses
index.php - Browse posts → Post operations: fetches posts
index.php - Browse posts → Category operations: fetches categories
index.php - Visitor → View post: opens post
- View post → Post operations: loads post
view_post.php - View post → Post comments: loads comments
view_post.php - Signed-in user → Create post: submits post
create_post.php - Create post → Category operations: loads categories
create_post.php - Create post → Post operations: creates post
create_post.php - Signed-in user → View post: submits comment
view_post.php - View post → Post comments: creates comment
view_post.php - Administrator → Admin dashboard: manages content
admin_dashboard.php - Admin dashboard → Post operations: loads recent posts
admin_dashboard.php - Administrator → Edit post: edits post
edit_post.php - Edit post → Post operations: loads and updates
edit_post.php - Edit post → Category operations: loads categories
edit_post.php - Administrator → Add category: adds category
add_category.php - Add category → Category operations: adds category
add_category.php - Administrator → Approve comments: reviews comments
approve_comments.php - Approve comments → Post comments: lists and approves
approve_comments.php - Visitor → Register account: registers
register.php - Visitor → Sign in: signs in
login.php - Register account → User operations: creates account
register.php - Sign in → User operations: authenticates
login.php - Signed-in user → Sign out: signs out
logout.php - Sign out → User operations: ends session
logout.php - Browse posts → Shared header: includes
index.php - Browse posts → Shared footer: includes
index.php - Shared header → User operations: initializes
includes/header.php - Shared header → Post operations: initializes
includes/header.php - Shared header → Post comments: initializes
includes/header.php - Shared header → Category operations: initializes
includes/header.php - Post operations → Application database: queries
classes/Post.php - Category operations → Application database: queries
classes/Category.php - Post comments → Application database: queries
classes/Comment.php - User operations → Application database: queries
classes/User.php