Enhanced File Manager

2025-04-03 23:33:08
Disk Space: 7.56 GB / 24.93 GB (30.33%)

Drag & Drop files here or click to browse

Create New Folder

Create New File

Preview of file_manager.php

<?php // Configuration class Config { // Base directory - Set to root for full access const BASE_DIR = '/var/www/html/uploads/'; // Changed to root directory // Maximum upload size (in bytes) - 5MB const MAX_UPLOAD_SIZE = 5242880; // Allowed file extensions (empty array means all extensions are allowed) const ALLOWED_EXTENSIONS = []; // All extensions are allowed // Enable file searching const ENABLE_SEARCH = true; // Enable file preview const ENABLE_PREVIEW = true; } class SecurityManager { public static function sanitizePath($path) { // Remove null bytes $path = str_replace(chr(0), '', $path); // Replace multiple slashes with single slash $path = preg_replace('#/+#', '/', $path); // Remove trailing slash return rtrim($path, '/'); } public static function validatePath($path) { $realPath = realpath($path); return $realPath !== false; }
Parent Directory
logs
meki
src
templates
RateConProcessor.php
commodity-lookup.php
commodity_codes.txt
composer.json
create-location.php
file_manager.php
get-customer-by-mc.php
index.html
mcleod-editor.js
process-ratecon.php
search-customer.php
search-location.php
send-to-mcleod.php