mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 00:42:19 +02:00
Merge 3841f9edff
into 8158333d93
This commit is contained in:
commit
eaf22d9846
|
@ -20,14 +20,27 @@ $use_auth = true;
|
||||||
// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...)
|
// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...)
|
||||||
// Generate secure password hash - https://tinyfilemanager.github.io/docs/pwd.html
|
// Generate secure password hash - https://tinyfilemanager.github.io/docs/pwd.html
|
||||||
$auth_users = array(
|
$auth_users = array(
|
||||||
'admin' => '$2y$10$/K.hjNr84lLNDt8fTXjoI.DBp6PpeyoJ.mGwrrLuCZfAwfSAGqhOW', //admin@123
|
'recox' => '$2y$10$9WBeaacPPHQ9hrCErO.0p.zZFANR2hAaunMaivBSKWyFMzNRfBc9i',
|
||||||
'user' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO' //12345
|
'jopi' => '$2y$10$Fg6Dz8oH9fPoZ2jJan5tZuv6Z4Kp7avtQ9bDfrdRntXtPeiMAZyGO',
|
||||||
|
'wyrox' => '$2y$10$hGwYApvN9TO8DHCnqM5rXeXeEJDMm5MD5Xa9l9T4SA47anEobs0By',
|
||||||
|
'simp' => '$2y$10$gIHw2ybKo6mvsZ8Z/k3FzuYvNIV0DnOzihjbFlqgFEFpIl3dh4t4u',
|
||||||
|
'haracin' => '$2y$10$1N9vyknVQcKlPZDXKjhUK.h7srnK.cjfgVj5O6Nrnt10yKrg5jqYK',
|
||||||
|
'vancleff' => '$2y$10$pNkLwl4FWEeOmw2s5AwVKe7CpB3mfZTXM5TxMF6tJx8xGEEKbCEWi',
|
||||||
|
'emancu' => '$2y$10$DZcuVNB.klAFWo4N0AbJe.xtphdrI2hp1PJYOywcMC.oBSDcnoL.6',
|
||||||
|
'ronin' => '$2y$10$zvyW4i.058EtyqQXVOLRROu3f1sEfyi1/G8F71sSQu8paMkgaI5GS',
|
||||||
|
'reyarb' => '$2y$10$4X3gqurnA7KmcybjbqWAOu31Ntg6mjB8q669IP/waEGtegISwpm3G',
|
||||||
|
'MartinTrionfetti' => '$2y$10$GeoDYYo43edC9FmN2ZmygePg2J2l7YLYOGl9JBZztxdI/W5ROpPKu',
|
||||||
|
'ronin' => '$2y$10$C0JNU8RK8GDp1OLOyFWuLOLa4B7/nqcYIhVf0rNyGcnGD7uQNE1SC'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//set application theme
|
||||||
|
//options - 'light' and 'dark'
|
||||||
|
$theme = 'dark';
|
||||||
|
|
||||||
// Readonly users
|
// Readonly users
|
||||||
// e.g. array('users', 'guest', ...)
|
// e.g. array('users', 'guest', ...)
|
||||||
$readonly_users = array(
|
$readonly_users = array(
|
||||||
'user'
|
'MartinTrionfetti', 'ronin', 'vancleff', 'emancu', 'jopi', 'wyrox', 'simp', 'haracin', 'reyarb', 'emancu'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Enable highlight.js (https://highlightjs.org/) on view's page
|
// Enable highlight.js (https://highlightjs.org/) on view's page
|
|
@ -12,7 +12,7 @@ $CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":
|
||||||
define('VERSION', '2.4.6');
|
define('VERSION', '2.4.6');
|
||||||
|
|
||||||
//Application Title
|
//Application Title
|
||||||
define('APP_TITLE', 'Tiny File Manager');
|
define('APP_TITLE', 'AO20 LOGS');
|
||||||
|
|
||||||
// --- EDIT BELOW CONFIGURATION CAREFULLY ---
|
// --- EDIT BELOW CONFIGURATION CAREFULLY ---
|
||||||
|
|
||||||
|
@ -1691,6 +1691,7 @@ if (isset($_GET['view'])) {
|
||||||
'phtml' => 'php',
|
'phtml' => 'php',
|
||||||
'lock' => 'json',
|
'lock' => 'json',
|
||||||
'svg' => 'xml',
|
'svg' => 'xml',
|
||||||
|
'log' => 'php',
|
||||||
);
|
);
|
||||||
$hljs_class = isset($hljs_classes[$ext]) ? 'lang-' . $hljs_classes[$ext] : 'lang-' . $ext;
|
$hljs_class = isset($hljs_classes[$ext]) ? 'lang-' . $hljs_classes[$ext] : 'lang-' . $ext;
|
||||||
if (empty($ext) || in_array(strtolower($file), fm_get_text_names()) || preg_match('#\.min\.(css|js)$#i', $file)) {
|
if (empty($ext) || in_array(strtolower($file), fm_get_text_names()) || preg_match('#\.min\.(css|js)$#i', $file)) {
|
||||||
|
@ -3345,6 +3346,10 @@ function fm_show_nav_path($path)
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<a href="#" class="btn btn-outline-primary" onclick="update_logs_test();"><i class="fa fa-file-text-o"></i> Actualizar Logs Test</a>
|
||||||
|
<a href="#" class="btn btn-outline-primary" onclick="update_logs_produccion();"><i class="fa fa-file-text-o"></i> Actualizar Logs Prod</a>
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -3788,6 +3793,27 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
||||||
function rename(e, t) {var n = prompt("New name", t);null !== n && "" !== n && n != t && (window.location.search = "p=" + encodeURIComponent(e) + "&ren=" + encodeURIComponent(t) + "&to=" + encodeURIComponent(n))}
|
function rename(e, t) {var n = prompt("New name", t);null !== n && "" !== n && n != t && (window.location.search = "p=" + encodeURIComponent(e) + "&ren=" + encodeURIComponent(t) + "&to=" + encodeURIComponent(n))}
|
||||||
function change_checkboxes(e, t) { for (var n = e.length - 1; n >= 0; n--) e[n].checked = "boolean" == typeof t ? t : !e[n].checked }
|
function change_checkboxes(e, t) { for (var n = e.length - 1; n >= 0; n--) e[n].checked = "boolean" == typeof t ? t : !e[n].checked }
|
||||||
function get_checkboxes() { for (var e = document.getElementsByName("file[]"), t = [], n = e.length - 1; n >= 0; n--) (e[n].type = "checkbox") && t.push(e[n]); return t }
|
function get_checkboxes() { for (var e = document.getElementsByName("file[]"), t = [], n = e.length - 1; n >= 0; n--) (e[n].type = "checkbox") && t.push(e[n]); return t }
|
||||||
|
|
||||||
|
function update_logs_test() {
|
||||||
|
var actualizarTest = confirm("Actualizar logs de Test?");
|
||||||
|
if (actualizarTest) {
|
||||||
|
var myWindow = window.open("http://ao20-testing-secreto.duckdns.org:9090/job/re20-server-test-upload-logs-to-ftp/build?token=actualizarlogsparavererrores&cause=Iniciado+Por+<?php echo $_SESSION[FM_SESSION_ID]['logged']?>", "Produccion", "width=200, height=100");
|
||||||
|
setTimeout(function(){ myWindow.close() }, 4000);
|
||||||
|
alert("Se estan actualizando los logs de test. Por favor espera unos minutos para que se terminen de subir. Podes ver el proceso desde Jenkins o desde el chat de discord en #dev-logs");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function update_logs_produccion() {
|
||||||
|
var actualizarTest = confirm("Actualizar logs de Produccion?");
|
||||||
|
if (actualizarTest) {
|
||||||
|
var myWindow = window.open("http://ao20-testing-secreto.duckdns.org:9090/job/re20-server-produccion-upload-logs-to-ftp/build?token=actualizarlogsparavererrores&cause=Iniciado+Por+<?php echo $_SESSION[FM_SESSION_ID]['logged']?>", "Produccion", "width=200, height=100");
|
||||||
|
setTimeout(function(){ myWindow.close() }, 4000);
|
||||||
|
alert("Se estan actualizando los logs de produccion. Por favor espera unos minutos para que se terminen de subir. Podes ver el proceso desde Jenkins o desde el chat de discord en #dev-logs");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function select_all() { change_checkboxes(get_checkboxes(), !0) }
|
function select_all() { change_checkboxes(get_checkboxes(), !0) }
|
||||||
function unselect_all() { change_checkboxes(get_checkboxes(), !1) }
|
function unselect_all() { change_checkboxes(get_checkboxes(), !1) }
|
||||||
function invert_all() { change_checkboxes(get_checkboxes()) }
|
function invert_all() { change_checkboxes(get_checkboxes()) }
|
Loading…
Reference in a new issue