Changeset 376
- Timestamp:
- 08/09/12 16:32:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r375 r376 331 331 } 332 332 333 if ($session->param('resultmsg')) { 334 $page->param(resultmsg => $session->param('resultmsg')); 335 $session->clear('resultmsg'); 336 } 337 if ($session->param('errmsg')) { 338 $page->param(errmsg => $session->param('errmsg')); 339 $session->clear('errmsg'); 340 } 333 show_msgs(); 341 334 342 335 $page->param(curpage => $webvar{page}); … … 442 435 } 443 436 444 if ($session->param('resultmsg')) { 445 $page->param(resultmsg => $session->param('resultmsg')); 446 $session->clear('resultmsg'); 447 } 448 if ($session->param('errmsg')) { 449 $page->param(errmsg => $session->param('errmsg')); 450 $session->clear('errmsg'); 451 } 437 show_msgs(); 452 438 453 439 $page->param(curpage => $webvar{page}); … … 604 590 } 605 591 606 if ($session->param('resultmsg')) { 607 $page->param(resultmsg => $session->param('resultmsg')); 608 $session->clear('resultmsg'); 609 } 610 if ($session->param('warnmsg')) { 611 $page->param(warnmsg => $session->param('warnmsg')); 612 $session->clear('warnmsg'); 613 } 614 if ($session->param('errmsg')) { 615 $page->param(errmsg => $session->param('errmsg')); 616 $session->clear('errmsg'); 617 } 592 show_msgs(); 618 593 619 594 } # close "you can't edit default records" check … … 849 824 $page->param(delgrp => $permissions{admin} || $permissions{group_delete}); 850 825 851 if ($session->param('resultmsg')) { 852 $page->param(resultmsg => $session->param('resultmsg')); 853 $session->clear('resultmsg'); 854 } 855 if ($session->param('warnmsg')) { 856 $page->param(warnmsg => $session->param('warnmsg')); 857 $session->clear('warnmsg'); 858 } 859 if ($session->param('errmsg')) { 860 $page->param(errmsg => $session->param('errmsg')); 861 $session->clear('errmsg'); 862 } 826 show_msgs(); 863 827 $page->param(curpage => $webvar{page}); 864 828 … … 1120 1084 $page->param(deluser => $permissions{admin} || $permissions{user_delete}); 1121 1085 1122 if ($session->param('resultmsg')) { 1123 $page->param(resultmsg => $session->param('resultmsg')); 1124 $session->clear('resultmsg'); 1125 } 1126 if ($session->param('warnmsg')) { 1127 $page->param(warnmsg => $session->param('warnmsg')); 1128 $session->clear('warnmsg'); 1129 } 1130 if ($session->param('errmsg')) { 1131 $page->param(errmsg => $session->param('errmsg')); 1132 $session->clear('errmsg'); 1133 } 1086 show_msgs(); 1134 1087 $page->param(curpage => $webvar{page}); 1135 1088 … … 1352 1305 # } 1353 1306 list_locations(); 1307 show_msgs(); 1354 1308 1355 1309 # Permissions! … … 1418 1372 $page->param(locname => ($webvar{locname} ? $webvar{locname} : '')); 1419 1373 $page->param(iplist => ($webvar{iplist} ? $webvar{iplist} : '')); 1374 1375 show_msgs(); 1420 1376 } 1421 1377 … … 1775 1731 } # end changepage 1776 1732 1733 # wrap up the usual suspects for result, warning, or error messages to be displayed 1734 sub show_msgs { 1735 if ($session->param('resultmsg')) { 1736 $page->param(resultmsg => $session->param('resultmsg')); 1737 $session->clear('resultmsg'); 1738 } 1739 if ($session->param('warnmsg')) { 1740 $page->param(warnmsg => $session->param('warnmsg')); 1741 $session->clear('warnmsg'); 1742 } 1743 if ($session->param('errmsg')) { 1744 $page->param(errmsg => $session->param('errmsg')); 1745 $session->clear('errmsg'); 1746 } 1747 } # end show_msgs 1748 1777 1749 sub fillsoa { 1778 1750 my $defrec = shift;
Note:
See TracChangeset
for help on using the changeset viewer.