-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
65 lines (49 loc) · 1.96 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
//Default Configuration
$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false}';
// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...)
//add user with password 'username' => password_hash('password', PASSWORD_DEFAULT)
$login_users = array('demo' => password_hash('demo1234', PASSWORD_DEFAULT),
'admin' => '$2y$10$gECf0VfZ7r541a6ro0VVxOcnJjNvRdBxloWtyoAuo9.TGAW2KzPCq', //admin@54321
'superuser' => '$2y$10$p/Lyq45CgfQ/HZGbeSo2WuLs37ThIWpFiurrNPbRBxHxLf1ri9mce'//google@9545553061
);
// Auth with login/password (set true/false to enable/disable it)
$use_auth = true;
// Readonly users (username array)
$readonly_users = array(
'user'
);
// user specific directories
// array('Username' => 'Directory path', 'Username2' => 'Directory path', ...)
$directories_users = array();
// Enable highlight.js (https://highlightjs.org/) on view's page
$use_highlightjs = true;
// highlight.js style
$highlightjs_style = 'vs';
// Enable ace.js (https://ace.c9.io/) on view's page
$edit_files = true;
// Default timezone for date() and time() - http://php.net/manual/en/timezones.php
$default_timezone = 'Etc/UTC'; // UTC
// Root path for file manager
$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'];
// input encoding for iconv
$iconv_input_encoding = 'UTF-8';
// date() format for file modification date
$datetime_format = 'd.m.y H:i';
// allowed file extensions for upload and rename
$allowed_extensions = ''; // 'gif,png,jpg'
// Array of files and folders excluded from listing
$GLOBALS['exclude_items'] = array();
// Google Docs Viewer
$GLOBALS['online_viewer'] = true;
//Sticky Nav bar
$sticky_navbar = true;
//max upload file size
define('MAX_UPLOAD_SIZE', '2048');
include 'fm.inc.php';
?>