Hi Jonathan,
 
Just after a bit of help please. Um, well I tried the suggestion below, but can't work out how the $key is generated. You see, we have usernames and passwords within our intranet database. These match the usernames and passwords of our IMAP mailboxes. We have a button within the intranet which automatically logs us into to email by going straight to the "redirect.php" file. Now, we also have the Notify plugin on our homepage which tells us how many e-mails we have in our mailboxes. I have tried passing the username and password from our database to this page by putting in "session_start()" at the top of the page. If I echo the variables just after the session_start then they display to me fine, but if I move these echo lines to just after the 2 includes, then I get nothing as if something in one of the includes are replacing the 2 variables in my session?? Either that or they are being ignored. I took a look at line 84 in notify.php and I have found the code you are talking about but unable to use it to generate the $key which notify.php seems to require? SO, at the moment we have to login by clicking the e-mail button first which automatically logs us in, and then go back to the homepage to see notify.php plugin working. Hope you understand whats going on here.
 
Thanks in advance!
Kind regards,
 
Jason Lemm
 
[EMAIL PROTECTED]
 
----- Original Message -----
From: "Jonathan Angliss" <[EMAIL PROTECTED]>
To: "Adrian Jones" <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 9:36 PM
Subject: Re: [SM-USERS] Login

> Hello Adrian,
> On Thursday, November 21, 2002, Adrian Jones wrote...
>
> > We have the notify plugin on the homepage and a separaet icon for SM
> > itself, the icon passes the username and password from our intranet
> > login straight to redirect.php so the login page is not required
> > once logged into our screens.
>
> > The question comes before you have logged in to SM because the
> > notify screen won't work.
>
> > We want to know how the $key is generated so we can start the SM
> > session from our login without redirect.php opening SM.
>
> $key is an encrypted value.  Take a look at src/redirect.php starting
> about line 84.  The encryption routines can be seen in
> functions/strings.php
>
> The problem with setting the values yourself is you have to work on
> setting some values to the session for SquirrelMail as well, such as
> $onetimepad and $username for example.  If you just want to allow a
> small login box on your main page for logging into SquirrelMail, take
> a look at this quick solution:
>
>
http://article.gmane.org/gmane.mail.squirrelmail.user/4664
>
> I suggested this the other day, and tested it myself, the only draw
> back is that it always has java script disabled.  You could take a
> look at src/login.php on the java script code that sets that value and
> duplicate it.
>
> --
> Jonathan Angliss
> (
[EMAIL PROTECTED])
>
>
>

Reply via email to