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

passing a param to tfu_config
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1390
Page 1 of 1

Author:  archieboy [ 19. Feb 2008, 18:50 ]
Post subject:  passing a param to tfu_config

would this work?

<param name="movie" value="twg_flash_uploader.swf?session_id=d31" />

if so, how do I grab that session id in the tfu_config.pgp file?

Author:  TinyWebGallery [ 19. Feb 2008, 19:18 ]
Post subject: 

This is automatically done!

But TFU does internally handle this as TFUSESSID because of some servers that do not allow session id's in the URL.

You see this at each file in TFU before the session is started the session id is set.

/Michael

Author:  archieboy [ 19. Feb 2008, 19:29 ]
Post subject: 

Let me rephrase my question.. I have a folder name that I need to pass to the tfu_config file.

1) can I pass it through the SWF as a variable?
2) if so, how can I then access it in the tfu_config.php

if #1 = no, any suggestions as to how I can pass a variable to the tfu_config?

Author:  TinyWebGallery [ 19. Feb 2008, 19:49 ]
Post subject: 

#1 no - simply because of security reasons! Because changing an request is pretty simple and this would make the whole system unsave.

Simply set the folder to the session and then access it in TFU again.

I do this in TWG and JFU all the time. In JFU actually all settings are read from the joomla database - set there to the session and then read by TFU again.

After session_start(); all variables are available again.

A good thing is to pass the current session_id to the flash. But this os actually only needed on a couple of servers.

Simply start a session in the page where you include the swf - set the parameter and read it again in the tfu_config.

/Michael

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