# pixelkaushal/syncsxc architecture

> Architecture diagram of the GitHub repository pixelkaushal/syncsxc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pixelkaushal/syncsxc
- Repository: https://github.com/pixelkaushal/syncsxc

## Overview

SyncSXC is a campus events and clubs portal for St. Xavier’s College. Students discover events, register individually or as teams, and manage their profiles; club administrators create and edit events. The tree also indicates event listings, schedules, club pages, registration management, and account recovery. The README gives no architectural detail, and several core files were not sampled, so only explicit links and observed SQL operations are shown; PHPMailer is included as an email capability, but its application wiring is unverified.

Main entry points: [`syncsxc.sql`](https://github.com/pixelkaushal/syncsxc/blob/main/syncsxc.sql) (Application Database), [`index.php`](https://github.com/pixelkaushal/syncsxc/blob/main/index.php) (Home), [`backend/register.php`](https://github.com/pixelkaushal/syncsxc/blob/main/backend/register.php) (Individual Registration), [`backend/edit_event.php`](https://github.com/pixelkaushal/syncsxc/blob/main/backend/edit_event.php) (Edit Event)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Campus Discovery"]
  node_home["Home<br/>[index.php]"]
  node_event_browse["Event Listings<br/>[events.php]"]
  node_event_detail["Event Details<br/>[event-details.php]"]
  node_clubs["Club Directory<br/>[clubs.php]"]
  node_schedule["Schedule<br/>[schedule.php]"]
  node_about_terms["About and Terms<br/>[about.php]"]
end

subgraph group_identity["Accounts and Profiles"]
  node_auth["Authentication<br/>[login.php]"]
  node_signup["Student Signup<br/>[signup.php]"]
  node_profile["User Profile<br/>[profile.php]"]
  node_profile_edit["Edit Profile<br/>[edit_profile.php]"]
  node_data_access["Database Access<br/>[data.php]"]
end

subgraph group_events["Events and Registration"]
  node_individual_reg["Individual Registration<br/>[register.php]"]
  node_team_reg["Team Registration<br/>[team_register.php]"]
  node_registrations["My Registrations<br/>[registrations.php]"]
end

subgraph group_operations["Administration and Messaging"]
  node_club_admin["Club Dashboard<br/>[dashboard.php]"]
  node_event_admin["Event Management<br/>[event_manager.php]"]
  node_event_edit["Edit Event<br/>[edit_event.php]"]
  node_mail_transport["SMTP Transport<br/>[SMTP.php]"]
  node_mailer["Mail Client<br/>[PHPMailer.php]"]
  node_mail_exception["Mail Exceptions<br/>[Exception.php]"]
end

node_visitor(("Student or Visitor"))
node_database[("Application Database<br/>[syncsxc.sql]")]

node_visitor -->|"visits"| node_home
node_home -->|"links to"| node_event_browse
node_home -->|"links to"| node_clubs
node_home -->|"requires"| node_data_access
node_event_browse -.->|"links to"| node_event_detail
node_event_detail -.->|"offers registration"| node_individual_reg
node_visitor -->|"signs up"| node_signup
node_signup -->|"inserts user"| node_database
node_visitor -.->|"signs in"| node_auth
node_profile -->|"requires"| node_data_access
node_profile_edit -->|"requires"| node_data_access
node_profile_edit -->|"updates user"| node_database
node_individual_reg -->|"checks and inserts"| node_database
node_team_reg -->|"checks and inserts"| node_database
node_individual_reg -->|"redirects to"| node_registrations
node_team_reg -->|"redirects to"| node_registrations
node_club_admin -->|"creates event"| node_database
node_club_admin -.->|"links to"| node_event_edit
node_event_admin -.->|"links to"| node_event_edit
node_event_edit -->|"updates event"| node_database
node_mail_transport -->|"throws"| node_mail_exception
node_mailer -.->|"uses transport"| node_mail_transport

click node_home "https://github.com/pixelkaushal/syncsxc/blob/main/index.php"
click node_event_browse "https://github.com/pixelkaushal/syncsxc/blob/main/public/events.php"
click node_event_detail "https://github.com/pixelkaushal/syncsxc/blob/main/public/event-details.php"
click node_clubs "https://github.com/pixelkaushal/syncsxc/blob/main/public/clubs.php"
click node_schedule "https://github.com/pixelkaushal/syncsxc/blob/main/public/schedule.php"
click node_about_terms "https://github.com/pixelkaushal/syncsxc/blob/main/public/about.php"
click node_auth "https://github.com/pixelkaushal/syncsxc/blob/main/backend/login.php"
click node_signup "https://github.com/pixelkaushal/syncsxc/blob/main/backend/signup.php"
click node_profile "https://github.com/pixelkaushal/syncsxc/blob/main/public/profile.php"
click node_profile_edit "https://github.com/pixelkaushal/syncsxc/blob/main/public/edit_profile.php"
click node_data_access "https://github.com/pixelkaushal/syncsxc/blob/main/backend/data.php"
click node_individual_reg "https://github.com/pixelkaushal/syncsxc/blob/main/backend/register.php"
click node_team_reg "https://github.com/pixelkaushal/syncsxc/blob/main/backend/team_register.php"
click node_registrations "https://github.com/pixelkaushal/syncsxc/blob/main/public/registrations.php"
click node_club_admin "https://github.com/pixelkaushal/syncsxc/blob/main/admin/dashboard.php"
click node_event_admin "https://github.com/pixelkaushal/syncsxc/blob/main/admin/event_manager.php"
click node_event_edit "https://github.com/pixelkaushal/syncsxc/blob/main/backend/edit_event.php"
click node_mail_transport "https://github.com/pixelkaushal/syncsxc/blob/main/PHPMailer/SMTP.php"
click node_mailer "https://github.com/pixelkaushal/syncsxc/blob/main/PHPMailer/PHPMailer.php"
click node_mail_exception "https://github.com/pixelkaushal/syncsxc/blob/main/PHPMailer/Exception.php"
click node_database "https://github.com/pixelkaushal/syncsxc/blob/main/syncsxc.sql"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_event_browse,node_event_detail,node_clubs,node_schedule,node_about_terms toneBlue
class node_auth,node_signup,node_profile,node_profile_edit,node_data_access,node_database toneAmber
class node_individual_reg,node_team_reg,node_registrations toneMint
class node_club_admin,node_event_admin,node_event_edit,node_mail_transport,node_mailer,node_mail_exception toneRose
class node_visitor toneIndigo
```

## Components

### Campus Discovery

- [Home](https://github.com/pixelkaushal/syncsxc/blob/main/index.php): `index.php`
- [Event Listings](https://github.com/pixelkaushal/syncsxc/blob/main/public/events.php): `public/events.php`
- [Event Details](https://github.com/pixelkaushal/syncsxc/blob/main/public/event-details.php): `public/event-details.php`
- [Club Directory](https://github.com/pixelkaushal/syncsxc/blob/main/public/clubs.php): `public/clubs.php`
- [Schedule](https://github.com/pixelkaushal/syncsxc/blob/main/public/schedule.php): `public/schedule.php`
- [About and Terms](https://github.com/pixelkaushal/syncsxc/blob/main/public/about.php): `public/about.php`

### Accounts and Profiles

- [Authentication](https://github.com/pixelkaushal/syncsxc/blob/main/backend/login.php): `backend/login.php`
- [Student Signup](https://github.com/pixelkaushal/syncsxc/blob/main/backend/signup.php): `backend/signup.php`
- [User Profile](https://github.com/pixelkaushal/syncsxc/blob/main/public/profile.php): `public/profile.php`
- [Edit Profile](https://github.com/pixelkaushal/syncsxc/blob/main/public/edit_profile.php): `public/edit_profile.php`
- [Database Access](https://github.com/pixelkaushal/syncsxc/blob/main/backend/data.php): `backend/data.php`

### Events and Registration

- [Individual Registration](https://github.com/pixelkaushal/syncsxc/blob/main/backend/register.php): `backend/register.php`
- [Team Registration](https://github.com/pixelkaushal/syncsxc/blob/main/backend/team_register.php): `backend/team_register.php`
- [My Registrations](https://github.com/pixelkaushal/syncsxc/blob/main/public/registrations.php): `public/registrations.php`

### Administration and Messaging

- [Club Dashboard](https://github.com/pixelkaushal/syncsxc/blob/main/admin/dashboard.php): `admin/dashboard.php`
- [Event Management](https://github.com/pixelkaushal/syncsxc/blob/main/admin/event_manager.php): `admin/event_manager.php`
- [Edit Event](https://github.com/pixelkaushal/syncsxc/blob/main/backend/edit_event.php): `backend/edit_event.php`
- [SMTP Transport](https://github.com/pixelkaushal/syncsxc/blob/main/PHPMailer/SMTP.php): `PHPMailer/SMTP.php`
- [Mail Client](https://github.com/pixelkaushal/syncsxc/blob/main/PHPMailer/PHPMailer.php): `PHPMailer/PHPMailer.php`
- [Mail Exceptions](https://github.com/pixelkaushal/syncsxc/blob/main/PHPMailer/Exception.php): `PHPMailer/Exception.php`

### Other components

- **Student or Visitor**
- [Application Database](https://github.com/pixelkaushal/syncsxc/blob/main/syncsxc.sql): `syncsxc.sql`

## Connections

- Student or Visitor → Home: visits (evidence: `index.php`)
- Home → Event Listings: links to (evidence: `index.php`)
- Home → Club Directory: links to (evidence: `index.php`)
- Home → Database Access: requires (evidence: `index.php`)
- Event Listings → Event Details: links to
- Event Details → Individual Registration: offers registration
- Student or Visitor → Student Signup: signs up (evidence: `backend/signup.php`)
- Student Signup → Application Database: inserts user (evidence: `backend/signup.php`)
- Student or Visitor → Authentication: signs in
- User Profile → Database Access: requires (evidence: `public/profile.php`)
- Edit Profile → Database Access: requires (evidence: `public/edit_profile.php`)
- Edit Profile → Application Database: updates user (evidence: `public/edit_profile.php`)
- Individual Registration → Application Database: checks and inserts (evidence: `backend/register.php`)
- Team Registration → Application Database: checks and inserts (evidence: `backend/team_register.php`)
- Individual Registration → My Registrations: redirects to (evidence: `backend/register.php`)
- Team Registration → My Registrations: redirects to (evidence: `backend/team_register.php`)
- Club Dashboard → Application Database: creates event (evidence: `admin/dashboard.php`)
- Club Dashboard → Edit Event: links to
- Event Management → Edit Event: links to
- Edit Event → Application Database: updates event (evidence: `backend/edit_event.php`)
- SMTP Transport → Mail Exceptions: throws (evidence: `PHPMailer/SMTP.php`)
- Mail Client → SMTP Transport: uses transport (evidence: `PHPMailer/SMTP.php`)
