- Timestamp:
- 03/12/13 12:06:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r465 r466 271 271 ## DNSDB::_ipparent() 272 272 # Check an IP to be added in a reverse zone to see if it's really in the requested parent. 273 # Takes a database handle,default and reverse flags, IP (fragment) to check, parent zone ID,273 # Takes default and reverse flags, IP (fragment) to check, parent zone ID, 274 274 # and a reference to a NetAddr::IP object (also used to pass back a fully-reconstructed IP for 275 275 # database insertion) 276 276 sub _ipparent { 277 my $dbh = shift; 277 my $self = shift; 278 my $dbh = $self->{dbh}; 278 279 my $defrec = shift; 279 280 my $revrec = shift; … … 336 337 ## DNSDB::_hostparent() 337 338 # A little different than _ipparent above; this tries to *find* the parent zone of a hostname 338 # Takes a database handle andhostname.339 # Takes a hostname. 339 340 # Returns the domain ID of the parent domain if one was found. 340 341 sub _hostparent { 341 my $dbh = shift; 342 my $self = shift; 343 my $dbh = $self->{dbh}; 342 344 my $hname = shift; 343 345 … … 357 359 ## DNSDB::_log() 358 360 # Log an action 359 # Takes a database handle andlog entry hash containing at least:361 # Takes a log entry hash containing at least: 360 362 # group_id, log entry 361 363 # and optionally one or more of: … … 363 365 # The %userdata hash provides the user ID, username, and fullname 364 366 sub _log { 365 my $dbh = shift; 367 my $self = shift; 368 my $dbh = $self->{dbh}; 366 369 367 370 my %args = @_;
Note:
See TracChangeset
for help on using the changeset viewer.