Skip to content

Commit

Permalink
dark mode #352
Browse files Browse the repository at this point in the history
Request: Dark mode option in the admin section. #260
  • Loading branch information
Prasath Mani committed May 24, 2020
1 parent 8fb1816 commit 1dbe7c5
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 164 deletions.
29 changes: 22 additions & 7 deletions h3k_config.php → config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
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 "tinifilemanager.php" as a single file application.
-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 "tinifilemanager.php".
-Put inside this file all the static configuration you want and forgot to configure "tinyfilemanager.php".
#################################################################################################################
*/

Expand All @@ -16,6 +16,12 @@
// Is independent from IP white- and blacklisting
$use_auth = true;


// 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
Expand All @@ -24,20 +30,21 @@
'user' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' //12345
);

// Readonly users
//set application theme
//options - 'light' and 'dark'
$theme = 'light';

// Readonly users
// e.g. array('users', 'guest', ...)
$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
// for dark theme use 'ir-black'
$highlightjs_style = 'vs';

// Enable ace.js (https://ace.c9.io/) on view's page
Expand All @@ -58,6 +65,10 @@
// 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';

Expand Down Expand Up @@ -94,6 +105,10 @@
// false => disable sticky header
$sticky_navbar = true;


// max upload file size
$max_upload_size_bytes = 2048;

// 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
Expand Down

0 comments on commit 1dbe7c5

Please sign in to comment.