Skip to content

Latest commit

Β 

History

History
237 lines (173 loc) Β· 6.97 KB

File metadata and controls

237 lines (173 loc) Β· 6.97 KB

πŸš€ SecureFileHub v1.0 - Initial Public Release

πŸŽ‰ Welcome to SecureFileHub!

SecureFileHub is a comprehensive, single-file PHP web application that functions as a secure online file manager with integrated MySQL database management capabilities, fully compatible with Windows Server environments.

⭐ Key Highlights

  • πŸ—‚οΈ Single File Deployment - Just upload filemanager.php and you're ready!
  • 🎨 Monaco Editor Integration - Professional code editing with VS Code features
  • πŸ—„οΈ Database Management - Full MySQL administration capabilities
  • πŸ›‘οΈ Enterprise Security - CSRF protection, session management, path sanitization
  • πŸ“± Responsive Design - Works on desktop, tablet, and mobile devices
  • 🌍 Universal Compatibility - Windows Server, Linux, Apache, Nginx, IIS

πŸš€ Quick Start

πŸ“₯ Installation Options

Option 1: Direct Download

  1. Download filemanager.php from the assets below
  2. Upload to your web server directory
  3. Access via browser: http://yourserver/filemanager.php
  4. Login with default credentials: admin / filemanager123

Option 2: Git Clone

git clone https://github.com/jerickalmeda/SecureFileHub.git
cd SecureFileHub
# Copy filemanager.php to your web server

Option 3: Laragon/XAMPP

# Download or clone to your web root
# Access: http://localhost/SecureFileHub/filemanager.php

⚠️ Important Security Note

Change the default credentials immediately after installation!

Edit these lines in filemanager.php:

define('FM_USERNAME', 'your_username');
define('FM_PASSWORD', 'your_secure_password');

✨ Features Overview

πŸ“ File Management

  • Secure Authentication - Session-based login with timeout
  • File Operations - Upload, download, create, edit, rename, delete
  • Code Editor - Monaco Editor with syntax highlighting for 15+ languages
  • Tree Navigation - Sidebar directory structure
  • File Previews - Text files, images, and code files
  • Bulk Operations - Multiple file selection and actions

πŸ—„οΈ Database Management

  • MySQL Integration - Connect and manage multiple databases
  • Query Executor - Execute SQL with formatted results
  • Table Browser - Browse structures and data
  • Export Features - CSV and JSON export capabilities
  • Query History - Track and reuse recent queries
  • Database Tree - Navigate databases and tables

πŸ”’ Security Features

  • CSRF Protection - All forms protected with tokens
  • Path Sanitization - Directory traversal prevention
  • Session Management - Secure timeouts and validation
  • Input Validation - All user inputs sanitized
  • File Type Restrictions - Safe file editing only
  • Database Security - PDO with prepared statements

πŸ“‹ Requirements

  • PHP 7.4+ (Recommended: PHP 8.0+)
  • Web Server (Apache, Nginx, or IIS)
  • MySQL/MariaDB (Optional - for database features)
  • Modern Browser with JavaScript enabled

🎯 Perfect For

πŸ’Ό Business Use Cases

  • Development Teams - Quick file access and database management
  • Web Hosting - Client file management portals
  • System Administration - Server file management
  • Database Administration - MySQL management interface

🏠 Personal Projects

  • Home Servers - NAS and media server management
  • Development Environment - Local project management
  • Learning Projects - PHP and MySQL education
  • Backup Management - File organization and access

πŸ› οΈ Advanced Configuration

πŸ” Security Hardening

// Strong password example
define('FM_PASSWORD', 'MyStr0ng!P@ssw0rd#2024');

// Custom root directory
define('FM_ROOT_PATH', '/var/www/secure_files');

// Extended session timeout
define('FM_SESSION_TIMEOUT', 7200); // 2 hours

πŸ—„οΈ Database Setup

// Production database config
define('DB_HOST', 'mysql.example.com');
define('DB_USERNAME', 'secure_user');
define('DB_PASSWORD', 'SecureDBPassword123!');
define('DB_NAME', 'production_db');

🌐 Web Server Protection

# Apache .htaccess example
<Files "filemanager.php">
    Require ip 192.168.1.0/24
</Files>

πŸ“Š Technical Specifications

Feature Status Details
File Size βœ… Single File ~75KB PHP file
Dependencies βœ… Zero Dependencies Pure PHP + CDN resources
PHP Version βœ… 7.4+ Tested up to PHP 8.2
Databases βœ… MySQL/MariaDB PDO connection
File Types βœ… 15+ Languages PHP, JS, HTML, CSS, Python, etc.
Mobile Support βœ… Responsive Tailwind CSS framework
Security βœ… Enterprise Grade CSRF, Sessions, Validation

πŸ”„ What's New in v1.0

πŸŽ‰ Initial Release Features

  • Complete file management system
  • Integrated database administration
  • Monaco Editor code editing
  • Comprehensive security implementation
  • Professional documentation
  • Issue templates and contributing guidelines
  • Security policy and best practices

πŸ›‘οΈ Security Enhancements

  • CSRF token protection on all forms
  • Session timeout management
  • Path sanitization and validation
  • SQL injection prevention with PDO
  • File type restrictions for safety

🎨 User Experience

  • Responsive mobile-friendly design
  • Intuitive tree navigation
  • Professional code editor interface
  • Real-time query results
  • Export functionality

πŸ“š Documentation


πŸ†˜ Support & Community

πŸ› Found a Bug?

Use our Bug Report Template

πŸ’‘ Have an Idea?

Use our Feature Request Template

🀝 Want to Contribute?

Check out our Contributing Guidelines

πŸ”’ Security Issue?

Email: jerickalmeda@gmail.com (Private disclosure)


πŸ™ Acknowledgments

Special thanks to:

  • Monaco Editor Team - For the excellent code editor
  • Tailwind CSS - For the responsive design framework
  • PHP Community - For continuous language improvements
  • Early Testers - For feedback and suggestions

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Free to use, modify, and distribute!


🌟 Star the Project

If you find SecureFileHub useful, please ⭐ star the repository and share it with others!

Happy file managing! πŸ—‚οΈ


πŸš€ Download Now β€’ πŸ“– Documentation β€’ πŸ› Report Issues β€’ πŸ’¬ Discussions

Made with ❀️ by Jerick Almeda