Compare commits
200 Commits
add-licens
...
master
Author | SHA1 | Date |
---|---|---|
|
ff737d3cba | |
![]() |
03c3f6d7f9 | |
![]() |
95147f5828 | |
![]() |
dd9d7c09a2 | |
![]() |
a19ff20768 | |
![]() |
b03232775e | |
![]() |
ef09231454 | |
![]() |
6b06fb2532 | |
![]() |
2512330dee | |
![]() |
642cab42cc | |
![]() |
c03e601bc3 | |
![]() |
0d0e728c79 | |
![]() |
530055df08 | |
![]() |
5d841d6624 | |
![]() |
211568ff4c | |
![]() |
44bedb9be0 | |
![]() |
c8fff90634 | |
![]() |
a6a28a6356 | |
![]() |
14ed4fdb92 | |
![]() |
65f7dc448d | |
![]() |
fb31a14873 | |
![]() |
c741ae2212 | |
![]() |
e118d650a3 | |
![]() |
c260601ef6 | |
![]() |
462566a31b | |
![]() |
0a92002919 | |
![]() |
1dbe7c5339 | |
![]() |
8fb1816877 | |
![]() |
5903849388 | |
![]() |
0826838917 | |
![]() |
a0c595a8e1 | |
![]() |
1482e41f74 | |
![]() |
dcdf736e48 | |
![]() |
43eb8016d3 | |
![]() |
e2ac1163c2 | |
![]() |
2f357ee3d5 | |
![]() |
5933952fa4 | |
![]() |
1ca011ca67 | |
![]() |
e259ffda4d | |
![]() |
e8fc6d546a | |
![]() |
1501835f61 | |
![]() |
c991555de5 | |
![]() |
9e3877270b | |
![]() |
0319b7b102 | |
![]() |
4905e5c61c | |
![]() |
8b21009a47 | |
![]() |
b8b859a1fd | |
![]() |
339c26168c | |
![]() |
1c86942097 | |
![]() |
9a499734c5 | |
![]() |
1eac82f55a | |
![]() |
c2938925d8 | |
![]() |
b84fdbf008 | |
![]() |
7c376df205 | |
![]() |
7a7a44de9b | |
![]() |
3e19ba0243 | |
![]() |
bf8b715c13 | |
![]() |
4a8bd014af | |
![]() |
a5b2b459cd | |
![]() |
4f2eecc108 | |
![]() |
13e130c29f | |
![]() |
57ac3391e5 | |
![]() |
29ca36a18b | |
![]() |
c76a3a2fc5 | |
![]() |
0cb8ad86a5 | |
![]() |
567fcb6a25 | |
![]() |
4353cc7378 | |
![]() |
a0a7ceeea0 | |
![]() |
73abdcdaad | |
![]() |
059c70e05e | |
![]() |
8b6a984864 | |
![]() |
c18051dd5b | |
![]() |
d593cefde7 | |
![]() |
b6f552a79c | |
![]() |
3114fa92e3 | |
![]() |
21094a66ee | |
![]() |
5386b89aaf | |
![]() |
b579489148 | |
![]() |
9131db13a7 | |
![]() |
8d40ebcdd7 | |
![]() |
ea29092aea | |
![]() |
1696ebf0fc | |
![]() |
ffc34859cc | |
![]() |
9d472720a9 | |
![]() |
498804f8a5 | |
![]() |
4b4b48242e | |
![]() |
f67a343f48 | |
![]() |
f956ae3abc | |
![]() |
7a9730dfe1 | |
![]() |
62e58a6597 | |
![]() |
0c5ee15ea3 | |
![]() |
ae971c8b99 | |
![]() |
b546ac168e | |
![]() |
285b6b4882 | |
![]() |
a8c2fc66d6 | |
![]() |
622264042a | |
![]() |
bb0e61787c | |
![]() |
da31717cff | |
![]() |
1b9e0f5e76 | |
![]() |
e0cc54b286 | |
![]() |
7a0de24a61 | |
![]() |
1a24dc0729 | |
![]() |
2a390b2247 | |
![]() |
292c00d62f | |
![]() |
30aa3e6f96 | |
![]() |
200f56e8d4 | |
![]() |
09f688c625 | |
![]() |
f26977adb3 | |
![]() |
704bec368f | |
![]() |
6970bdb7dd | |
![]() |
8802b048b3 | |
![]() |
e38f312ce5 | |
![]() |
125e35ed83 | |
![]() |
bf64ae9593 | |
![]() |
98902b6b80 | |
![]() |
380a6f2877 | |
![]() |
373d04b2ef | |
![]() |
c7708f371f | |
![]() |
ba9826fe9c | |
![]() |
221bc96882 | |
![]() |
acf1958350 | |
![]() |
90c079882d | |
![]() |
c22e694e7d | |
![]() |
8f9da1cb5e | |
![]() |
c413573952 | |
![]() |
89fb960679 | |
![]() |
fb7c4fcebd | |
![]() |
1760168933 | |
![]() |
9fdfdbfe94 | |
![]() |
876282d006 | |
![]() |
f7240516ca | |
![]() |
1a9bf95920 | |
![]() |
9eda119235 | |
![]() |
1ca5add891 | |
![]() |
4f40e85604 | |
![]() |
39bec20b7e | |
![]() |
8113184b12 | |
![]() |
479a4a873d | |
![]() |
7f1258c050 | |
![]() |
b995d781fb | |
![]() |
c1b8bfd6ad | |
![]() |
81f6c81aa8 | |
![]() |
0c0d9e24b8 | |
![]() |
f3e2a0bdb2 | |
![]() |
1f9b2f6b71 | |
![]() |
f54e269f7e | |
![]() |
ad65b778a2 | |
![]() |
764c80d4a9 | |
![]() |
1accf6739a | |
![]() |
b19f325e8e | |
![]() |
66115cf3c9 | |
![]() |
83a5f1d7b8 | |
![]() |
2510e595aa | |
![]() |
df7312e3c0 | |
![]() |
1a28a09426 | |
![]() |
0d8c314146 | |
![]() |
5b02c47f3c | |
![]() |
b0d0400267 | |
![]() |
8e6b3f288c | |
![]() |
604323c3f5 | |
![]() |
07151e1643 | |
![]() |
9b5e70587e | |
![]() |
cb04b5770a | |
![]() |
9eb9280d6c | |
![]() |
25f5ce7d4f | |
![]() |
1bf7621b38 | |
![]() |
ba41b79f1a | |
![]() |
a1669b8166 | |
![]() |
2331ce3d0f | |
![]() |
484faad1d1 | |
![]() |
48702020e7 | |
![]() |
995cb5270f | |
![]() |
7c9ecf5245 | |
![]() |
daa349de39 | |
![]() |
9b7802b343 | |
![]() |
694e77c1f3 | |
![]() |
93e37c1c22 | |
![]() |
84baa9e14a | |
![]() |
784fdee5a4 | |
![]() |
cbfa110951 | |
![]() |
7b80d12da3 | |
![]() |
0b0d4542f2 | |
![]() |
0ce37ef493 | |
![]() |
dd63df8e63 | |
![]() |
f35f503924 | |
![]() |
e95351852f | |
![]() |
16024e1cda | |
![]() |
6b48a3f221 | |
![]() |
cf1eaf8ef1 | |
![]() |
98749b9ae6 | |
![]() |
e1b30c76e7 | |
![]() |
05fe347795 | |
![]() |
d460612f09 | |
![]() |
f002ba2168 | |
![]() |
67037c8158 | |
![]() |
952454c470 | |
![]() |
5045e16461 | |
![]() |
287146d8af | |
![]() |
be1288ac60 | |
![]() |
a46b93a5fe |
|
@ -0,0 +1,6 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
patreon: ccpprogrammers
|
||||
open_collective: tinyfilemanager
|
||||
ko_fi: tinyfilemanager
|
||||
custom: ['https://paypal.me/prasathmani']
|
81
README.md
81
README.md
|
@ -1,42 +1,67 @@
|
|||
# Tiny PHP File Manager
|
||||
Tiny file manager in single php file
|
||||
<hr>
|
||||
<img src="screenshot.gif" alt="H3K | Tiny File Manager">
|
||||
# Tiny File Manager
|
||||
|
||||
[](https://tinyfilemanager.github.io/demo/)
|
||||
[](https://github.com/prasathmani/tinyfilemanager/wiki)
|
||||
[](https://github.com/prasathmani/tinyfilemanager/releases)
|
||||
[](https://github.com/prasathmani/tinyfilemanager/blob/master/LICENSE)
|
||||
[](https://www.paypal.me/prasathmani)
|
||||
|
||||
> TinyFileManager is web based file manager and it is a simple, fast and small file manager with a single file, multi-language ready web application for storing, uploading, editing and managing files and folders online via web browser. The Application runs on PHP 5.5+, It allows the creation of multiple users and each user can have its own directory and a build-in support for managing text files with cloud9 IDE and it supports syntax highlighting for over 150+ languages and over 35+ themes.
|
||||
|
||||
## Demo
|
||||
|
||||
[Demo](https://tinyfilemanager.github.io/demo/)
|
||||
|
||||
Login Details : admin/admin@123 | user/12345
|
||||
|
||||
## Documentation
|
||||
|
||||
Tinyfilemanager is highly documented on the [wiki pages](https://github.com/prasathmani/tinyfilemanager/wiki).
|
||||
|
||||
[](screenshot.gif)
|
||||
|
||||
## Requirements
|
||||
|
||||
- PHP 5.2 or higher.
|
||||
- [Zip extension](http://php.net/manual/en/book.zip.php) for zip and unzip actions.
|
||||
- Fileinfo, iconv and mbstring extensions are strongly recommended.
|
||||
- PHP 5.5.0 or higher.
|
||||
- Fileinfo, iconv, zip, tar and mbstring extensions are strongly recommended.
|
||||
|
||||
## How to use
|
||||
|
||||
Download ZIP with latest version from master branch.
|
||||
|
||||
Copy tinyfilemanager.php to your website folder and open it with web browser (e.g. http://yoursite/any_path/tinyfilemanager.php).
|
||||
Just copy the tinyfilemanager.php to your webspace - thats all :)
|
||||
You can also change the file name from "tinyfilemanager.php" to something else, you know what i meant for.
|
||||
|
||||
Default username/password: admin/admin. password has encripted with MD5.
|
||||
Default username/password: **admin/admin@123** and **user/12345**.
|
||||
|
||||
Warning: Please set your own username and password in $auth_users before use.
|
||||
:warning: Warning: Please set your own username and password in `$auth_users` before use. password is encrypted with <code>password_hash()</code>. to generate new password hash [here](https://tinyfilemanager.github.io/docs/pwd.html)
|
||||
|
||||
To enable/disable authentication set $use_auth to true or false.
|
||||
To enable/disable authentication set `$use_auth` to true or false.
|
||||
|
||||
:information_source: The default configuration will be loaded from `config.php`, it is an additional configuration file, Feel free to remove completely this file and configure "tinyfilemanager.php" as a single file application.
|
||||
|
||||
### :loudspeaker: Features
|
||||
<ul>
|
||||
<li>:cd: Open Source, light and extremely simple</li>
|
||||
<li>:information_source:Basic features likes Create, Delete, Modify, View, Download, Copy and Move files </li>
|
||||
<li>:arrow_double_up: Ability to upload multiple files</li>
|
||||
<li>:file_folder: Ability to create folders and files</li>
|
||||
<li>:gift: Ability to compress, extract files</li>
|
||||
<li>:sunglasses: Support user permissions - based on session</li>
|
||||
<li>:floppy_disk: Copy direct file URL</li>
|
||||
<li>:pencil2: Edit text formats file using advanced editor</li>
|
||||
<li>:zap: Backup files</li>
|
||||
<li>:mag_right: Search - Advanced Ajax based seach</li>
|
||||
<li>:palm_tree: Tree file view</li>
|
||||
<li>:bangbang: lots more...</li>
|
||||
</ul>
|
||||
### :loudspeaker: Features
|
||||
|
||||
Source: <a target="_balnk" href="https://github.com/alexantr/filemanager">filemanager</a>(original version) were built by <a href="https://github.com/alexantr" target="_balnk">alexantr</a>.<br>
|
||||
This is an excellent and improved version of the original.
|
||||
- :cd: Open Source, light and extremely simple
|
||||
- :iphone: Mobile friendly view for touch devices
|
||||
- :information_source: Basic features likes Create, Delete, Modify, View, Quick Preview, Download, Copy and Move files
|
||||
- :arrow_double_up: Ajax Upload, Ability to drag & drop, upload from URL, multiple files upload with file extensions filter
|
||||
- :file_folder: Ability to create folders and files
|
||||
- :gift: Ability to compress, extract files (`zip`, `tar`)
|
||||
- :sunglasses: Support user permissions - based on session and each user root folder mapping
|
||||
- :floppy_disk: Copy direct file URL
|
||||
- :pencil2: Cloud9 IDE - Syntax highlighting for over `150+` languages, Over `35+` themes with your favorite programming style
|
||||
- :page_facing_up: Google/Microsoft doc viewer helps you preview `PDF/DOC/XLS/PPT/etc`. 25 MB can be previewed with the Google Drive viewer
|
||||
- :zap: Backup files and IP blacklist and whitelist
|
||||
- :mag_right: Search - Search and filter files using `datatable js`
|
||||
- :file_folder: Exclude folders and files from listing
|
||||
- :globe_with_meridians: Multi-language(20+) support and for translations `translation.json` is file required
|
||||
- :bangbang: lots more...
|
||||
|
||||
### <a name=license></a>License, Credit
|
||||
|
||||
- Available under the [GNU license](https://github.com/prasathmani/tinyfilemanager/blob/master/LICENSE)
|
||||
- Original concept and development by github.com/alexantr/filemanager
|
||||
- CDN Used - _jQuery, Bootstrap, Font Awesome, Highlight js, ace js, DropZone js, ekko-lightbox js, and DataTable js_
|
||||
- To report a bug or request a feature, please file an [issue](https://github.com/prasathmani/tinyfilemanager/issues)
|
||||
- [Contributors](https://github.com/prasathmani/tinyfilemanager/wiki/Authors-and-Contributors)
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
# Security Policy
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
The team takes security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
|
||||
|
||||
To report a security issue, email ccpprogrammers[at]gmail.com and include the word "SECURITY" in the subject line.
|
||||
|
||||
The team will send a response indicating the next steps in handling your report. After the initial reply to your report you will be kept informed of the progress towards a fix and full announcement.
|
||||
|
||||
Report security bugs in third-party modules to the person or team maintaining the module.
|
||||
|
||||
## Disclosure Policy
|
||||
|
||||
When the security team receives a security bug report, they will assign it to a
|
||||
primary handler. This person will coordinate the fix and release process,
|
||||
involving the following steps:
|
||||
|
||||
* Confirm the problem and determine the affected versions.
|
||||
* Audit code to find any potential similar problems.
|
||||
* Prepare fixes for all releases still under maintenance. These fixes will be
|
||||
released as fast as possible to npm.
|
||||
|
||||
## Comments on this Policy
|
||||
|
||||
If you have suggestions on how this process could be improved please submit a
|
||||
pull request.
|
|
@ -0,0 +1,127 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
#################################################################################################################
|
||||
This is an OPTIONAL configuration file.
|
||||
The role of this file is to make updating of "tinyfilemanager.php" easier.
|
||||
So you can:
|
||||
-Feel free to remove completely this file and configure "tinyfilemanager.php" as a single file application.
|
||||
or
|
||||
-Put inside this file all the static configuration you want and forgot to configure "tinyfilemanager.php".
|
||||
#################################################################################################################
|
||||
*/
|
||||
|
||||
// Auth with login/password
|
||||
// set true/false to enable/disable it
|
||||
// Is independent from IP white- and blacklisting
|
||||
$use_auth = true;
|
||||
|
||||
// Login user name and password
|
||||
// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...)
|
||||
// Generate secure password hash - https://tinyfilemanager.github.io/docs/pwd.html
|
||||
$auth_users = array(
|
||||
'admin' => '$2y$10$/K.hjNr84lLNDt8fTXjoI.DBp6PpeyoJ.mGwrrLuCZfAwfSAGqhOW', //admin@123
|
||||
'user' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' //12345
|
||||
);
|
||||
|
||||
// Readonly users
|
||||
// e.g. array('users', 'guest', ...)
|
||||
$readonly_users = array(
|
||||
'user'
|
||||
);
|
||||
|
||||
//set application theme
|
||||
//options - 'light' and 'dark'
|
||||
$theme = 'light';
|
||||
|
||||
// Enable highlight.js (https://highlightjs.org/) on view's page
|
||||
$use_highlightjs = true;
|
||||
|
||||
// highlight.js style
|
||||
// for dark theme use 'ir-black'
|
||||
$highlightjs_style = 'vs';
|
||||
|
||||
// Enable ace.js (https://ace.c9.io/) on view's page
|
||||
$edit_files = true;
|
||||
|
||||
// Default timezone for date() and time()
|
||||
// Doc - http://php.net/manual/en/timezones.php
|
||||
$default_timezone = 'Etc/UTC'; // UTC
|
||||
|
||||
// Root path for file manager
|
||||
// use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder'
|
||||
$root_path = $_SERVER['DOCUMENT_ROOT'];
|
||||
|
||||
// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'
|
||||
// Will not working if $root_path will be outside of server document root
|
||||
$root_url = '';
|
||||
|
||||
// Server hostname. Can set manually if wrong
|
||||
$http_host = $_SERVER['HTTP_HOST'];
|
||||
|
||||
// user specific directories
|
||||
// array('Username' => 'Directory path', 'Username2' => 'Directory path', ...)
|
||||
$directories_users = array();
|
||||
|
||||
// input encoding for iconv
|
||||
$iconv_input_encoding = 'UTF-8';
|
||||
|
||||
// date() format for file modification date
|
||||
// Doc - https://www.php.net/manual/en/datetime.format.php
|
||||
$datetime_format = 'd.m.y H:i:s';
|
||||
|
||||
// Allowed file extensions for create and rename files
|
||||
// e.g. 'txt,html,css,js'
|
||||
$allowed_file_extensions = '';
|
||||
|
||||
// Allowed file extensions for upload files
|
||||
// e.g. 'gif,png,jpg,html,txt'
|
||||
$allowed_upload_extensions = '';
|
||||
|
||||
// Favicon path. This can be either a full url to an .PNG image, or a path based on the document root.
|
||||
// full path, e.g http://example.com/favicon.png
|
||||
// local path, e.g images/icons/favicon.png
|
||||
$favicon_path = '';
|
||||
|
||||
// Files and folders to excluded from listing
|
||||
// e.g. array('myfile.html', 'personal-folder', '*.php', ...)
|
||||
$exclude_items = array();
|
||||
|
||||
// Online office Docs Viewer
|
||||
// Availabe rules are 'google', 'microsoft' or false
|
||||
// google => View documents using Google Docs Viewer
|
||||
// microsoft => View documents using Microsoft Web Apps Viewer
|
||||
// false => disable online doc viewer
|
||||
$online_viewer = 'google';
|
||||
|
||||
// Sticky Nav bar
|
||||
// true => enable sticky header
|
||||
// false => disable sticky header
|
||||
$sticky_navbar = true;
|
||||
|
||||
|
||||
// max upload file size
|
||||
$max_upload_size_bytes = 5000;
|
||||
|
||||
// Possible rules are 'OFF', 'AND' or 'OR'
|
||||
// OFF => Don't check connection IP, defaults to OFF
|
||||
// AND => Connection must be on the whitelist, and not on the blacklist
|
||||
// OR => Connection must be on the whitelist, or not on the blacklist
|
||||
$ip_ruleset = 'OFF';
|
||||
|
||||
// Should users be notified of their block?
|
||||
$ip_silent = true;
|
||||
|
||||
// IP-addresses, both ipv4 and ipv6
|
||||
$ip_whitelist = array(
|
||||
'127.0.0.1', // local ipv4
|
||||
'::1' // local ipv6
|
||||
);
|
||||
|
||||
// IP-addresses, both ipv4 and ipv6
|
||||
$ip_blacklist = array(
|
||||
'0.0.0.0', // non-routable meta ipv4
|
||||
'::' // non-routable meta ipv6
|
||||
);
|
||||
|
||||
?>
|
BIN
screenshot.gif
BIN
screenshot.gif
Binary file not shown.
Before Width: | Height: | Size: 438 KiB After Width: | Height: | Size: 209 KiB |
3562
tinyfilemanager.php
3562
tinyfilemanager.php
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue