summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f139a5a)
so you don't need to define an individual sections for users with the same
configuration any more.
# Read and parse the configuration files
#
# Author: Patrick Canterino <patrick@patshaping.de>
# Read and parse the configuration files
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-08-24
+# Last modified: 2005-09-30
@EXPORT = qw(read_config);
@EXPORT = qw(read_config);
# read_config()
#
# Read the configuration files of Dev-Editor
# read_config()
#
# Read the configuration files of Dev-Editor
{
my $userconf = parse_config($config->{'userconf_file'});
{
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
if($userconf->{$ENV{'REMOTE_USER'}})
{
# The current HTTP Auth user has got an individual configuration