Changeset 61
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r56 r61 243 243 my $domid = shift; 244 244 245 return "FAIL", "whee!"; 245 246 # Allow transactions, and raise an exception on errors so we can catch it later. 246 247 # Use local to make sure these get "reset" properly on exiting this block -
trunk/dns.cgi
r60 r61 25 25 26 26 my @debugbits; # temp, to be spit out near the end of processing 27 my $debugenv = 0;27 my $debugenv = 1; 28 28 29 29 # Let's do these templates right... … … 77 77 my $searchsubs = $session->param($webvar{page}.'searchsubs'); 78 78 79 push @debugbits, "foo<br>\n" if defined($webvar{searchsubs});80 81 79 # nrgh, can't handle login here because we don't have a database handle to check the user/pass with yet 82 80 … … 205 203 } elsif ($webvar{del} eq 'ok') { 206 204 my $pargroup = parentID($webvar{id}, 'dom', 'group'); 205 my $dom = domainName($dbh, $webvar{id}); 207 206 my ($code,$msg) = delDomain($dbh, $webvar{id}); 208 207 if ($code ne 'OK') { … … 210 209 $page->param(del_failed => 1); 211 210 $page->param(errmsg => $msg); 211 logaction($webvar{id}, $session->param("username"), $pargroup, "Failed to delete domain $dom"); 212 212 listdomains($curgroup); 213 ##work 213 214 } else { 214 ##fixme: need domain to put in log message 215 logaction($webvar{id}, $session->param("username"), $pargroup, "Deleted domain $webvar{domain}"); 216 changepage(page => "domlist"); 215 logaction($webvar{id}, $session->param("username"), $pargroup, "Deleted domain $dom"); 216 changepage(page => "domlist"); 217 217 } 218 218 } else { … … 251 251 252 252 } elsif ($webvar{page} eq 'record') { 253 254 $debugenv = 1;255 253 256 254 if ($webvar{recact} eq 'new') { … … 712 710 my $id = $curgroup; # we do this because the group log may be called from (almost) any page, 713 711 # but the others are much more limited. this is probably non-optimal. 714 if ($we rbvar{ltype} && $webvar{ltype} eq 'user') {712 if ($webvar{ltype} && $webvar{ltype} eq 'user') { 715 713 $sql .= "user_id=?"; 716 714 $id = $webvar{id}; … … 1013 1011 ##fixme: $logingroup or $curgroup? 1014 1012 my @childgroups; 1015 #getChildren($dbh, $curgroup, \@childgroups, 'all') if $searchsubs;1013 getChildren($dbh, $curgroup, \@childgroups, 'all') if $searchsubs; 1016 1014 my $childlist = join(',',@childgroups); 1017 1015
Note:
See TracChangeset
for help on using the changeset viewer.