equal
deleted
inserted
replaced
1 <? |
1 <?php |
2 |
2 |
3 /* PowerAdmin, a friendly web-based admin tool for PowerDNS. |
3 /* PowerAdmin, a friendly web-based admin tool for PowerDNS. |
4 * See <https://rejo.zenger.nl/poweradmin> for more details. |
4 * See <https://rejo.zenger.nl/poweradmin> for more details. |
5 * |
5 * |
6 * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl> |
6 * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl> |
24 function dbError($msg) |
24 function dbError($msg) |
25 { |
25 { |
26 // General function for printing critical errors. |
26 // General function for printing critical errors. |
27 include_once("header.inc.php"); |
27 include_once("header.inc.php"); |
28 ?> |
28 ?> |
29 <h2><? echo _('Oops! An error occured!'); ?></h2> |
29 <h2><?php echo _('Oops! An error occured!'); ?></h2> |
30 <p class="error"><? echo $msg->getDebugInfo(); ?></p> |
30 <p class="error"><?php echo $msg->getDebugInfo(); ?></p> |
31 <? |
31 <?php |
32 include_once("footer.inc.php"); |
32 include_once("footer.inc.php"); |
33 die(); |
33 die(); |
34 } |
34 } |
35 |
35 |
36 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'dbError'); |
36 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'dbError'); |