Revision 19
Added by stefan about 20 years ago
| class.database.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 |
// $Id: class.database.php,v 1.5 2005/06/23 06:34:18 rdjurovich Exp $
|
|
| 3 |
// $Id$ |
|
| 4 | 4 |
|
| 5 | 5 |
/* |
| 6 | 6 |
|
| ... | ... | |
| 33 | 33 |
*/ |
| 34 | 34 |
|
| 35 | 35 |
// Stop this file from being accessed directly |
| 36 |
if(!defined('WB_PATH')) { exit('Direct access to this file is not allowed'); }
|
|
| 36 |
if(!defined('WB_URL')) {
|
|
| 37 |
header('Location: ../index.php');
|
|
| 38 |
} |
|
| 37 | 39 |
|
| 38 | 40 |
if(!defined('DB_URL')) {
|
| 39 | 41 |
//define('DB_URL', DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME);
|
Also available in: Unified diff
Removed direct access path disclosure occurrences.