Tinyfilemanager 2.4.3 -

<?php if (!$readonly): ?> <div class="upload-area"> <form method="post" enctype="multipart/form-data" id="uploadForm"> <input type="file" name="file" id="fileInput"> <button type="submit">Upload</button> </form> <form method="post" style="margin-top: 10px;"> <input type="hidden" name="action" value="mkdir"> <input type="text" name="name" placeholder="New folder name" required> <button type="submit">Create Folder</button> </form> </div> <?php endif; ?>

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

<?php // TinyFileManager 2.4.3 // https://github.com/prasathmani/tinyfilemanager // Released under MIT License session_name('filemanager'); session_start(); ?php if (!$readonly): ?&gt

if ($action === 'rename' && isset($_POST['old'], $_POST['new'])) $old = $full_path . '/' . basename($_POST['old']); $new = $full_path . '/' . basename($_POST['new']); if (file_exists($old)) rename($old, $new); input type="file" name="file" id="fileInput"&gt

// Enable/disable authentication $use_auth = true;