inc/database.inc.php
changeset 71 e1b918eaf69a
parent 67 2f8c29fc5e2e
child 82 c255196bc447
equal deleted inserted replaced
70:47248e2af079 71:e1b918eaf69a
     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');