[imp] expand names (fwd)
Jan Schneider
janmailing@gmx.de
Mon, 25 Jun 2001 16:57:19 +0200
---------------------- multipart/mixed attachment
Hi,
attached is a diff that allows switching app icons on or off in the menubar.
Jan.
Zitat von Apis Hytt <php3dev@carousel.tabcat.com>:
>
>
> On Mon, 25 Jun 2001, Jan Schneider wrote:
>
> > This would be a solution for not showing up the application icons in the
> navbar
> > but not for preventing the users to call the apps manually. This would make
> it
> > necessary to have a granular access control to the apps.
> > For example to allow inter-application calls via the api but no direct
> calls.
> >
> > But you can at least set up turba to use readonly sources, wouldn't this be
>
> > enough?
> >
> > Jan.
> >
> > Zitat von Apis Hytt <php3dev@carousel.tabcat.com>:
> ----8<---------SNIP----
> >
> > > Scenario -- allow `expand names' in [compose]
> > > but not have [turba] in horde bottom navbar.
> > >
> APIS+ o Yes, I have set the turba addressbook to read-only.
>
> o Your notion sounds nice for an ACL on the modules.
>
> o This is an artifact of the nice, new registry scheme and
> module/lib/api.php features. Before expand names
> and the inter-module capability, one used to
> just delete the module in the older registry version.
> Now, of course, one will lose the back-door features.
>
> o Maybe, in short run, just a define for each module
> to display as a navbar link or not could suffice.
>
> If a user tried to URL to horde/turba .. one
> could just substitute a site specific page to say unavailable
> for direct access, use [compose] expand names instead.
>
> o That way, the link could at least be gone in navbar and
> the inter-module features would still work.
> APIS-
> NNNN
>
>
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
>
::::::::::::::::::::::::::::::::::::::::
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
::::::::::::::::::::::::::::::::::::::::::::::
---------------------- multipart/mixed attachment
Index: menu.php
===================================================================
RCS file: /cvs/horde/horde/menu.php,v
retrieving revision 2.6
diff -u -r2.6 menu.php
--- menu.php 2001/06/18 22:00:56 2.6
+++ menu.php 2001/06/25 14:55:36
@@ -38,16 +38,18 @@
* will be other stuff here)
*/
foreach ($registry->applications as $service => $params) {
- $line = '<td class="header" align="center" valign="bottom">';
- if (!$opener) {
- $line .= '<a class="menuitem" href="' . Horde::url($params['webroot']) . '" target="main">';
- } else {
- $line .= '<a class="menuitem" href="" onclick="window.opener.location.href=\'' . Horde::url($params['webroot']) . '\'; return false;">';
+ if ($params['show']) {
+ $line = '<td class="header" align="center" valign="bottom">';
+ if (!$opener) {
+ $line .= '<a class="menuitem" href="' . Horde::url($params['webroot']) . '" target="main">';
+ } else {
+ $line .= '<a class="menuitem" href="" onclick="window.opener.location.href=\'' . Horde::url($params['webroot']) . '\'; return false;">';
+ }
+ $line .= '<img src="' . $params['icon'] .
+ '" border="0" hspace="5" align="absmiddle"><br />' .
+ $params['name'] . '</a></td>';
+ $moduletext .= "$line\n";
}
- $line .= '<img src="' . $params['icon'] .
- '" border="0" hspace="5" align="absmiddle"><br />' .
- $params['name'] . '</a></td>';
- $moduletext .= "$line\n";
}
$line = '<td class="header" align="center" valign="bottom">';
Index: config/registry.php.dist
===================================================================
RCS file: /cvs/horde/horde/config/registry.php.dist,v
retrieving revision 1.38
diff -u -r1.38 registry.php.dist
--- config/registry.php.dist 2001/06/11 20:51:12 1.38
+++ config/registry.php.dist 2001/06/25 14:55:36
@@ -22,7 +22,8 @@
'webroot' => '/horde/imp',
'icon' => '/horde/imp/graphics/imp.gif',
'name' => 'Mail',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['turba'] = array(
@@ -30,7 +31,8 @@
'webroot' => '/horde/turba',
'icon' => '/horde/turba/graphics/group.gif',
'name' => 'Addressbook',
- 'allow_guests' => false
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['gollem'] = array(
@@ -38,7 +40,8 @@
'webroot' => '/horde/gollem',
'icon' => '/horde/gollem/graphics/gollem.gif',
'name' => 'FTP',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['nic'] = array(
@@ -46,7 +49,8 @@
'webroot' => '/horde/nic',
'icon' => '/horde/nic/graphics/nic.gif',
'name' => 'Network',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['kronolith'] = array(
@@ -54,7 +58,8 @@
'webroot' => '/horde/kronolith',
'icon' => '/horde/kronolith/graphics/kronolith.gif',
'name' => 'Calendar',
- 'allow_guests' => false
+ 'allow_guests' => false,
+ 'show' => true
);
$this->applications['jonah'] = array(
@@ -62,7 +67,8 @@
'webroot' => '/horde/jonah',
'icon' => '/horde/jonah/graphics/logo.gif',
'name' => 'Headlines',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['troll'] = array(
@@ -70,7 +76,8 @@
'webroot' => '/horde/troll',
'icon' => '/horde/troll/graphics/newpost.gif',
'name' => 'News',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['chora'] = array(
@@ -78,7 +85,8 @@
'webroot' => '/horde/chora',
'icon' => '/horde/chora/graphics/chora.gif',
'name' => 'CVS',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['whups'] = array(
@@ -86,7 +94,8 @@
'webroot' => '/horde/whups',
'icon' => '/horde/whups/graphics/whups.gif',
'name' => 'Bugs',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->applications['nag'] = array(
@@ -94,7 +103,8 @@
'webroot' => '/horde/nag',
'icon' => '/horde/nag/graphics/nag.gif',
'name' => 'Tasks',
- 'allow_guests' => true
+ 'allow_guests' => true,
+ 'show' => true
);
$this->services['imp']['auth']['login'] = array(
---------------------- multipart/mixed attachment--