mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-20 06:26:40 +02:00
Compare commits
5 commits
fd3386b2c2
...
f59b842a1b
Author | SHA1 | Date | |
---|---|---|---|
f59b842a1b | |||
a1ae0fa729 | |||
ca4b1b1743 | |||
4ca48dd5ee | |||
fa187f48b1 |
|
@ -958,7 +958,7 @@ if (!empty($_FILES) && !FM_READONLY) {
|
|||
|
||||
$targetPath = $path . $ds;
|
||||
if ( is_writable($targetPath) ) {
|
||||
$fullPath = $path . '/' . basename($fullPathInput);
|
||||
$fullPath = $path . '/' . $fullPathInput;
|
||||
$folder = substr($fullPath, 0, strrpos($fullPath, "/"));
|
||||
|
||||
if (!is_dir($folder)) {
|
||||
|
@ -1647,7 +1647,7 @@ if (isset($_GET['view'])) {
|
|||
$file = $_GET['view'];
|
||||
$file = fm_clean_path($file, false);
|
||||
$file = str_replace('/', '', $file);
|
||||
if ($file == '' || !is_file($path . '/' . $file) || in_array($file, $GLOBALS['exclude_items'])) {
|
||||
if ($file == '' || !is_file($path . '/' . $file) || !fm_is_exclude_items($file)) {
|
||||
fm_set_msg(lng('File not found'), 'error');
|
||||
$FM_PATH=FM_PATH; fm_redirect(FM_SELF_URL . '?p=' . urlencode($FM_PATH));
|
||||
}
|
||||
|
@ -1846,7 +1846,7 @@ if (isset($_GET['edit']) && !FM_READONLY) {
|
|||
$file = $_GET['edit'];
|
||||
$file = fm_clean_path($file, false);
|
||||
$file = str_replace('/', '', $file);
|
||||
if ($file == '' || !is_file($path . '/' . $file) || in_array($file, $GLOBALS['exclude_items'])) {
|
||||
if ($file == '' || !is_file($path . '/' . $file) || !fm_is_exclude_items($file)) {
|
||||
fm_set_msg(lng('File not found'), 'error');
|
||||
$FM_PATH=FM_PATH; fm_redirect(FM_SELF_URL . '?p=' . urlencode($FM_PATH));
|
||||
}
|
||||
|
@ -3646,6 +3646,7 @@ global $lang, $root_url, $favicon_path;
|
|||
<meta name="description" content="Web based File Manager in PHP, Manage your files efficiently and easily with Tiny File Manager">
|
||||
<meta name="author" content="CCP Programmers">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="darkreader-lock"/>
|
||||
<meta name="googlebot" content="noindex">
|
||||
<?php if($favicon_path) { echo '<link rel="icon" href="'.fm_enc($favicon_path).'" type="image/png">'; } ?>
|
||||
<title><?php echo fm_enc(APP_TITLE) ?></title>
|
||||
|
@ -3720,6 +3721,7 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
|||
<meta name="author" content="CCP Programmers">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="googlebot" content="noindex">
|
||||
<meta name="darkreader-lock"/>
|
||||
<?php if($favicon_path) { echo '<link rel="icon" href="'.fm_enc($favicon_path).'" type="image/png">'; } ?>
|
||||
<title><?php echo fm_enc(APP_TITLE) ?></title>
|
||||
<?php print_external('pre-jsdelivr'); ?>
|
||||
|
|
Loading…
Reference in a new issue