Revision 1499
Added by DarkViper about 14 years ago
| class.database.php | ||
|---|---|---|
| 15 | 15 |
* @lastmodified $Date$ |
| 16 | 16 |
* |
| 17 | 17 |
*/ |
| 18 |
|
|
| 19 | 18 |
/* |
| 20 |
|
|
| 21 | 19 |
Database class |
| 22 |
|
|
| 23 | 20 |
This class will be used to interface between the database |
| 24 | 21 |
and the Website Baker code |
| 25 |
|
|
| 26 | 22 |
*/ |
| 27 |
|
|
| 28 | 23 |
/* -------------------------------------------------------- */ |
| 29 | 24 |
// Must include code to stop this file being accessed directly |
| 30 |
require_once('globalExceptionHandler.php');
|
|
| 31 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); }
|
|
| 25 |
if(!defined('WB_PATH')) {
|
|
| 26 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
| 27 |
throw new IllegalFileException(); |
|
| 28 |
} |
|
| 32 | 29 |
/* -------------------------------------------------------- */ |
| 33 | 30 |
if(!defined('DB_URL')) {
|
| 34 | 31 |
//define('DB_URL', DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME);
|
Also available in: Unified diff
little fix in calling globalExceptionHandler from inner core files