Feat/mixed changes (#502)

* remove trailing whitespace

Signed-off-by: ccdd13 <78702084+ccdd13@users.noreply.github.com>

* safe include config.php with __DIR__

* replace doc url for $datetime_format from function.date.php to datetime.format.php

Signed-off-by: ccdd13 <ccdd13@users.noreply.github.com>

* put $auth_users & $readonly_users together

Signed-off-by: ccdd13 <ccdd13@users.noreply.github.com>

* update $datetime_format

Signed-off-by: ccdd13 <ccdd13@users.noreply.github.com>

Co-authored-by: ammm ccdd12 <mamok43076@dashseat.com>
Co-authored-by: ccdd13 <ccdd13@users.noreply.github.com>
This commit is contained in:
ccdd13 2021-02-24 08:07:38 +01:00 committed by GitHub
parent a19ff20768
commit dd9d7c09a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 30 deletions

View file

@ -24,16 +24,16 @@ $auth_users = array(
'user' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' //12345
);
//set application theme
//options - 'light' and 'dark'
$theme = 'light';
// 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;
@ -67,8 +67,8 @@ $directories_users = array();
$iconv_input_encoding = 'UTF-8';
// date() format for file modification date
// Doc - https://www.php.net/manual/en/function.date.php
$datetime_format = 'd.m.y H:i';
// 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'

View file

@ -131,7 +131,7 @@ $ip_blacklist = array(
);
// if User has the customized config file, try to use it to override the default config above
$config_file = './config.php';
$config_file = __DIR__.'/config.php';
if (is_readable($config_file)) {
@include($config_file);
}