[kronolith] Logout function for main menu

Jan Schneider jan@horde.org
Tue, 11 Dec 2001 10:45:17 +0100


Zitat von Martin List-Petersen <martin@list-petersen.dk>:

> $this->applications['logout'] = array(  
>     'fileroot' => dirname(__FILE__) . '',  
>     'webroot' => '/horde/login.php?reason=logout&', 
>     'icon' => '/horde/graphics/logout.gif',
>     'name' => _("LogOut"),  
>     'allow_guests' => false,
>     'show' => true
> );
> 
> This (yes, it's quick and dirty) hack added in horde/config/registry.php
> (at any place amount the applications, depending on, where you want the
> logout menu) will give you the logout functionality.

I already comitted a change to the horde menu, update your cvs.
 
> Unfortunately i couldn't find any function to check if somebody is logged
> in or not, like available in IMP ( if (($reason = IMP::authenticate(null,
> true)) !== true) ). This function the would make it possible to turn this
> menu off, if the user isn't logged in.

See my posting to the horde list.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::