diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 55c8173..337f78f 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -12,7 +12,7 @@ $lang = 'en'; // Auth with login/password (set true/false to enable/disable it) $use_auth = true; -// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...), Password has to encripted into MD5 +// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...), Password has to be encrypted into MD5 $auth_users = array( 'admin' => '21232f297a57a5a743894a0e4a801fc3', //admin 'user' => '827ccb0eea8a706c4c34a16891f84e7b', //12345 @@ -23,6 +23,10 @@ $readonly_users = array( 'user' ); +//user specific directories +//array('Username' => 'Directory path', 'Username2' => 'Directory path', ...) +$directories_users = array(); + // Show or hide files and folders that starts with a dot $show_hidden_files = true; @@ -105,20 +109,10 @@ if (empty($auth_users)) { $is_https = isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'; -// clean and check $root_path -$root_path = rtrim($root_path, '\\/'); -$root_path = str_replace('\\', '/', $root_path); -if (!@is_dir($root_path)) { - echo "