CreateNewItem
Original: “Neue Datei erstellen”
Corrected: “Neues Element erstellen”
UploadingFiles
Original: “Datei hochladen”
Corrected: “Dateien hochladen”
Invalid file or folder name
Original: “Ungältiger Datei- oder Ordnername”
Corrected: “Ungültiger Datei- oder Ordnername”
Operations with archives are not available
Original: “Archiv-Funktionen nicht verfägbar”
Corrected: “Archiv-Funktionen nicht verfügbar”
running envirement: Android 4.4+PHP 7.4.3+ KSWEB
http://192.168.1.2/tinyfilemanager.php, afer login,the main page could not be showed entirely,it just shows half of navigation bar.
that's becuase of
there are two same lines of codes which cause the problem. they are
$owner = posix_getpwuid(fileowner($path . '/' . $f));
when the funciton fileowner($path . '/' . $f) return 0 and run the function posix_getpwuid(....), it trig an error.
please check the codes in line 2156--2168 and 2221--2233
suggest replace these two parts with followed codes:
$owner = array('name' => '?');
$group = array('name' => '?');
if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) {
try{
$owner_id = fileowner($path . '/' . $f);
if($owner_id != 0) {
$owner_info = posix_getpwuid($owner_id);
if ($owner_info) {
$owner = $owner_info;
}
}
$group_id = filegroup($path . '/' . $f);
$group_info = posix_getgrgid($group_id);
if ($group_info) {
$group = $group_info;
}
} catch(Exception $e){
error_log("exception:" . $e->getMessage());
}
}
* Added Additional Delete Link in File Viewer View
I found myself clicking into specific files to see them larger, then wanting to delete them, only to find I had to go back to another screen to delete them.
* Changed Reference to Invalid Variable
* Update tinyfilemanager.php
Now it will show the filename as browser tab title so that user can easily identify which file is opened on which tab.
* Update tinyfilemanager.php
remove lines 3722 and 3734 and add this directly in 3733 as per the suggestion of @ner00
* Update tinyfilemanager.php
extra trailing space removed
micro-optimization: when doing large file copies, this will reduce the number of feof() calls. for example, if copying 100MB, this will save approximately 25,599 feof() calls (255 feof() calls for every MB) - also feofs() may do an actual syscall, and syscalls are relatively expensive/time-consuming.
highlightjs_style variable is being used before config.php gets parsed, so preview style is always vs. This PR fixes that by moving config.php parsing to be before external resource calls.
When logged in it takes to the website's main URL. For example, if I have tfm in www.example.com/tfm/index.php (index.php is tfm) then after logging in it redirects to www.example.com and then have to press back on the browser then it takes to www.example.com/tfm/index.php