StudyShare Supreme is a next-generation academic platform built for seamless learning, file sharing, and peer interaction. It empowers students to upload, manage, and access shared study materials with drag-and-drop support, real-time chat, and an elegant Glassmorphism UI โ all running in a secure, responsive ecosystem.
- ๐ Features
- ๐งฉ Tech Stack
- ๐ Live Demo
- โ๏ธ Getting Started
- ๐ Project Structure
- ๐ง Core Engines
- ๐ License
- File:
admin/dashboard.php - Manage the entire StudyShare system with ban controls, force-delete capabilities, and a Gold Pulsing Avatar that marks administrative authority.
- The "God Mode" dashboard allows instant moderation and global message broadcasts.
- File:
upload_file.php - Provides drag & drop uploads, live JSON feedback, secure file renaming, and download counters to track resource engagement.
- Powered by robust MIME validation for maximum safety.
- File:
message.php - Facilitates instant, no-reload communication using AJAX-based polling.
- Messages from Admins feature glowing gold or gradient styles for clear visual distinction.
- File:
css/style.css - Implements Glassmorphism design, translucent containers, and a user-toggleable Light/Dark mode.
- Ensures an aesthetic, distraction-free experience for collaborative sessions.
| Layer | Technology | Description |
|---|---|---|
| Backend | PHP 8.2+ | PDO-based, secure prepared statements. |
| Database | MySQL | Atomic transactions with cascade deletion. |
| Frontend | Bootstrap 5, FontAwesome 6, Vanilla JS | Responsive layout with async AJAX/Fetch requests. |
๐ Visit StudyShare Supreme Live
git clone https://github.com/0902cs231028-sys/StudyShare.git
- Create a database named
studyshare_db - Import the schema from
db.sql
Database Credentials:
- Host:
localhost - Username:
root - Password: (leave empty)
- Move the project folder into your
htdocsdirectory. - Open your browser and go to:
http://localhost/StudyShare/index.php
StudyShare/
โโโ admin/ # ๐ก๏ธ THE COMMAND CENTER
โ โโโ dashboard.php # Admin control panel (User bans, File deletion)
โโโ assets/ # ๐จ Branding
โ โโโ banner.png # Project Banner
โโโ css/ # ๐
Styling
โ โโโ style.css # Glassmorphism & Theme Logic
โโโ includes/ # ๐ Configuration
โ โโโ db_connect.php # Database Connection
โโโ uploads/ # โ๏ธ Storage
โ โโโ avatars/ # User profile pictures
โโโ message.php # โก JSON API for Global Chat
โโโ upload_file.php # โก JSON API for File Uploads
โโโ dashboard.php # ๐ Main Student Dashboard
โโโ db.sql # ๐๏ธ Database Structure (Import this!)
โโโ index.php # ๐ช Landing Page
โโโ profile.php # User personal customization hub
โโโ LICENSE # โ๏ธ Legal
This file acts as a REST-like API for the platform.
- POST Requests: Handles secure message insertion into the database.
- GET Requests: Fetches the last 50 messages in JSON format, allowing the frontend to update the chat box asynchronously without refreshing the page.
- Security: Checks user session and role (Student vs. Admin) before allowing data access.
A robust file handling system designed for shared hosting environments.
- Validation: Strictly checks MIME types (PDF, DOCX, IMG) and enforces a 10MB limit.
- Security: Uses
uniqid()to rename files on the server (preventing overwrites and directory traversal attacks) while storing the original name in the database for display.
See how StudyShare has evolved over time.
This project is open-source and available under the MIT License.
Made with Supreme Logic & โค๏ธ by Shirooni23