[imp] alternate perspective

Atif Ghaffar aghaffar@developer.ch
Tue, 22 Jan 2002 22:04:11 +0100


you can pass, url=someurl with the login.php


<?
include "lib/base.php";
$user=Auth::getAuth();
if($user){
          print "Hello $user";
} else {
          header('Location: ' .
Horde::applicationUrl("login.php?url=hello.php", true));
          exit;
}
?>


see horde/login.php for more detail.

cheers


Zachary Denison wrote:

> Thank you atif.  This does half of what I want it to
> do.  If the person is already logged in it displays
> hello, however, if the person is not logged in, then
> it makes them login, but instead of saying hello, it
> takes them to the default horde login area.  Is there
> any way I can modify this so that whatever page I put
> it on, once they log in, it just takes them to that
> very same page?
> 



-- 
Atif Ghaffar
---------------------------.
           +41 78 845 31 64 ¦ mobile
           +41 21 351 53 62 ¦ fax
     http://atifghaffar.com ¦ www