Categories > TBS next version >

mod_rewrite over TBS (auto insert SessionID to Links)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: PsiTrax
Date: 2005-02-21
Time: 17:51

mod_rewrite over TBS (auto insert SessionID to Links)

TBS should be able to rewrite all Links (<a> and <form action>) and put the current session ID into it.
By: Skrol29
Date: 2005-02-22
Time: 02:31

Re: mod_rewrite over TBS (auto insert SessionID to Links)

But it can be donne with one Php variable on the template.
You can also do it with one line of Php code by replacing all ".php" items by ".php?id=xxxxx".
By: PsiTrax
Date: 2005-02-22
Time: 10:07

Re: mod_rewrite over TBS (auto insert SessionID to Links)

but then i have to change all my older template files.

and there are some things to mind
there could be already links like bla.php?vars...

if a formular has the method=post it the SessioID has to placed in the action.
if the forumlar has the method=get  its necessary to add a hidden field

i think i will write a method for tbs
By: RwD
Date: 2005-02-28
Time: 13:40

Re: mod_rewrite over TBS (auto insert SessionID to Links)

You can write a regular expression search and replace function to find all the .php references you need to change. But messing with the forms is a lot more tricky, and it is slow as well. Instead I would recommend to just change the older templates and not create new problems!!