version 1.410.2.1, 2009/05/13 03:01:49
|
version 1.411, 2009/02/10 11:31:26
|
Line 562 sub InstallFile {
|
Line 562 sub InstallFile {
|
|
|
# |
# |
# ConfigFileFromSelector: converts a configuration file selector |
# ConfigFileFromSelector: converts a configuration file selector |
# (one of host or domain at this point) into a |
# into a configuration file pathname. |
# configuration file pathname. |
# It's probably no longer necessary to preserve |
|
# special handling of hosts or domain as those |
|
# files have been superceded by dns_hosts, dns_domain. |
|
# The default action is just to prepend the directory |
|
# and append .tab |
|
# |
# |
# |
# Parameters: |
# Parameters: |
# selector - Configuration file selector. |
# selector - Configuration file selector. |
Line 580 sub ConfigFileFromSelector {
|
Line 585 sub ConfigFileFromSelector {
|
} elsif ($selector eq "domain") { |
} elsif ($selector eq "domain") { |
$tablefile = $tabledir."domain.tab"; |
$tablefile = $tabledir."domain.tab"; |
} else { |
} else { |
return undef; |
$tablefile = $tabledir.$selector.'.tab'; |
} |
} |
return $tablefile; |
return $tablefile; |
|
|
Line 4309 sub dump_domainroles_handler {
|
Line 4314 sub dump_domainroles_handler {
|
my ($start,$end) = split(/:/,&unescape($value)); |
my ($start,$end) = split(/:/,&unescape($value)); |
my ($trole,$uname,$udom,$runame,$rudom,$rsec) = split(/:/,&unescape($key)); |
my ($trole,$uname,$udom,$runame,$rudom,$rsec) = split(/:/,&unescape($key)); |
unless ($startfilter eq '.' || !defined($startfilter)) { |
unless ($startfilter eq '.' || !defined($startfilter)) { |
if ((defined($start)) && ($start >= $startfilter)) { |
if ($start >= $startfilter) { |
$match = 0; |
$match = 0; |
} |
} |
} |
} |
unless ($endfilter eq '.' || !defined($endfilter)) { |
unless ($endfilter eq '.' || !defined($endfilter)) { |
if ((defined($end)) && ($end <= $endfilter)) { |
if ($end <= $endfilter) { |
$match = 0; |
$match = 0; |
} |
} |
} |
} |