[horde] Logout page and extra links

Barsalou barjunk at attglobal.net
Thu Aug 12 23:45:49 PDT 2004


I think I figured out these two items.  I don't know if I solved these
things in the "official" way however.  Here is what I did for adding a
menu icon for a link to an external site (our user group home page):

in /horde/config/registry.php:

$this->applications['ourlug'] = array(
    'fileroot' => dirname(__FILE__) . '/../..',
    'webroot' => $this->applications['horde']['webroot'] . '/..',
    'icon' => $this->applications['horde']['webroot'] .
'/wicked/graphics/wicked.png',
    'name' => _("LUG Home page"),
    'status' => 'active',
    'initial_page' => 'index.html'
);

I then went to each app that we were using and added 'ourlug' to the
menu entry like this:

in /horde/<app>/conf.php:

$conf['menu']['apps'] = array('ourlug', 'logout');


As far as the logout issue....In the registry.php I changed the "logout"
entry to look like this:

if (Auth::getAuth()) {
    $this->applications['logout'] = array(
        'fileroot' => dirname(__FILE__) . '/..',
        'webroot' => $this->applications['horde']['webroot'],
        'initial_page' => '../index.html',
#        'initial_page' => 'login.php?' . AUTH_REASON_PARAM . '=' .
AUTH_REASON_LOGOUT,
        'icon' => $this->applications['horde']['webroot'] .
'/graphics/logout.gif',
        'name' => _("Logout"),
        'status' => 'notoolbar'
        );
} else {
    $this->applications['logout'] = array(
        'fileroot' => dirname(__FILE__) . '/..',
        'webroot' => $this->applications['horde']['webroot'],
        'initial_page' => 'login.php?url=' .
urlencode(Horde::selfUrl(true)),
        'icon' => $this->applications['horde']['webroot'] .
'/graphics/login.gif',
        'name' => _("Login"),
        'status' => 'notoolbar'
        );
}

The line with # at the front shows what was there before I made the
change.

The only problem left is that when I use the logout choice from the top
menubar, the left menu bar stays.  It works great if I use the left menu
bar to logout though.

Anyone have hints on how to make the left menu bar disappear when using
the top menu bar and logout?

Thanks for the responses.

Mike
-- 
Barsalou <barjunk at attglobal.net>




More information about the horde mailing list