inc/database.inc.php
changeset 4 55ed92aa7cf5
parent 1 58094faf794d
child 8 47dd15d8bb8c
equal deleted inserted replaced
3:64525a2eb098 4:55ed92aa7cf5
    26 function dbError($msg)
    26 function dbError($msg)
    27 {
    27 {
    28         // General function for printing critical errors.
    28         // General function for printing critical errors.
    29         include_once("header.inc.php");
    29         include_once("header.inc.php");
    30         ?>
    30         ?>
    31         <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2>Oops! An error occured!</H2>
    31         <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2><? echo _('Oops! An error occured!'); ?></H2>
    32         <BR>
    32         <BR>
    33         <FONT STYLE="font-weight: Bold"><?= $msg->getDebugInfo(); ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; back</a></FONT><BR></TD></TR></TABLE></P>
    33         <FONT STYLE="font-weight: Bold"><?= $msg->getDebugInfo(); ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; <? echo _('back'); ?></a></FONT><BR></TD></TR></TABLE></P>
    34         <?
    34         <?
    35         die();
    35         die();
    36 }
    36 }
    37 
    37 
    38 // Setup error handling.
    38 // Setup error handling.