Changeset 330
- Timestamp:
- 04/07/06 13:40:42 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/admin.cgi
r329 r330 274 274 } elsif ($webvar{action} eq 'touch') { 275 275 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 } 276 281 } elsif ($webvar{action} eq 'listcust') { 277 282 print qq(Add new entry:\n … … 310 315 print 'No CustID entered. PTHBT! (Hit "Back" and fix the problem.)'; 311 316 } 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";317 317 $sth = $ip_dbh->prepare("insert into customers ". 318 318 "(custid, name, street, city, province, country, pocode, ".
Note:
See TracChangeset
for help on using the changeset viewer.