# Read and parse the configuration files
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-08-24
+# Last modified: 2005-09-30
#
use strict;
@EXPORT = qw(read_config);
+use Data::Dumper;
+
# read_config()
#
# Read the configuration files of Dev-Editor
{
my $userconf = parse_config($config->{'userconf_file'});
+ # Parse aliases (we use references, so we won't get a memory
+ # problem so soon...)
+
+ foreach my $user(keys(%$userconf))
+ {
+ if(my $aliases = $userconf->{$user}->{'aliases'})
+ {
+ foreach my $alias(parse_line('\s+',0,$aliases))
+ {
+ $userconf->{$alias} = $userconf->{$user} unless($userconf->{$alias});
+ }
+ }
+ }
+
if($userconf->{$ENV{'REMOTE_USER'}})
{
# The current HTTP Auth user has got an individual configuration