Changeset 330 for trunk


Ignore:
Timestamp:
04/07/06 13:40:42 (18 years ago)
Author:
Kris Deugau
Message:

/trunk

Added supporting code to update masterblock modified timestamp
Removed debugging fragment

File:
1 edited

Legend:

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

    r329 r330  
    274274} elsif ($webvar{action} eq 'touch') {
    275275  print "Touching master $webvar{whichmaster}\n";
     276  $sth = $ip_dbh->prepare("update masterblocks set mtime=now() where cidr='$webvar{whichmaster}'");
     277  $sth->execute;
     278  if ($sth->err) {
     279    print "<p>Error updating modified timestamp on master $webvar{whichmaster}: ".$sth->errstr."\n";
     280  }
    276281} elsif ($webvar{action} eq 'listcust') {
    277282  print qq(Add new entry:\n
     
    310315    print 'No CustID entered.  PTHBT!  (Hit "Back" and fix the problem.)';
    311316  } else {
    312 print "<table border=1>\n";
    313 foreach my $key (keys %webvar) {
    314   print "<tr><td>$key</td><td>$webvar{$key}</td><tr>\n";
    315 }
    316 print "</table>\n";
    317317    $sth = $ip_dbh->prepare("insert into customers ".
    318318        "(custid, name, street, city, province, country, pocode, ".
Note: See TracChangeset for help on using the changeset viewer.