-# Scriptkonf. lesen
-################################
-
-sub read_script_conf ($$$) {
- my ($Config, $Shared, $Script) = @_;
-
- $Script =~ s/^(.*)\..*$/$1/; # Vornamen extrahieren
- my $common = "$Shared/common.xml"; # gemeinsame Konf-datei
- my $group = "$Config/common.xml"; # gemeinsame (Gruppen-)Konf-datei
- my $special = "$Config/$Script.xml"; # spezielle Konf-datei
- my %conf=(); # conf-Hash
-
- &parse_script_conf ($common , \%conf, $Script); # und los...
- &parse_script_conf ($group, \%conf, $Script);
- &parse_script_conf ($special, \%conf, $Script);
-
- # Rueckgabe
- \%conf;
-}
-
-# ====================================================
-# Private Funktionen
-# ====================================================
-
-sub parse_script_conf ($$$) {
- my ($filename, $conf, $Script) = @_;
-
- if (-f $filename) {
- # XML parsen
- my $xml = new XML::DOM::Parser -> parsefile ($filename);
- my $config = $xml -> getElementsByTagName ('Config',0) -> item (0);
-
- foreach ($config -> getElementsByTagName ('Constant', 0)) {&add_data ($_, $conf)}
- foreach ($config -> getElementsByTagName ('Property', 0)) {&add_prop ($_, $conf)}
- foreach ($config -> getElementsByTagName ('Limit', 0)) {&add_limit ($_, $conf, $Script)}}
-
- return;
-}
-
-sub add_data ($$) {
- my ($node, $conf) = @_;
- my $name = $node -> getAttribute ('name');
+# add limited data
+#
+# Params: $node - element node
+# $conf - hashref of config hash (will be modified)
+# $Script - scriptname (first name)
+#
+# Return: ~none~
+#
+sub add_limit ($$$) {
+ my ($node, $conf, $Script) = @_;