mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-19 22:25:20 +02:00
Fix #32, The date formatting issue
This commit is contained in:
parent
f35f503924
commit
dd63df8e63
|
@ -31,7 +31,7 @@ To enable/disable authentication set $use_auth to true or false.
|
||||||
- `FM_HIGHLIGHTJS_STYLE` - default is `'vs'`
|
- `FM_HIGHLIGHTJS_STYLE` - default is `'vs'`
|
||||||
- `FM_DATETIME_FORMAT` - default is `'d.m.y H:i'`
|
- `FM_DATETIME_FORMAT` - default is `'d.m.y H:i'`
|
||||||
- `FM_EXTENSION` - default is `""` //upload files extensions
|
- `FM_EXTENSION` - default is `""` //upload files extensions
|
||||||
- `FM_TREEVIEW` - default is `true`
|
- `FM_TREEVIEW` - default is `false`
|
||||||
|
|
||||||
|
|
||||||
### :loudspeaker: Features
|
### :loudspeaker: Features
|
||||||
|
|
|
@ -64,7 +64,7 @@ $datetime_format = 'd.m.y H:i';
|
||||||
$upload_extensions = ''; // 'gif,png,jpg'
|
$upload_extensions = ''; // 'gif,png,jpg'
|
||||||
|
|
||||||
// show or hide the left side tree view
|
// show or hide the left side tree view
|
||||||
$show_tree_view = true;
|
$show_tree_view = false;
|
||||||
|
|
||||||
//Array of folders excluded from listing
|
//Array of folders excluded from listing
|
||||||
$GLOBALS['exclude_folders'] = array(
|
$GLOBALS['exclude_folders'] = array(
|
||||||
|
@ -1185,7 +1185,7 @@ foreach ($folders as $f) {
|
||||||
foreach ($files as $f) {
|
foreach ($files as $f) {
|
||||||
$is_link = is_link($path . '/' . $f);
|
$is_link = is_link($path . '/' . $f);
|
||||||
$img = $is_link ? 'fa fa-file-text-o' : fm_get_file_icon_class($path . '/' . $f);
|
$img = $is_link ? 'fa fa-file-text-o' : fm_get_file_icon_class($path . '/' . $f);
|
||||||
$modif = date("d.m.y H:i", filemtime($path . '/' . $f));
|
$modif = date(FM_DATETIME_FORMAT, filemtime($path . '/' . $f));
|
||||||
$filesize_raw = filesize($path . '/' . $f);
|
$filesize_raw = filesize($path . '/' . $f);
|
||||||
$filesize = fm_get_filesize($filesize_raw);
|
$filesize = fm_get_filesize($filesize_raw);
|
||||||
$filelink = '?p=' . urlencode(FM_PATH) . '&view=' . urlencode($f);
|
$filelink = '?p=' . urlencode(FM_PATH) . '&view=' . urlencode($f);
|
||||||
|
|
Loading…
Reference in a new issue