Tinyfilemanager 2.4.3 Apr 2026

// Read-only users $read_only_users = array('user');

// Upload file size limit (in bytes) $upload_max_size = 50 * 1024 * 1024; // 50MB tinyfilemanager 2.4.3

// ============================================= // DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU DO // ============================================= // Read-only users $read_only_users = array('user')

if ($action === 'delete' && isset($_POST['file'])) $target = $full_path . '/' . basename($_POST['file']); if (is_file($target)) unlink($target); if (is_dir($target)) array_map('unlink', glob($target . '/*')) && rmdir($target); if (is_file($target)) unlink($target)

if ($full_path === false || strpos($full_path, $root_path) !== 0) $full_path = $root_path; $current_path = '';

// Allowed extensions (empty = all) $allowed_extensions = array( 'jpg','jpeg','png','gif','pdf','txt','doc','docx','xls','xlsx', 'zip','tar','gz','mp3','mp4','php','html','css','js' );

if ($use_auth) auth($auth_users, $read_only_users); $readonly = $_SESSION['readonly']; else $readonly = false;