mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-15 20:25:16 +02:00
Added .MKV format support and minor ui changes, #163.
This commit is contained in:
parent
62e58a6597
commit
7a9730dfe1
|
@ -5,7 +5,7 @@
|
||||||
[![Live demo](https://img.shields.io/badge/Help-Docs-lightgrey.svg?style=flat-square)](https://tinyfilemanager.github.io/)
|
[![Live demo](https://img.shields.io/badge/Help-Docs-lightgrey.svg?style=flat-square)](https://tinyfilemanager.github.io/)
|
||||||
[![GitHub Release](https://img.shields.io/github/release/qubyte/rubidium.svg?style=flat-square)](https://github.com/prasathmani/tinyfilemanager/releases)
|
[![GitHub Release](https://img.shields.io/github/release/qubyte/rubidium.svg?style=flat-square)](https://github.com/prasathmani/tinyfilemanager/releases)
|
||||||
[![GitHub License](https://img.shields.io/github/license/prasathmani/tinyfilemanager.svg?style=flat-square)](https://github.com/prasathmani/tinyfilemanager/blob/master/LICENSE)
|
[![GitHub License](https://img.shields.io/github/license/prasathmani/tinyfilemanager.svg?style=flat-square)](https://github.com/prasathmani/tinyfilemanager/blob/master/LICENSE)
|
||||||
[![Beerpay](https://beerpay.io/prasathmani/tinyfilemanager/badge.svg?style=flat-square)](https://beerpay.io/prasathmani/tinyfilemanager)
|
[![Paypal](https://img.shields.io/badge/Donate-Paypal-lightgrey.svg?style=flat-square)](https://www.paypal.me/prasathmani)
|
||||||
> It is a simple, fast and small file manager with single php file. It is also a web code editor. It'll run either online or locally, on Linux, Windows or Mac based platforms. The only requirement is to have **PHP 5.5+** available.
|
> It is a simple, fast and small file manager with single php file. It is also a web code editor. It'll run either online or locally, on Linux, Windows or Mac based platforms. The only requirement is to have **PHP 5.5+** available.
|
||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
|
@ -1300,35 +1300,28 @@ if (isset($_GET['view'])) {
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&dl=<?php echo urlencode($file) ?>"><i
|
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&dl=<?php echo urlencode($file) ?>"><i class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></a></b>
|
||||||
class="fa fa-cloud-download"></i> <?php echo lng('Download') ?></a></b>
|
<b><a href="<?php echo fm_enc($file_url) ?>" target="_blank"><i class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a></b>
|
||||||
<b><a href="<?php echo fm_enc($file_url) ?>" target="_blank"><i
|
|
||||||
class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a></b>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// ZIP actions
|
// ZIP actions
|
||||||
if (!FM_READONLY && ($is_zip || $is_gzip) && $filenames !== false) {
|
if (!FM_READONLY && ($is_zip || $is_gzip) && $filenames !== false) {
|
||||||
$zip_name = pathinfo($file_path, PATHINFO_FILENAME);
|
$zip_name = pathinfo($file_path, PATHINFO_FILENAME);
|
||||||
?>
|
?>
|
||||||
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&unzip=<?php echo urlencode($file) ?>"><i
|
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&unzip=<?php echo urlencode($file) ?>"><i class="fa fa-check-circle"></i> <?php echo lng('UnZip') ?></a></b>
|
||||||
class="fa fa-check-circle"></i> <?php echo lng('UnZip') ?></a></b>
|
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&unzip=<?php echo urlencode($file) ?>&tofolder=1" title="UnZip to <?php echo fm_enc($zip_name) ?>"><i class="fa fa-check-circle"></i>
|
||||||
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>&unzip=<?php echo urlencode($file) ?>&tofolder=1"
|
|
||||||
title="UnZip to <?php echo fm_enc($zip_name) ?>"><i class="fa fa-check-circle"></i>
|
|
||||||
<?php echo lng('UnZipToFolder') ?></a></b>
|
<?php echo lng('UnZipToFolder') ?></a></b>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($is_text && !FM_READONLY) {
|
if ($is_text && !FM_READONLY) {
|
||||||
?>
|
?>
|
||||||
<b><a href="?p=<?php echo urlencode(trim(FM_PATH)) ?>&edit=<?php echo urlencode($file) ?>"
|
<b><a href="?p=<?php echo urlencode(trim(FM_PATH)) ?>&edit=<?php echo urlencode($file) ?>" class="edit-file"><i class="fa fa-pencil-square"></i> <?php echo lng('Edit') ?>
|
||||||
class="edit-file"><i class="fa fa-pencil-square"></i> <?php echo lng('Edit') ?>
|
|
||||||
</a></b>
|
</a></b>
|
||||||
<b><a href="?p=<?php echo urlencode(trim(FM_PATH)) ?>&edit=<?php echo urlencode($file) ?>&env=ace"
|
<b><a href="?p=<?php echo urlencode(trim(FM_PATH)) ?>&edit=<?php echo urlencode($file) ?>&env=ace"
|
||||||
class="edit-file"><i
|
class="edit-file"><i class="fa fa-pencil-square-o"></i> <?php echo lng('AdvancedEditor') ?>
|
||||||
class="fa fa-pencil-square-o"></i> <?php echo lng('AdvancedEditor') ?>
|
|
||||||
</a></b>
|
</a></b>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>"><i
|
<b><a href="?p=<?php echo urlencode(FM_PATH) ?>"><i class="fa fa-chevron-circle-left go-back"></i> <?php echo lng('Back') ?></a></b>
|
||||||
class="fa fa-chevron-circle-left go-back"></i> <?php echo lng('Back') ?></a></b>
|
|
||||||
</p>
|
</p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -1424,7 +1417,7 @@ if (isset($_GET['edit'])) {
|
||||||
$fd = fopen($file_path, "w");
|
$fd = fopen($file_path, "w");
|
||||||
@fwrite($fd, $writedata);
|
@fwrite($fd, $writedata);
|
||||||
fclose($fd);
|
fclose($fd);
|
||||||
fm_set_msg('File Saved Successfully', 'alert');
|
fm_set_msg('File Saved Successfully');
|
||||||
}
|
}
|
||||||
|
|
||||||
$ext = strtolower(pathinfo($file_path, PATHINFO_EXTENSION));
|
$ext = strtolower(pathinfo($file_path, PATHINFO_EXTENSION));
|
||||||
|
@ -1725,10 +1718,10 @@ $all_files_size = 0;
|
||||||
<tr><?php if (!FM_READONLY): ?>
|
<tr><?php if (!FM_READONLY): ?>
|
||||||
<td class="gray"></td><?php endif; ?>
|
<td class="gray"></td><?php endif; ?>
|
||||||
<td class="gray" colspan="<?php echo !FM_IS_WIN ? '6' : '4' ?>">
|
<td class="gray" colspan="<?php echo !FM_IS_WIN ? '6' : '4' ?>">
|
||||||
Full size: <span title="<?php printf('%s bytes', $all_files_size) ?>"><?php echo '<span class="badge badge-light">'.fm_get_filesize($all_files_size).'</span>' ?></span>,
|
Full size: <span title="<?php printf('%s bytes', $all_files_size) ?>"><?php echo '<span class="badge badge-light">'.fm_get_filesize($all_files_size).'</span>' ?></span>
|
||||||
<?php echo lng('File').': <span class="badge badge-light">'.$num_files.'</span>' ?>,
|
<?php echo lng('File').': <span class="badge badge-light">'.$num_files.'</span>' ?>
|
||||||
<?php echo lng('Folder').': <span class="badge badge-light">'.$num_folders.'</span>' ?>,
|
<?php echo lng('Folder').': <span class="badge badge-light">'.$num_folders.'</span>' ?>
|
||||||
<?php echo lng('MemoryUsed').': <span class="badge badge-light">'.fm_get_filesize(@memory_get_usage(true)).'</span>' ?>,
|
<?php echo lng('MemoryUsed').': <span class="badge badge-light">'.fm_get_filesize(@memory_get_usage(true)).'</span>' ?>
|
||||||
<?php echo lng('PartitionSize').': <span class="badge badge-light">'.fm_get_filesize(@disk_free_space($path)) .'</span> free of <span class="badge badge-light">'.fm_get_filesize(@disk_total_space($path)).'</span>'; ?>
|
<?php echo lng('PartitionSize').': <span class="badge badge-light">'.fm_get_filesize(@disk_free_space($path)) .'</span> free of <span class="badge badge-light">'.fm_get_filesize(@disk_total_space($path)).'</span>'; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -2401,7 +2394,7 @@ function fm_get_image_exts()
|
||||||
*/
|
*/
|
||||||
function fm_get_video_exts()
|
function fm_get_video_exts()
|
||||||
{
|
{
|
||||||
return array('webm', 'mp4', 'm4v', 'ogm', 'ogv', 'mov');
|
return array('webm', 'mp4', 'm4v', 'ogm', 'ogv', 'mov', 'mkv');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2969,6 +2962,8 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
||||||
padding: 0;
|
padding: 0;
|
||||||
min-width: 18px;
|
min-width: 18px;
|
||||||
}
|
}
|
||||||
|
.table-sm td, .table-sm th { padding: .4rem;}
|
||||||
|
.table-bordered td, .table-bordered th { border: 1px solid #f1f1f1;}
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none
|
display: none
|
||||||
}
|
}
|
||||||
|
@ -3172,7 +3167,7 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
||||||
.ekko-lightbox-nav-overlay a:hover{
|
.ekko-lightbox-nav-overlay a:hover{
|
||||||
color: #20507D;
|
color: #20507D;
|
||||||
}
|
}
|
||||||
|
#main-table span.badge{border-bottom:2px solid #f8f9fa}#main-table span.badge:nth-child(1){border-color:#df4227}#main-table span.badge:nth-child(2){border-color:#f8b600}#main-table span.badge:nth-child(3){border-color:#00bd60}#main-table span.badge:nth-child(4){border-color:#4581ff}#main-table span.badge:nth-child(5){border-color:#ac68fc}#main-table span.badge:nth-child(6){border-color:#45c3d2}
|
||||||
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) { .navbar-collapse .col-xs-6.text-right { padding: 0; } }
|
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) { .navbar-collapse .col-xs-6.text-right { padding: 0; } }
|
||||||
.btn.active.focus,.btn.active:focus,.btn.focus,.btn.focus:active,.btn:active:focus,.btn:focus{outline:0!important;outline-offset:0!important;background-image:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}
|
.btn.active.focus,.btn.active:focus,.btn.focus,.btn.focus:active,.btn:active:focus,.btn:focus{outline:0!important;outline-offset:0!important;background-image:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}
|
||||||
.lds-facebook{display:none;position:relative;width:64px;height:64px}.lds-facebook div,.lds-facebook.show-me{display:inline-block}.lds-facebook div{position:absolute;left:6px;width:13px;background:#007bff;animation:lds-facebook 1.2s cubic-bezier(0,.5,.5,1) infinite}.lds-facebook div:nth-child(1){left:6px;animation-delay:-.24s}.lds-facebook div:nth-child(2){left:26px;animation-delay:-.12s}.lds-facebook div:nth-child(3){left:45px;animation-delay:0}@keyframes lds-facebook{0%{top:6px;height:51px}100%,50%{top:19px;height:26px}}
|
.lds-facebook{display:none;position:relative;width:64px;height:64px}.lds-facebook div,.lds-facebook.show-me{display:inline-block}.lds-facebook div{position:absolute;left:6px;width:13px;background:#007bff;animation:lds-facebook 1.2s cubic-bezier(0,.5,.5,1) infinite}.lds-facebook div:nth-child(1){left:6px;animation-delay:-.24s}.lds-facebook div:nth-child(2){left:26px;animation-delay:-.12s}.lds-facebook div:nth-child(3){left:45px;animation-delay:0}@keyframes lds-facebook{0%{top:6px;height:51px}100%,50%{top:19px;height:26px}}
|
||||||
|
|
|
@ -295,13 +295,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Deutsche",
|
"name": "Deutsch",
|
||||||
"code": "de",
|
"code": "de",
|
||||||
"translation": {
|
"translation": {
|
||||||
"AppName": "Tiny File Manager",
|
"AppName": "Tiny File Manager",
|
||||||
"AppTitle": "Datei Manager",
|
"AppTitle": "Datei Manager",
|
||||||
"Login": "Einloggen",
|
"Login": "Einloggen",
|
||||||
"Username": "Benutername",
|
"Username": "Benutzername",
|
||||||
"Password": "Passwort",
|
"Password": "Passwort",
|
||||||
"Logout": "Ausloggen",
|
"Logout": "Ausloggen",
|
||||||
"Move": "Verschieben",
|
"Move": "Verschieben",
|
||||||
|
@ -312,26 +312,26 @@
|
||||||
"File": "Datei",
|
"File": "Datei",
|
||||||
"Back": "Zurück",
|
"Back": "Zurück",
|
||||||
"Size": "Größe",
|
"Size": "Größe",
|
||||||
"Perms": "Perms",
|
"Perms": "Berechtigungen",
|
||||||
"Modified": "Geändert",
|
"Modified": "Geändert",
|
||||||
"Owner": "Eigentümer",
|
"Owner": "Eigentümer",
|
||||||
"Search": "Suchen",
|
"Search": "Suchen",
|
||||||
"NewItem": "Neues Item",
|
"NewItem": "Neues Element",
|
||||||
"Folder": "Ordner",
|
"Folder": "Ordner",
|
||||||
"Delete": "Löschen",
|
"Delete": "Löschen",
|
||||||
"Rename": "Umbennen",
|
"Rename": "Umbenennen",
|
||||||
"CopyTo": "Kopieren nach",
|
"CopyTo": "Kopieren nach",
|
||||||
"DirectLink": "Direktlink",
|
"DirectLink": "Direktlink",
|
||||||
"UploadingFiles": "Datei hochladen",
|
"UploadingFiles": "Datei hochladen",
|
||||||
"ChangePermissions": "Berechtigungen ändern",
|
"ChangePermissions": "Berechtigungen ändern",
|
||||||
"Copying": "Kopieren",
|
"Copying": "Kopieren",
|
||||||
"CreateNewItem": "Neue Datei erstellen",
|
"CreateNewItem": "Neue Datei erstellen",
|
||||||
"Name": "Naam",
|
"Name": "Name",
|
||||||
"AdvancedEditor": "Fortgeschrittener Editor",
|
"AdvancedEditor": "Erweiterter Editor",
|
||||||
"RememberMe": "Eingeloggt bleiben",
|
"RememberMe": "Eingeloggt bleiben",
|
||||||
"Actions": "Aktionen",
|
"Actions": "Aktionen",
|
||||||
"Upload": "Hochladen",
|
"Upload": "Hochladen",
|
||||||
"Cancel": "Abbrechner",
|
"Cancel": "Abbrechen",
|
||||||
"InvertSelection": "Auswahl umkehren",
|
"InvertSelection": "Auswahl umkehren",
|
||||||
"DestinationFolder": "Zielordner",
|
"DestinationFolder": "Zielordner",
|
||||||
"ItemType": "Dateityp",
|
"ItemType": "Dateityp",
|
||||||
|
@ -339,14 +339,14 @@
|
||||||
"CreateNow": "Jetzt erstellen",
|
"CreateNow": "Jetzt erstellen",
|
||||||
"Download": "Download",
|
"Download": "Download",
|
||||||
"Open": "Öffnen",
|
"Open": "Öffnen",
|
||||||
"UnZip": "UnZip",
|
"UnZip": "Entpacken",
|
||||||
"UnZipToFolder": "UnZip im Ordner",
|
"UnZipToFolder": "Entpacken im Ordner",
|
||||||
"Edit": "Bearbeiten",
|
"Edit": "Bearbeiten",
|
||||||
"NormalEditor": "Normaler Editor",
|
"NormalEditor": "Standard Editor",
|
||||||
"BackUp": "Backup",
|
"BackUp": "Backup",
|
||||||
"SourceFolder": "Source ordner",
|
"SourceFolder": "Quellordner",
|
||||||
"Files": "Datein",
|
"Files": "Dateien",
|
||||||
"Change": "Verändern",
|
"Change": "Ändern",
|
||||||
"Settings": "Einstellungen",
|
"Settings": "Einstellungen",
|
||||||
"Language": "Sprache"
|
"Language": "Sprache"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue