mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2026-03-14 20:55:50 +01:00
Add files via upload
This commit is contained in:
parent
c049ba96c8
commit
831e1e700d
1 changed files with 16 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
//Default Configuration
|
||||
$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":false,"theme":"light"}';
|
||||
$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":false,"theme":"dark"}';
|
||||
|
||||
/**
|
||||
* H3K ~ Tiny File Manager V2.6
|
||||
|
|
@ -26,7 +26,7 @@ $use_auth = true;
|
|||
// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...)
|
||||
// Generate secure password hash - https://tinyfilemanager.github.io/docs/pwd.html
|
||||
$auth_users = array(
|
||||
'admin' => '$2y$10$/K.hjNr84lLNDt8fTXjoI.DBp6PpeyoJ.mGwrrLuCZfAwfSAGqhOW', //admin@123
|
||||
'ba-r' => '$2y$10$/K.hjNr84lLNDt8fTXjoI.DBp6PpeyoJ.mGwrrLuCZfAwfSAGqhOW', //admin@123
|
||||
'user' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' //12345
|
||||
);
|
||||
|
||||
|
|
@ -1988,6 +1988,20 @@ if (isset($_GET['edit']) && !FM_READONLY) {
|
|||
<div class="btn-group">
|
||||
<a title=" <?php echo lng('Back') ?>" class="btn btn-sm btn-outline-primary" href="?p=<?php echo urlencode(trim(FM_PATH)) ?>&view=<?php echo urlencode($file) ?>"><i class="fa fa-reply-all"></i> <?php echo lng('Back') ?></a>
|
||||
<a title="<?php echo lng('BackUp') ?>" class="btn btn-sm btn-outline-primary" href="javascript:void(0);" onclick="backup('<?php echo urlencode(trim(FM_PATH)) ?>','<?php echo urlencode($file) ?>')"><i class="fa fa-database"></i> <?php echo lng('BackUp') ?></a>
|
||||
<a title="Open" class="btn btn-sm btn-outline-primary" href="<?php echo fm_enc($file_url) ?>" target="_blank"><i class="fa fa-external-link-square"></i> <?php echo lng('Open') ?></a>
|
||||
<a title="Download" class="btn btn-sm btn-outline-primary" onclick="
|
||||
event.preventDefault();
|
||||
var f = document.createElement('form');
|
||||
f.method = 'POST';
|
||||
f.action = '?p=<?php echo urlencode(FM_PATH) ?>&dl=<?php echo urlencode($file) ?>';
|
||||
var i = document.createElement('input');
|
||||
i.type = 'hidden';
|
||||
i.name = 'token';
|
||||
i.value = '<?php echo $_SESSION['token']; ?>';
|
||||
f.appendChild(i);
|
||||
document.body.appendChild(f);
|
||||
f.submit();" href="#"><i class="fa fa-download"></i> <?php echo lng('Download') ?></a>
|
||||
|
||||
<?php if ($is_text) { ?>
|
||||
<?php if ($isNormalEditor) { ?>
|
||||
<a title="Advanced" class="btn btn-sm btn-outline-primary" href="?p=<?php echo urlencode(trim(FM_PATH)) ?>&edit=<?php echo urlencode($file) ?>&env=ace"><i class="fa fa-pencil-square-o"></i> <?php echo lng('AdvancedEditor') ?></a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue