1 <? |
1 <? |
2 |
|
3 // +--------------------------------------------------------------------+ |
|
4 // | PowerAdmin | |
|
5 // +--------------------------------------------------------------------+ |
|
6 // | Copyright (c) 1997-2002 The PowerAdmin Team | |
|
7 // +--------------------------------------------------------------------+ |
|
8 // | This source file is subject to the license carried by the overal | |
|
9 // | program PowerAdmin as found on http://poweradmin.sf.net | |
|
10 // | The PowerAdmin program falls under the QPL License: | |
|
11 // | http://www.trolltech.com/developer/licensing/qpl.html | |
|
12 // +--------------------------------------------------------------------+ |
|
13 // | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl> | |
|
14 // | Sjeemz <sjeemz <AT> sjeemz <DOT> nl> | |
|
15 // +--------------------------------------------------------------------+ |
|
16 |
|
17 // Filename: auth.inc.php |
|
18 // Startdate: 26-10-2002 |
|
19 // Description: Constructs the database class. |
|
20 // |
|
21 // $Id: database.inc.php,v 1.3 2002/12/27 02:45:08 azurazu Exp $ |
|
22 // |
|
23 |
2 |
24 require_once("MDB2.php"); |
3 require_once("MDB2.php"); |
25 |
4 |
26 function dbError($msg) |
5 function dbError($msg) |
27 { |
6 { |
28 // General function for printing critical errors. |
7 // General function for printing critical errors. |
29 include_once("header.inc.php"); |
8 include_once("header.inc.php"); |
30 ?> |
9 ?> |
31 <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2><? echo _('Oops! An error occured!'); ?></H2> |
10 <h2><? echo _('Oops! An error occured!'); ?></h2> |
32 <BR> |
11 <p class="error"><? echo $msg->getDebugInfo(); ?></p> |
33 <FONT STYLE="font-weight: Bold"><?= $msg->getDebugInfo(); ?><BR><BR><a href="javascript:history.go(-1)"><< <? echo _('back'); ?></a></FONT><BR></TD></TR></TABLE></P> |
12 <? |
34 <? |
13 include_once("footer.inc.php"); |
35 die(); |
14 die(); |
36 } |
15 } |
37 |
16 |
38 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'dbError'); |
17 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'dbError'); |
39 |
18 |