Changeset 377 for trunk/dns.cgi
- Timestamp:
- 08/09/12 16:36:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r376 r377 96 96 $session->param('reclistsortby','host'); 97 97 $session->param('reclistorder','ASC'); 98 $session->param('loclistsortby','description'); 99 $session->param('loclistorder','ASC'); 98 100 $session->param('logsortby','stamp'); 99 101 $session->param('logorder','DESC'); … … 1352 1354 1353 1355 my $loc = getLoc($dbh, $webvar{loc}); 1354 $page->param(wastrying => " adding");1356 $page->param(wastrying => "editing"); 1355 1357 $page->param(todo => "Edit location/view"); 1356 1358 $page->param(locact => "update"); … … 1363 1365 changepage(page => "loclist", errmsg => "You are not permitted to edit locations/views", id => $webvar{parentid}) 1364 1366 unless ($permissions{admin} || $permissions{location_edit}); 1365 ##work 1367 1368 my ($code,$msg) = updateLoc($dbh, $webvar{id}, $curgroup, $webvar{locname}, $webvar{comments}, $webvar{iplist}); 1369 1370 if ($code eq 'OK') { 1371 changepage(page => "loclist", resultmsg => $msg); 1372 } else { 1373 $page->param(failed => 1); 1374 $page->param(errmsg => $msg); 1375 $page->param(wastrying => "editing"); 1376 $page->param(todo => "Edit location/view"); 1377 $page->param(locact => "update"); 1378 $page->param(id => $webvar{loc}); 1379 $page->param(locname => $webvar{locname}); 1380 $page->param(comments => $webvar{comments}); 1381 $page->param(iplist => $webvar{iplist}); 1382 } 1366 1383 } else { 1367 1384 changepage(page => "loclist", errmsg => "You are not permitted to add locations/views", id => $webvar{parentid}) … … 2169 2186 # Some UI things need to be done to the list 2170 2187 foreach my $l (@{$loclist}) { 2188 $l->{iplist} = "(All IPs)" if !$l->{iplist}; 2171 2189 $l->{edloc} = ($permissions{admin} || $permissions{loc_edit}); 2172 2190 $l->{delloc} = ($permissions{admin} || $permissions{loc_delete});
Note:
See TracChangeset
for help on using the changeset viewer.