Skip to content

Commit 2794aac

Browse files
committed
@Svardsten53's suggestions for "File Manager"
- Defaults to '/home' - Uses consistent timestamps
1 parent b935622 commit 2794aac

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

scripts/filemanager/filemanager.php

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?php
2-
//Default Configuration
3-
$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":true,"hide_Cols":false,"calc_folder":false,"theme":"light"}';
1+
<?php
2+
//Default Configuration
3+
$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":true,"hide_Cols":false,"calc_folder":false,"theme":"light"}';
44

55
/**
66
* H3K | Tiny File Manager V2.4.6
@@ -51,7 +51,7 @@
5151

5252
// Root path for file manager
5353
// use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder'
54-
$root_path = $_SERVER['DOCUMENT_ROOT'];
54+
$root_path = '/home';
5555

5656
// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'
5757
// Will not working if $root_path will be outside of server document root
@@ -69,7 +69,7 @@
6969

7070
// date() format for file modification date
7171
// Doc - https://www.php.net/manual/en/function.date.php
72-
$datetime_format = 'd.m.y H:i';
72+
$datetime_format = 'Y-m-d H:i';
7373

7474
// Allowed file extensions for create and rename files
7575
// e.g. 'txt,html,css,js'
@@ -3342,9 +3342,6 @@ function fm_show_nav_path($path)
33423342
}
33433343
?>
33443344
<nav class="navbar navbar-expand-lg <?php echo $getTheme; ?> mb-4 main-nav <?php echo $isStickyNavBar ?>">
3345-
<form action="../../views.php" method="POST">
3346-
<button style="margin-left:80px;" class="navbar-brand" type="submit" name="view" value="Overview">BirdNET-Pi Homepage</button>
3347-
<button class="navbar-brand" type="submit" name="view" value="Tools"><?php echo lng('Tools'); ?></button></form>
33483345
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
33493346
<span class="navbar-toggler-icon"></span>
33503347
</button>
@@ -4013,7 +4010,6 @@ function lng($txt) {
40134010

40144011
// English Language
40154012
$tr['en']['AppName'] = 'BirdNET-Pi Files'; $tr['en']['AppTitle'] = 'BirdNET-Pi Files';
4016-
$tr['en']['Tools'] = 'Tools'; $tr['en']['WebTerminal'] = 'Web Terminal';
40174013
$tr['en']['Login'] = 'Sign in'; $tr['en']['Username'] = 'Username';
40184014
$tr['en']['Password'] = 'Password'; $tr['en']['Logout'] = 'Sign Out';
40194015
$tr['en']['Move'] = 'Move'; $tr['en']['Copy'] = 'Copy';

0 commit comments

Comments
 (0)