Changeset 257
- Timestamp:
- 03/02/12 16:38:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r256 r257 1093 1093 1094 1094 _log($dbh, (domain => $dom_id, user_id => $userinfo{id}, group_id => $group, username => $userinfo{name}, 1095 name => $userinfo{fullname}), 1096 "Added ".($state ? 'active' : 'inactive')." domain $domain"); 1095 name => $userinfo{fullname}, entry => "Added ".($state ? 'active' : 'inactive')." domain $domain")); 1097 1096 1098 1097 # ... and now we construct the standard records from the default set. NB: group should be variable. … … 1109 1108 my @tmp2 = split /:/, $val; 1110 1109 _log($dbh, (domain => $dom_id, user_id => $userinfo{id}, group_id => $group, 1111 username => $userinfo{name}, name => $userinfo{fullname}),1110 username => $userinfo{name}, name => $userinfo{fullname}, entry => 1112 1111 "[new $domain] Added SOA record [contact $tmp1[0]] [master $tmp1[1]] ". 1113 "[refresh $tmp2[0]] [retry $tmp2[1]] [expire $tmp2[2]] [minttl $tmp2[3]], TTL $ttl") ;1112 "[refresh $tmp2[0]] [retry $tmp2[1]] [expire $tmp2[2]] [minttl $tmp2[3]], TTL $ttl")); 1114 1113 } else { 1115 1114 my $logentry = "[new $domain] Added record '$host $typemap{$type}"; … … 1117 1116 $logentry .= " [priority $dist] [weight $weight] [port $port]" if $typemap{$type} eq 'SRV'; 1118 1117 _log($dbh, (domain => $dom_id, user_id => $userinfo{id}, group_id => $group, 1119 username => $userinfo{name}, name => $userinfo{fullname}),1120 $logentry." $val', TTL $ttl") ;1118 username => $userinfo{name}, name => $userinfo{fullname}, entry => 1119 $logentry." $val', TTL $ttl")); 1121 1120 } 1122 1121 }
Note:
See TracChangeset
for help on using the changeset viewer.