mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-17 21:16:38 +02:00
Ignore config.php & add offline support on config
This commit is contained in:
parent
f380478197
commit
14d235f78e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
config.php
|
|
@ -142,13 +142,6 @@ $ip_blacklist = array(
|
||||||
'::' // non-routable meta ipv6
|
'::' // non-routable meta ipv6
|
||||||
);
|
);
|
||||||
|
|
||||||
// if User has the external config file, try to use it to override the default config above [config.php]
|
|
||||||
// sample config - https://tinyfilemanager.github.io/config-sample.txt
|
|
||||||
$config_file = __DIR__.'/config.php';
|
|
||||||
if (is_readable($config_file)) {
|
|
||||||
@include($config_file);
|
|
||||||
}
|
|
||||||
|
|
||||||
// External CDN resources that can be used in the HTML (replace for GDPR compliance)
|
// External CDN resources that can be used in the HTML (replace for GDPR compliance)
|
||||||
$external = array(
|
$external = array(
|
||||||
'css-bootstrap' => '<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">',
|
'css-bootstrap' => '<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">',
|
||||||
|
@ -165,6 +158,13 @@ $external = array(
|
||||||
'pre-cloudflare' => '<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin/><link rel="dns-prefetch" href="https://cdnjs.cloudflare.com"/>'
|
'pre-cloudflare' => '<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin/><link rel="dns-prefetch" href="https://cdnjs.cloudflare.com"/>'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// if User has the external config file, try to use it to override the default config above [config.php]
|
||||||
|
// sample config - https://tinyfilemanager.github.io/config-sample.txt
|
||||||
|
$config_file = __DIR__.'/config.php';
|
||||||
|
if (is_readable($config_file)) {
|
||||||
|
@include($config_file);
|
||||||
|
}
|
||||||
|
|
||||||
// --- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL ---
|
// --- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL ---
|
||||||
|
|
||||||
// max upload file size
|
// max upload file size
|
||||||
|
|
Loading…
Reference in a new issue