mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-15 20:16:45 +02:00
Compare commits
3 commits
59a2c4154a
...
bff60ed496
Author | SHA1 | Date | |
---|---|---|---|
bff60ed496 | |||
a1ae0fa729 | |||
92c2bbee0b |
|
@ -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)) {
|
||||
|
@ -3502,7 +3502,8 @@ class FM_Zipper_Tar
|
|||
|
||||
function save()
|
||||
{
|
||||
$fm_file = __FILE__;
|
||||
global $config_file;
|
||||
$fm_file = is_readable($config_file) ? $config_file : __FILE__;
|
||||
$var_name = '$CONFIG';
|
||||
$var_value = var_export(json_encode($this->data), true);
|
||||
$config_string = "<?php" . chr(13) . chr(10) . "//Default Configuration".chr(13) . chr(10)."$var_name = $var_value;" . chr(13) . chr(10);
|
||||
|
|
Loading…
Reference in a new issue