Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r258 r259 1020 1020 ($args{user_id}, $fullname) = $dbh->selectrow_array("SELECT user_id, firstname || ' ' || lastname FROM users". 1021 1021 " WHERE username=?", undef, ($args{username})); 1022 } elsif (!$args{username}) { 1022 } 1023 if (!$args{username}) { 1023 1024 ($args{username}, $fullname) = $dbh->selectrow_array("SELECT username, firstname || ' ' || lastname FROM users". 1024 1025 " WHERE user_id=?", undef, ($args{user_id})); 1025 } else { 1026 } 1027 if (!$args{fullname}) { 1026 1028 ($fullname) = $dbh->selectrow_array("SELECT firstname || ' ' || lastname FROM users". 1027 1029 " WHERE user_id=?", undef, ($args{user_id})); … … 1092 1094 ($dom_id) = $dbh->selectrow_array("SELECT domain_id FROM domains WHERE domain=?", undef, ($domain)); 1093 1095 1094 _log($dbh, (domain_id => $dom_id, user_id => $userinfo{id}, group_id => $group, username => $userinfo{ name},1095 name => $userinfo{fullname},entry => "Added ".($state ? 'active' : 'inactive')." domain $domain"));1096 _log($dbh, (domain_id => $dom_id, user_id => $userinfo{id}, group_id => $group, username => $userinfo{username}, 1097 entry => "Added ".($state ? 'active' : 'inactive')." domain $domain")); 1096 1098 1097 1099 # ... and now we construct the standard records from the default set. NB: group should be variable. … … 1108 1110 my @tmp2 = split /:/, $val; 1109 1111 _log($dbh, (domain_id => $dom_id, user_id => $userinfo{id}, group_id => $group, 1110 username => $userinfo{ name}, name => $userinfo{fullname}, entry =>1112 username => $userinfo{username}, entry => 1111 1113 "[new $domain] Added SOA record [contact $tmp1[0]] [master $tmp1[1]] ". 1112 1114 "[refresh $tmp2[0]] [retry $tmp2[1]] [expire $tmp2[2]] [minttl $tmp2[3]], TTL $ttl")); … … 1116 1118 $logentry .= " [priority $dist] [weight $weight] [port $port]" if $typemap{$type} eq 'SRV'; 1117 1119 _log($dbh, (domain_id => $dom_id, user_id => $userinfo{id}, group_id => $group, 1118 username => $userinfo{ name}, name => $userinfo{fullname}, entry =>1120 username => $userinfo{username}, entry => 1119 1121 $logentry." $val', TTL $ttl")); 1120 1122 } -
trunk/dns.cgi
r254 r259 369 369 370 370 my ($code,$msg) = addDomain($dbh,$webvar{domain},$webvar{group},($webvar{makeactive} eq 'on' ? 1 : 0), 371 ( name => $session->param("username"), id => $session->param("uid")));371 (username => $session->param("username"), id => $session->param("uid"))); 372 372 373 373 if ($code eq 'OK') {
Note:
See TracChangeset
for help on using the changeset viewer.