Compare commits

...

3 commits

Author SHA1 Message Date
Ijor Tengab 951a1aafbe
Merge 6e7d9ff5f2 into a1ae0fa729 2024-05-08 16:50:27 +05:30
BANKA2017 a1ae0fa729
fix: #52 Does not respect directory tree while uploading a folder containing sub-folders (#1056) 2024-05-01 10:01:27 +05:30
IjorTengab 6e7d9ff5f2 Make home button configurable. 2023-02-18 09:24:11 +07:00

View file

@ -70,6 +70,9 @@ $root_url = '';
// $_SERVER['HTTP_HOST'].'/folder'
$http_host = $_SERVER['HTTP_HOST'];
// Home URL. Link for Home Button.
$home_url = '?p=';
// input encoding for iconv
$iconv_input_encoding = 'UTF-8';
@ -958,7 +961,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)) {
@ -3527,7 +3530,7 @@ class FM_Zipper_Tar
*/
function fm_show_nav_path($path)
{
global $lang, $sticky_navbar, $editFile;
global $lang, $sticky_navbar, $editFile, $home_url;
$isStickyNavBar = $sticky_navbar ? 'fixed-top' : '';
$getTheme = fm_get_theme();
$getTheme .= " navbar-light";
@ -3546,7 +3549,7 @@ function fm_show_nav_path($path)
<?php
$path = fm_clean_path($path);
$root_url = "<a href='?p='><i class='fa fa-home' aria-hidden='true' title='" . FM_ROOT_PATH . "'></i></a>";
$root_url = "<a href='".$home_url."'><i class='fa fa-home' aria-hidden='true' title='" . FM_ROOT_PATH . "'></i></a>";
$sep = '<i class="bread-crumb"> / </i>';
if ($path != '') {
$exploded = explode('/', $path);