Changeset 709 for trunk/dns.cgi


Ignore:
Timestamp:
03/09/16 15:38:09 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Tweak addLoc() to optionally accept a suggested or required location
ID and a flag to indicate of the ID is "must choose this or fail" or
"next available after this". Update the automatic-location-ID-finder
code to start with the requested ID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r706 r709  
    15251525        unless ($permissions{admin} || $permissions{location_create});
    15261526
    1527     my ($code,$msg) = $dnsdb->addLoc($curgroup, $webvar{locname}, $webvar{comments}, $webvar{iplist});
     1527    my ($code,$msg) = $dnsdb->addLoc(group => $curgroup, desc => $webvar{locname},
     1528        comments => $webvar{comments}, iplist => $webvar{iplist});
    15281529
    15291530    if ($code eq 'OK' || $code eq 'WARN') {
Note: See TracChangeset for help on using the changeset viewer.