/*
 * Turba Configuration File
 *
 * This file contains global configuration settings for Turba. Values
 * may be safely edited by hand.  Use conf.php.dist as a reference.
 *
 * Contact sources are defined in 'sources.php'.
 * Default user preferences are defined in 'prefs.php'.
 *
 * Strings should be enclosed in 'quotes'.
 * Integers should be given literally (without quotes).
 * Boolean values may be true or false (no quotes).
 *
 * $Horde: turba/config/conf.php.dist,v 1.21.2.1 2001/12/10 21:41:05 bjn Exp $
 */


/**
 ** Menu settings
 **/

// Should we display an Import/Export link in the Horde application
// menus?
$conf['menu']['import_export'] = true; 

// This is an array of applications (using the names defined in
// horde/config/registry.php) to include links to in the menubar. An
// example providing a link to IMP (an email program) would be:
// $conf['menu']['apps'] = array('imp');

{
$OUT = '$conf[\'menu\'][\'apps\'] = array(';

use esmith::ConfigDB;
my $c = esmith::ConfigDB->open_ro;

my $record = $c->get('horde');

foreach $component (qw/ chora gollem hermes imp 
    jonah kronolith mnemo nag orator rakim sork 
    trean troll whups /) {

    my $status = $record->prop($component);

    if (!defined ($status)) {
        $status = '';
    }

    if ($status eq 'installed') {
        $OUT .= '\'' . $component . '\', '
    }
}

$OUT = substr($OUT, 0, length($OUT) - 2) . ");\n";

}
