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

Connect to own Auth System
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1881
Page 1 of 1

Author:  Broady [ 3. Mar 2009, 13:53 ]
Post subject:  Connect to own Auth System

Dear all,
I've programmed an own login system in my website. Now I wan't to use the Flash Uploader, each users should have an own directory. I saw that it isn't possible to refer the folder-path to the flash object because of security things.

So my last hope is the user auth, I upgraded the user array in the file ".htusers.php". Then I changed the login method from "true" into "auth." Everything works fine, BUT! I won't have the login box in the flash object.

What I wan't is: Refering the login-data to the flash object and autologin into the flash uploader.

Is that currently possible?

best regards, Broady

Author:  TinyWebGallery [ 3. Mar 2009, 14:28 ]
Post subject: 

Sure.

I do this in JFU and TWG all the time ;).

You can simply set e.g. the folder to the session and get this in the tfu_config.php. If you want a working example you can look into JFU.
In JFU I have a session_fix function which saves the session and opens it again. This is useful if the flash tries to read the config before the session of your including page is written to the disk. Sometimes this is a problem.

about your security system. Read

http://www.tinywebgallery.com/en/tfu/web_faq.php#13

- Michael

Author:  Broady [ 3. Mar 2009, 15:48 ]
Post subject: 

thanks for the Tip. :) works fine!
My other Idea was to handle that about a htaccess file. ;) thanks a lot.

If the trial works fine with my scripts, I'll buy the full version.

Author:  TinyWebGallery [ 3. Mar 2009, 16:08 ]
Post subject: 

htaccess is a very bad idea because Firefox does not handle cookies very well and then you would get a additional login ... There is a howto about this problem as well.

Using it like described in the howto is reliable, user friendly (only one login) and save.

- Michael

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