alexantr / filemanager Goto Github PK
View Code? Open in Web Editor NEWFile manager in a single php file
License: MIT License
File manager in a single php file
License: MIT License
If we can specify a folder as the init directory of the file management shows instead of the folder homepage root folder located. Because sometimes we use this class file as a third party library in the application system.
another request:
Can we change the content of owner to content more humanized instead of ?:?
in windows system?
it checks if its windows by checking if the DIRECTORY_SEPARATOR is \
- unfortunately, at least 4 OSs use \ for directory separator, including Windows, OS/2, eComStation/eCS, and Symbian OS... a more reliable detection would probably be define('FM_IS_WIN', (false!==(stripos(php_uname('s'),'windows'))));
I wanted to delete more than 1300 files in the root directory of my web server.
After selecting the files to delete, I pressed bottom delete button but no file has been deleted, all selected files still remain within the root directory of my web server.
The project tinyfilemanager has the same issue, see #53
the code used to check if the password is correct, is vulnerable to timing attacks, allowing hackers to extract the source code hash, painstakingly byte-by-byte. the comparison should be done in a timing attack safe manner.
Because the script allow opening/viewing itself, if the script is located in $root_path
a read only user can read credentials of others users (in $auth_users
configuration variable) and then gain write access.
Proposition: add an option to disallow the script to view itself.
You may use it in Yii2 like this
In a controller call
public function fileman {
return $this->render('filemanager')
}
In views put filemanager.php.
At the top of the file put
use yii\helpers\Url;
define('FM_EMBED', true);
define('FM_LANG', 'en');
define('FM_SELF_URL', Url::base());
In your elfinder I created an issue, if you would have a look at it?
How to edit files?
thank you
You can write anything, like
<h1>asd</h1>
it will totally mess up the page.
Iframes also work, and everything you can imagine.
thank you for this great file manager
it just misses a text editor for this filemanager to be ultimate..
my english is bad sorry.
harmony
Please, add multi uploading!
Your file manager is good solution for local file server.
Is it possible to set current folder (containing "filemanager.php") as the root path and make this script just working on current and all sub folders ?
the same problem like with tiny manager - it does not receive the control variable sent via the GET method. Of course, the procedure for sending and receiving a variable, checked on model files, works perfectly. But not here.
Can you add unzip option to this file manager?
Thank you very much for this wonderful script strong.
There are some features are not present which is very necessary in the File Manager.
I noticed that the download is available folders, as well as modify files, for example, php and others are not available.
Is it possible to add these features, and thank you very much, You Greetings
I apologize to the spelling mistakes, I do not know English well
PHP provides the PharData
to extract an archive. Maybe there are other alternatives...
Could be nice to just upload a light tarball file and just decompress it in a selected remote directory.
I have also proposed the same feature on project tinyfilemanager, see issue #54.
Can support uploading multiple files?
Hi,
I saw that with or without the parameter in the url "&sort_by=date" the files were not properly sorted by date.
So I modified the following line in dialog.php version PHP 8:
? $x['date'] <=> $y['date'] : $y['date'] <=> $x['date'];
by the lines
? $x['date'] < $y['date'] : $y['date'] >= $x['date'];
I think it should also be modified on the lines 904 "size" and lines 920 "extension" .
good day to all
like bcrypt. use bcrypt. if for whatever reason, a hacker is able to extract the md5 hash, reversing a plain unsalted MD5 is usually very easy. (also, the password comparison used now is vulnerable to a timing attack, actually allowing hackers to extract the hash, byte-by-byte, but that's for another bugreport...)
Hello,
I am using a Linux hosting, and by using this code from line 990, I was able to show the folder Size, not just display "Folder" in the size column.
https://stackoverflow.com/questions/478121/how-to-get-directory-size-in-php
Size: ' . $size; ?>Perhaps you should consider something similar.
You see I use a directory structure for a security camera folders, and I need to know their sizes, in order to delete them.
Regards.
Ilian
P.S. how can I donate some $$ ?
Would be nice to see count of files behind foldername (or at least configurable)
Nice tool!
Greetz Uli
This file manager simple,clean and awesome.but would you please add a search function in file ? please. thank you so much
Hi Alex,
Is it possible do not showing .php or .inc files from list?
Can hide the files ?
showing sensitive files like .htaccess
is it possible?
Hi alexantr ,
This file manager script is the best script ever made i have used many file managers but it is perhaps the most powerful and complete script but there is a little problem it is very hard to read the source in a single .php file .It would be a lot easier if you can make files separate(organize) and a index.php in the root so me and other users would be able to get a lot better learning experience.
Again thank you very much for this script.
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.