mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 08:52:23 +02:00
Fix function name and add extensions for icons (#567)
* Set icons for more file extensions * Fix function name
This commit is contained in:
parent
f182e378e3
commit
e843adcf0b
|
@ -360,7 +360,7 @@ if ($use_auth && isset($_SESSION[FM_SESSION_ID]['logged'])) {
|
||||||
$root_path = rtrim($root_path, '\\/');
|
$root_path = rtrim($root_path, '\\/');
|
||||||
$root_path = str_replace('\\', '/', $root_path);
|
$root_path = str_replace('\\', '/', $root_path);
|
||||||
if (!@is_dir($root_path)) {
|
if (!@is_dir($root_path)) {
|
||||||
echo "<h1>".lang('Root path')." \"{$root_path}\" ".lang('not found!')." </h1>";
|
echo "<h1>".lng('Root path')." \"{$root_path}\" ".lng('not found!')." </h1>";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2683,6 +2683,7 @@ function fm_get_file_icon_class($path)
|
||||||
case 'cpp':
|
case 'cpp':
|
||||||
case 'cs':
|
case 'cs':
|
||||||
case 'py':
|
case 'py':
|
||||||
|
case 'rs':
|
||||||
case 'map':
|
case 'map':
|
||||||
case 'lock':
|
case 'lock':
|
||||||
case 'dtd':
|
case 'dtd':
|
||||||
|
@ -2701,11 +2702,13 @@ function fm_get_file_icon_class($path)
|
||||||
case 'scss':
|
case 'scss':
|
||||||
$img = 'fa fa-css3';
|
$img = 'fa fa-css3';
|
||||||
break;
|
break;
|
||||||
|
case 'bz2':
|
||||||
case 'zip':
|
case 'zip':
|
||||||
case 'rar':
|
case 'rar':
|
||||||
case 'gz':
|
case 'gz':
|
||||||
case 'tar':
|
case 'tar':
|
||||||
case '7z':
|
case '7z':
|
||||||
|
case 'xz':
|
||||||
$img = 'fa fa-file-archive-o';
|
$img = 'fa fa-file-archive-o';
|
||||||
break;
|
break;
|
||||||
case 'php':
|
case 'php':
|
||||||
|
@ -2743,6 +2746,7 @@ function fm_get_file_icon_class($path)
|
||||||
case 'm3u8':
|
case 'm3u8':
|
||||||
case 'pls':
|
case 'pls':
|
||||||
case 'cue':
|
case 'cue':
|
||||||
|
case 'xspf':
|
||||||
$img = 'fa fa-headphones';
|
$img = 'fa fa-headphones';
|
||||||
break;
|
break;
|
||||||
case 'avi':
|
case 'avi':
|
||||||
|
@ -2774,6 +2778,7 @@ function fm_get_file_icon_class($path)
|
||||||
$img = 'fa fa-file-text-o';
|
$img = 'fa fa-file-text-o';
|
||||||
break;
|
break;
|
||||||
case 'bak':
|
case 'bak':
|
||||||
|
case 'swp':
|
||||||
$img = 'fa fa-clipboard';
|
$img = 'fa fa-clipboard';
|
||||||
break;
|
break;
|
||||||
case 'doc':
|
case 'doc':
|
||||||
|
|
Loading…
Reference in a new issue