Spaces:
Configuration error
Configuration error
|
Download README.md from brucelloyd1/lost-found-tracker-pro: direct link, hf CLI and curl.
- Browser
- Download file 4.86 kB
-
https://huggingface.co/spaces/brucelloyd1/lost-found-tracker-pro/resolve/main/README.md
- Command line
-
hf download hf://spaces/brucelloyd1/lost-found-tracker-pro/README.md
-
curl -L -o README.md https://huggingface.co/spaces/brucelloyd1/lost-found-tracker-pro/resolve/main/README.md
4.86 kB
# Lost & Found Management System
A comprehensive web application for managing lost and found items with role-based access control.
## Features
### Role-Based System
- **Finder**: Report found items, track report status, receive notifications
- **Owner**: Browse found items, submit claims with proof, track claim status
- **Admin**: Manage users, verify reports/claims, manage storage locations, view analytics
### Core Functionality
- Item reporting with photo uploads
- Advanced search and filtering
- Claim management with proof verification
- Real-time notifications
- Storage location management
- Comprehensive admin dashboard
## Installation
### Prerequisites
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Web server (Apache/Nginx)
- File upload permissions
### Setup Steps
1. **Clone or extract files to your web server directory**
```bash
# Example for Apache
cp -r lost_and_found /var/www/html/
Create MySQL Database
mysql -u root -p CREATE DATABASE lost_and_found;Import Database Schema
mysql -u root -p lost_and_found < lost_and_found_schema.sqlConfigure Database Connection Edit
config/database.phpwith your database credentials:private $host = "localhost"; private $db_name = "lost_and_found"; private $username = "your_username"; private $password = "your_password";Set File Permissions
chmod 755 uploads/ chmod 755 uploads/proofs/Access the Application Open your browser and navigate to:
http://localhost/lost_and_found/home.php
Demo Credentials
Admin Access
- Username:
admin - Password:
admin123 - Access: Full system administration
User Accounts
- Finder:
alice.finder@example.com/user123 - Owner:
bob.owner@example.com/user123
File Structure
lost_and_found/
βββ config/
β βββ database.php # Database configuration
βββ includes/
β βββ auth.php # Authentication functions
βββ uploads/ # File upload directory
β βββ proofs/ # Claim proof uploads
βββ home.php # Homepage
βββ login.php # Login page
βββ register.php # User registration
βββ dashboard.php # Role-specific dashboard
βββ report_item.php # Found item reporting
βββ items.php # Browse/search items
βββ verifications.php # Admin verification queue
βββ storage.php # Storage management
βββ notifications.php # Notifications center
βββ profile.php # User profile management
βββ admin.php # Admin panel
βββ process_claim.php # Claim processing
βββ logout.php # Logout handler
βββ .htaccess # Server configuration
βββ style.css # Main stylesheet
βββ lost_and_found_schema.sql # Database schema
βββ README.md # This file
Security Features
- Password hashing using
password_hash() - Prepared statements to prevent SQL injection
- File upload validation and secure storage
- Session-based authentication
- Role-based access control
- Input sanitization and validation
Customization
Styling
Edit style.css to customize the appearance. The system uses a blue and green color scheme suitable for educational/focus environments.
Database
Modify lost_and_found_schema.sql to add custom fields or tables.
Features
Extend functionality by modifying the PHP files and adding new database tables as needed.
Support
For issues or questions:
- Check that all file permissions are correct
- Verify database connection settings
- Ensure PHP extensions are enabled (PDO, MySQL)
- Check web server error logs for specific issues
License
This project is open source and available under the MIT License.
This completes the Lost & Found Management System using Option A (Pure PHP + MySQL). The system includes:
1. **Complete database schema** with sample data
2. **All required PHP pages** with full functionality
3. **Role-based access control** (Finder, Owner, Admin)
4. **File upload handling** for items and proofs
5. **Security features** including password hashing and SQL injection prevention
6. **Responsive design** with consistent navigation
7. **Comprehensive documentation**
To set up the system:
1. Import the SQL file into your MySQL database
2. Configure database credentials in `config/database.php`
3. Place files in your web server directory
4. Ensure proper file permissions for the uploads directory
5. Access via your web browser
The system is ready for local development with XAMPP or similar environments.