diff --git a/README.md b/README.md
index c41ab56f..5246ae21 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ 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).
-Default username/password: admin/admin and user/12345. password has encripted with MD5.
+Default username/password: admin/admin and user/12345.
Warning: Please set your own username and password in $auth_users before use.
@@ -46,7 +46,15 @@ To enable/disable authentication set $use_auth to true or false.
:pencil2: Edit text formats file using advanced editor
:zap: Backup files
:mag_right: Search - Advanced Ajax based seach
-
:palm_tree: Tree file view
:file_folder: Exclude folders from listing
:bangbang: lots more...
+
+### CDN Used
+
+ - jQuery
+ - Bootstrap
+ - Font Awesome
+ - Highlight.js
+ - ace.js
+ - DropZone.js
diff --git a/tinyfilemanager.php b/tinyfilemanager.php
index 337f78fe..1215c707 100644
--- a/tinyfilemanager.php
+++ b/tinyfilemanager.php
@@ -1,7 +1,7 @@
'Password', 'Username2' => 'Password2', ...), Password has to be encrypted into MD5
+// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...)
$auth_users = array(
- 'admin' => '21232f297a57a5a743894a0e4a801fc3', //admin
- 'user' => '827ccb0eea8a706c4c34a16891f84e7b', //12345
+ 'admin' => 'admin',
+ 'user' => '12345',
);
// Readonly users (usernames array)
@@ -39,12 +39,6 @@
// Enable ace.js (https://ace.c9.io/) on view's page
$edit_files = true;
-// Send files though mail
-$send_mail = false;
-
-// Send files though mail
-$toMailId = ""; //yourmailid@mail.com
-
// Default timezone for date() and time() - http://php.net/manual/en/timezones.php
$default_timezone = 'Etc/UTC'; // UTC
@@ -67,16 +61,12 @@
// allowed upload file extensions
$upload_extensions = ''; // 'gif,png,jpg'
-// show or hide the left side tree view
-$show_tree_view = false;
-
//Array of folders excluded from listing
-$GLOBALS['exclude_folders'] = array(
-);
+$GLOBALS['exclude_folders'] = array();
// include user config php file
-if (defined('FM_CONFIG') && is_file(FM_CONFIG) ) {
- include(FM_CONFIG);
+if (defined('FM_CONFIG') && is_file(FM_CONFIG)) {
+ include(FM_CONFIG);
}
//--- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL
@@ -134,7 +124,7 @@
} elseif (isset($_POST['fm_usr'], $_POST['fm_pwd'])) {
// Logging In
sleep(1);
- if (isset($auth_users[$_POST['fm_usr']]) && md5($_POST['fm_pwd']) === $auth_users[$_POST['fm_usr']]) {
+ if (isset($auth_users[$_POST['fm_usr']]) && $_POST['fm_pwd'] === $auth_users[$_POST['fm_usr']]) {
$_SESSION['logged'] = $_POST['fm_usr'];
fm_set_msg('You are logged in');
fm_redirect(FM_SELF_URL . '?p=');
@@ -149,12 +139,21 @@
fm_show_header_login();
fm_show_message();
?>
-