Ignore:
Timestamp:
11/08/12 17:56:36 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Clean up and move last-modified-change for master blocks to
IPDB.pm. See #34.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/admin.cgi

    r546 r547  
    229229} elsif ($webvar{action} eq 'touch') {
    230230
    231   $page->param(master => $webvar{whichmaster});
    232   $sth = $ip_dbh->prepare("update masterblocks set mtime=now() where cidr='$webvar{whichmaster}'");
    233   $sth->execute;
    234   if ($sth->err) {
    235     $page->param(errmsg => $sth->errstr);
    236   }
     231  my ($code,$msg) = touchMaster($ip_dbh, $webvar{whichmaster});
     232  $page->param(errmsg => $msg) if $code eq 'FAIL';
    237233
    238234} elsif ($webvar{action} eq 'listcust') {
Note: See TracChangeset for help on using the changeset viewer.