Skip to content

0902cs231028-sys/ShareStudy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

48 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

StudyShare Banner

๐Ÿ“‚ ShareStudy

The Ultimate Student Resource Hub & Real-Time Collaboration Ecosystem

Status Maintenance


Live Demo Admin Panel PHP Download SQL License MIT


๐ŸŒŸ Introduction

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.


๐Ÿงญ Table of Contents


๐Ÿš€ Features

๐Ÿงฎ Admin Command Center ("God Mode")

  • 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.

๐Ÿ“ Intelligent File Ecosystem

  • 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.

๐Ÿ’ฌ Real-Time Global Chat

  • 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.

๐Ÿ’Ž UI/UX Excellence

  • 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.

๐Ÿงฉ Tech Stack

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.

๐ŸŒ Live Demo

๐Ÿ‘‰ Visit StudyShare Supreme Live


โš™๏ธ Getting Started

Step 1: Clone the Repository

git clone https://github.com/0902cs231028-sys/StudyShare.git

Step 2: Database Setup

  • Create a database named studyshare_db
  • Import the schema from db.sql

Database Credentials:

  • Host: localhost
  • Username: root
  • Password: (leave empty)

Step 3: Launch Locally


๐Ÿ“‚ Project Structure

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

๐Ÿ”ง Core Engines

The Chat Engine (chat_backend.php)

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.

The Upload Engine (upload_file.php)

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.

๐Ÿ“œ History & Legal

๐Ÿ”„ Project History

See how StudyShare has evolved over time.
Changelog

โš–๏ธ License

This project is open-source and available under the MIT License.
License


Made with Supreme Logic & โค๏ธ by Shirooni23

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors