Nick Fisher wrote: [...]
There are two quick and dirty ways of doing this that I can see. You want to go to the compose page right?
I want to be able to dynamically change the page I end up at using the POST/URL. The compose page is as good a place as any to start ;)
In redirect.php change:
$redirect_url = 'webmail.php'; to $redirect_url = 'webmail.php?right_frame=compose.php';
Frankly I was thinking something more along the lines of: $redirect_url = 'compose.php' So that *just* the compose page opens.... without the left hand menu frame.
That would work too.
Perhaps I could do something like this around line 137 of redirect.php....
sqGetGlobalVar('other_url', $other_url) if($other_url != '') ( $redirect_url = $other_url; ) else ( ... the normall $redirect_url setting code ... )
Then in all I have to do is POST to redirect.php with the 'login_username', 'secretkey' (password) and 'other_url'......? Though I'm not really sure that sqGetGlobalVar is the right function to use. To get the form var. I have *NO* idea what I'm doing in the SquirrelMail code :(
Looks like you are on the right track, which is what my intention was. Just to point you in the right direction. From looking at globals.php in the functions directory, it looks like sqGetGlobalVar() is the right function to use. It searches in $_SESSION, $_POST, $_GET,
* $_COOKIE, or $_SERVER. If you knew that you would only ever be using POST data, you could just access $_POST['other_url'] and bypass this function.
[...]
If you can code in perl, you you shouldn't have too much trouble with php.
Heh.... No php doesn't look all that bad and I've been meaning to get into it more. It's just *yet annother* set of syntax, core functions and methodoligy to learn.
Tell me about it.
Hope this helps,
It does indeed. You seem to be saying that what I want to do will require coding.... that's question one answered ;)
Now all I have to do is figure out the easist and most un-intrusive way of getting this done. Hopefully in some manner that the maintainers will be happy to roll into the next release so that I'm not forever patching new releases. If you can give me any pointers there it would be most handy!
Many thanks
Nick
No prob. Keep us posted.
-- Matt M.
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
