[whups] Add login button for guests

Mike Baptiste mike@msbnetworks.net
Mon Nov 11 17:26:18 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I buried this patch in a long email so it might have been missed.  This
adds a login button to the top bar when guests are using whups.  This
way you can bookmark or link to /horde/whups and login if you ned (vs
going to /horde, logging in, and then clicking on the whups link every time.

Index: menu.inc
===================================================================
RCS file: /repository/whups/templates/menu/menu.inc,v
retrieving revision 1.8
diff -c -r1.8 menu.inc
*** menu.inc    23 Oct 2002 21:45:22 -0000      1.8
- --- menu.inc    11 Nov 2002 17:24:41 -0000
***************
*** 24,29 ****
- --- 24,34 ----
~      Menu::printItem(Horde::url($registry->getParam('webroot', 'horde')
. '/admin/'), _("Admin Home"), 'administration.gif',
$registry->getParam('graphics', 'horde'));
~  }

+ /* Display Login Button For Guests */
+ if (!Auth::getAuth()) {
+     Menu::printItem(Auth::getLoginScreen(), _("Login"), 'login.gif',
$registry->getParam('graphics', 'horde'));
+ }
+
~  /* Online Help. */
~  if ($conf['user']['online_help'] && $browser->hasFeature('javascript')) {
~      Menu::printItem(Help::listLink('whups'), _("Help"), 'manual.gif',
$registry->getParam('graphics', 'horde'));
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9z+g5tbf8BjvL+3ERApHFAJ92PRjaaATuOG9k3JV7NaWtdo8/MwCcDdYr
c8MV7CcvdT4GQQxXl1CVAMk=
=v3WP
-----END PGP SIGNATURE-----



More information about the whups mailing list