- Timestamp:
- 01/20/10 17:36:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r62 r63 259 259 } 260 260 261 if ($webvar{del_failed}) { 262 $page->param(del_failed => 1); 263 $page->param(errmsg => $webvar{errmsg}); 264 } 265 261 266 } elsif ($webvar{page} eq 'record') { 262 267 … … 286 291 if ($webvar{defrec} eq 'y') { 287 292 logaction(0, $session->param("username"), $webvar{parentid}, 288 "Added default record '$ typemap{$webvar{type}} $webvar{name} $webvar{address}', TTL $webvar{ttl}");293 "Added default record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl}"); 289 294 } else { 290 295 logaction($webvar{parentid}, $session->param("username"), parentID($webvar{parentid}, 'dom', 'group'), 291 "Added record '$ typemap{$webvar{type}} $webvar{name} $webvar{address}', TTL $webvar{ttl}");296 "Added record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl}"); 292 297 } 293 298 changepage(page => "reclist", id => $webvar{parentid}, defrec => $webvar{defrec}); … … 304 309 if ($webvar{defrec} eq 'y') { 305 310 logaction(0, $session->param("username"), $webvar{parentid}, 306 "Failed adding default record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl} ");311 "Failed adding default record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl} ($msg)"); 307 312 } else { 308 313 logaction($webvar{parentid}, $session->param("username"), parentID($webvar{parentid}, 'dom', 'group'), 309 "Failed adding record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl} ");314 "Failed adding record '$webvar{name} $typemap{$webvar{type}} $webvar{address}', TTL $webvar{ttl} ($msg)"); 310 315 } 311 316 } … … 364 369 if ($webvar{defrec} eq 'y') { 365 370 logaction(0, $session->param("username"), $webvar{parentid}, 366 "Failed updating default record '$typemap{$webvar{type}} $webvar{name} $webvar{address}', TTL $webvar{ttl} ");371 "Failed updating default record '$typemap{$webvar{type}} $webvar{name} $webvar{address}', TTL $webvar{ttl} ($msg)"); 367 372 } else { 368 373 logaction($webvar{parentid}, $session->param("username"), parentID($webvar{parentid}, 'dom', 'group'), 369 "Failed updating record '$typemap{$webvar{type}} $webvar{name} $webvar{address}', TTL $webvar{ttl} ");374 "Failed updating record '$typemap{$webvar{type}} $webvar{name} $webvar{address}', TTL $webvar{ttl} ($msg)"); 370 375 } 371 376 } … … 400 405 if ($webvar{defrec} eq 'y') { 401 406 logaction(0, $session->param("username"), $rec{parid}, 402 "Failed deleting default record '$rec{host} $typemap{$rec{type}} $rec{val}', TTL $rec{ttl} ");407 "Failed deleting default record '$rec{host} $typemap{$rec{type}} $rec{val}', TTL $rec{ttl} ($msg)"); 403 408 } else { 404 409 logaction($rec{parid}, $session->param("username"), parentID($rec{parid}, 'dom', 'group'), 405 "Failed deleting record '$rec{host} $typemap{$rec{type}} $rec{val}', TTL $rec{ttl} ");410 "Failed deleting record '$rec{host} $typemap{$rec{type}} $rec{val}', TTL $rec{ttl} ($msg)"); 406 411 } 412 changepage(page => "reclist", id => $webvar{parentid}, defrec => $webvar{defrec}, del_failed => 1, errmsg => $msg); 407 413 $page->param(del_failed => 1); 408 414 $page->param(errmsg => $msg);
Note:
See TracChangeset
for help on using the changeset viewer.