pavelthq / simple-file-manager Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jcampbell1/simple-file-manager
Updated. A Simple PHP file manager. The code is a single php file.
License: MIT License
This project forked from jcampbell1/simple-file-manager
Updated. A Simple PHP file manager. The code is a single php file.
License: MIT License
how could we make it posible to config to see only certain folder eg "uploads", and its content?
Thanks in advance, also one more question, why in the breadcumbs apears this weird path: Home ▸ |.. ▸ |../* ▸ .
I have noticed that in both the original and this version that there does not seem to be any way to constrain the file manager to only access or show files in a certain, different directory.
I would like to use this as the interface for an OpenWRT NAS I have, but I do not want the security issue of making the files in my web server root readable to others, and I need to only place files in the location that I have the device's drive mounted, since I don't want to write to the device's internal Flash.
Could you add a root_location variable to the script to allow an alternate choice of file location?
Hello
Thank you very much for the wonderful changes, please add this feature to edit the file.
highlight source code
Syntax highlighting for the Web
https://highlightjs.org/
Hi Angelll
Great work and thanks for the new features !
I suggest to use bootswatch like the fork of EduardoOliveira
https://github.com/EduardoOliveira/simple-file-manager
what do you think ?
Cheers
Hello,
Thanks for the enhancements. I notice in your fork and the main script, when the directory contains a space, the contents of the directly aren't listed when the directory is viewed.
I'm happy to fix it but I'm not sure where to start. I have basic PHP experience, can you suggest what I should look for to change the code?
Thanks
I like this fork because it has a lot more functions built-in but unzip doesn't seem to work.
The following edit I did to the original @jcampbell1 version works. Can you fix yours?
(Not familiar enough with Github to send a proper pull request. Sorry.)
Edit: Oh, it actually works but it unzips the files in a new directory. That's easy to modify. Thanks for forking this project 👍
> error_reporting( error_reporting() & ~E_NOTICE );
53a55
> 'is_zip' => strstr($entry, '.zip'),
68a71,82
> } elseif ($_POST['do'] == 'unzip') {
> // get the absolute path to $file
> $path = pathinfo(realpath($file), PATHINFO_DIRNAME);
> $zip = new ZipArchive;
> $res = $zip->open($file);
> if ($res === TRUE) {
> $zip->extractTo($path);
> $zip->close();
> } else {
> echo "Couldn't open $file";
> }
> exit;
241a256,262
> $('.unzip').live('click',function(data) {
> $.post("",{'do':'unzip',file:$(this).attr('data-file'),xsrf:XSRF},function(response){
> list();
> },'json');
> return false;
> });
>
342a364
> var $unzip_link = $(' <a href="#" />').attr('data-file',data.path).addClass('unzip').text('unzip');
354c376
< .append( $('<td/>').append($dl_link).append( data.is_deleteable ? $delete_link : '') )
---
> .append( $('<td/>').append($dl_link).append( data.is_deleteable ? $delete_link : '' ).append( data.is_zip ? $unzip_link : '' ) )```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.