Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Can't create folders but delete
https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=1320
Page 1 of 1

Author:  michaelsurfarea [ 4. Dec 2007, 15:46 ]
Post subject:  Can't create folders but delete

I have the problem that when i start the jfu (back- and frontend)
the status info is "Sie haben nicht genug Rechte um Ordner zu erzeugen. Diese Funktion ist deaktiviert." (german / You have not enough rights to create folders. This function is deaktivated).
it nothing changes to change the rights to 777 (normal it's enough on my server to user 755).
the problem is that i can't create folders.
but it's no problem to rename or delete folders
or to upload, download, rename, delete files.

in the setting's of jfu i set "Enable folder deletion" defenetly to yes.

thx for help

System:
joomla 1.0.13
save_mode on (but no problems with, no require for save_mode patch or whatever)
CB 1.1

Author:  TinyWebGallery [ 4. Dec 2007, 17:47 ]
Post subject: 

when safe mode on I think I disable creation of folders by default.

The problem is not that I can create folders. This would work. But with safe mode on you would not be able to upload something into this folder.

I can show you how to disable the detection and you can try if your system works differently ;).

/Michael

Author:  michaelsurfarea [ 5. Dec 2007, 23:01 ]
Post subject:  Answer

Quote:
I can show you how to disable the detection and you can try if your system works differently


ok please do it.

(i wrote you a email but i see no answeremail)

mfg Michael

Author:  TinyWebGallery [ 5. Dec 2007, 23:21 ]
Post subject: 

I already answered your email.

this was the content:

open tfu_readDir.php in the tfu folder.
search for dir_create - then you see couple of stati.

if you set dir_create=true dirs can be created.

Please let me now if you can upload files to the dir's you create.
Would be interesting if my detection can be improved.

/Michael

Author:  michaelsurfarea [ 6. Dec 2007, 00:48 ]
Post subject: 

(i think my spam filter blocks your mail sorry.)

thx
i change in tfu_readDir.php
>if (is_writeable($dir)){
> if ($sm_prob){ $status .= "&dir_create=subdir"; }
to
>if (is_writeable($dir)){
> if ($sm_prob){ $status .= "&dir_create=true"; }

everthing works fine:
- creation folder
- upload files into the folder with jfu and ftp
- and folder killing in jfu

thx your fast answers

mfg Michael

Author:  TinyWebGallery [ 6. Dec 2007, 09:48 ]
Post subject: 

ok - good point . you installed the components with joomla.

Then the save mode detection can be extended because it's like using my safe mode installer and this means that the php files already have the right owner. I'll add this to the next version of jfu.

/Michael

Author:  michaelsurfarea [ 6. Dec 2007, 10:20 ]
Post subject:  -

When i'm defibne a profile in the config for a group
and set the user->subdir,
there thems to be an security problem.

When i'm allow creating folders.
you can manipulate the jfu by using a folder name like
../test or ../../test
to create folders in an higher level as i define it in the jfu profile config.

mfg Michael

Author:  TinyWebGallery [ 6. Dec 2007, 10:35 ]
Post subject: 

thanks - i'll restrict this in the next version.

/Michael

Author:  michaelsurfarea [ 6. Dec 2007, 13:09 ]
Post subject: 

To fix the folder problem i replace in
admin..\com..\com_joomla_...\tfu\tfu_readDir.php
at Line 34,35
>if (isset($_GET['createdir'])) { // creates a directory
> $newdir = $_GET['newdir'];
with
>if (isset($_GET['createdir'])) { // creates a directory
> $newdir = str_replace("/", "", str_replace("\\", "", $_GET['newdir']));

mfg Michael

Author:  TinyWebGallery [ 6. Dec 2007, 13:34 ]
Post subject: 

do this fix in the tfu_file.php at the rename too.

if ($action == "rename") { // rename a file
...

because there it then would be possible to move a file to a different dir.

I already added this to my local build.

/Michael

Author:  michaelsurfarea [ 6. Dec 2007, 13:42 ]
Post subject: 

thx. now i fix it too.

ok next question :-)

when i selected files
and then the delete button
ger= Status. "NaN Dateien konnten nicht gelöscht werden"
eng~ Status. "NaN files couldn't be deleted"

is it a problem or is it not supported by jfu

mfg Michael

Author:  TinyWebGallery [ 6. Dec 2007, 13:50 ]
Post subject: 

This is a bug already fixed - this happend when I moved the languages to external xml files.

But I have to make TFU 2.7 final first before I migrate this to JFU.

And I wait for Joomla 1.5 final because JFU 2.7 will be available for 1.5 and 1.1.x

/Michael

Author:  michaelsurfarea [ 6. Dec 2007, 13:53 ]
Post subject: 

thx for your fast answers.

is there a way how can i fix this problem myself

mfg Michael

Author:  TinyWebGallery [ 6. Dec 2007, 14:01 ]
Post subject: 

no - this bug is inside the flash.

you can't even try the 2.6 version of the flash because this needs different php files.
You could use the 2.6 (or the 2.7 version) inside joomla but then only inside a wrapper without the backend to configure everything.

/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/