I use round cube web mail.
I've managed to integrate it very well with my own private design PHP site.
I've been trying to work something out and found a way around it but i'd rather do it another way.
I asked the question on round cube forums and got blank stares!
Here it is;
Roundcube assigns a cookie on login, i've been unable to capture the $_SESSION variables outside of roundcube, even though the cookie remains set.
I would like the cookie to follow the user throughout the site. To improve roundcube I've added a google search box and this takes the user out of roundcube and back into the base site. I added a hidden input into the google form that captures the value of $SESSION['username'} and send it along with the google query to the base site.
1st way : (loophole) I can capture the $SESSION['username'] inside round cube and echo it to the sitelinks, which allows the user to remain(illusion) inside the site. This is the method I use now. Not so flexible, only links back to roundcube useing set cookie (vulnerable to abuse)
2nd way: Somehow modify the cookie roundcube sets to be accesible from the site root, bypassing need to echo sitelinks and allowing for great flexibility. BEST- I want this!
3rd way: capture $_SESSION variables in roundcube, echo to POST and reset new $_session @ root level w/ $_POST. ok but not great, need to know all variables in $_SESSION.
Sound complicated now that I reread it, well here goes.
See it here : http://www.baluchon.net/phpsearch/?lang=en
Use login link (top right)
username: phpsearch
password: login
You can use the loop hole to get back to the root site by searching with the google search AFTER login.
Thanks in advance
Alex
???
Last edited by firemail; 05-11-2008 at 09:58 PM..
Reason: Added link
|