Index: trunk/wb/admin/media/browse.php
===================================================================
--- trunk/wb/admin/media/browse.php	(revision 281)
+++ trunk/wb/admin/media/browse.php	(revision 282)
@@ -48,7 +48,7 @@
 	$admin->print_error($MESSAGE['MEDIA']['DIR_DOT_DOT_SLASH']);
 }
 
-if(!file_exists(WB_PATH.'/media'.$directory)) {
+if(!file_exists(WB_PATH.MEDIA_DIRECTORY.$directory)) {
 	$admin->print_header();
 	$admin->print_error($MESSAGE['MEDIA']['DIR_DOES_NOT_EXIST']);
 }
Index: trunk/wb/modules/htmlarea/include.php
===================================================================
--- trunk/wb/modules/htmlarea/include.php	(revision 281)
+++ trunk/wb/modules/htmlarea/include.php	(revision 282)
@@ -23,7 +23,7 @@
 
 */
 
-$WB_DIRECTORY = substr(WB_PATH, strlen($_SERVER['DOCUMENT_ROOT'])).'/media/';
+$WB_DIRECTORY = substr(WB_PATH, strlen($_SERVER['DOCUMENT_ROOT'])).MEDIA_DIRECTORY.'/';
 
 ?>
 
Index: trunk/wb/modules/htmlarea/htmlarea/popups/link.php
===================================================================
--- trunk/wb/modules/htmlarea/htmlarea/popups/link.php	(revision 281)
+++ trunk/wb/modules/htmlarea/htmlarea/popups/link.php	(revision 282)
@@ -38,11 +38,11 @@
 // Get the directory to browse
 $directory = $admin->get_post('folder');
 if($directory == '') {
-	$directory = '/media';
+	$directory = MEDIA_DIRECTORY;
 }
 // If the directory contains ../ then set it to /media
 if(strstr($directory, '../')) {
-	$directory = '/media';
+	$directory = MEDIA_DIRECTORY;
 }
 
 // Include the WB functions file
Index: trunk/wb/modules/htmlarea/htmlarea/popups/insert_image.php
===================================================================
--- trunk/wb/modules/htmlarea/htmlarea/popups/insert_image.php	(revision 281)
+++ trunk/wb/modules/htmlarea/htmlarea/popups/insert_image.php	(revision 282)
@@ -38,11 +38,11 @@
 // Get the directory to browse
 $directory = $admin->get_post('folder');
 if($directory == '') {
-	$directory = '/media';
+	$directory = MEDIA_DIRECTORY;
 }
 // If the directory contains ../ then set it to /media
 if(strstr($directory, '../')) {
-	$directory = '/media';
+	$directory = MEDIA_DIRECTORY;
 }
 
 // Include the WB functions file
Index: trunk/wb/modules/htmlarea/htmlarea/popups/list_media.php
===================================================================
--- trunk/wb/modules/htmlarea/htmlarea/popups/list_media.php	(revision 281)
+++ trunk/wb/modules/htmlarea/htmlarea/popups/list_media.php	(revision 282)
@@ -44,11 +44,11 @@
 // Get the directory to browse
 $directory = $admin->get_get('folder');
 if($directory == '') {
-	$directory = '/media';
+	$directory = MEDIA_DIRECTORY;
 }
 // If the directory contains ../ then set it to /media
 if(strstr($directory, '../')) {
-	$directory = '/media';
+	$directory = MEDIA_DIRECTORY;
 }
 
 // Insert files into the file list
Index: trunk/wb/config.php
===================================================================
--- trunk/wb/config.php	(revision 281)
+++ trunk/wb/config.php	(revision 282)
@@ -1 +1,19 @@
-<?php ?>
\ No newline at end of file
+<?php
+
+error_reporting(E_ALL);
+
+define('DB_TYPE', 'mysql');
+define('DB_HOST', 'localhost');
+define('DB_USERNAME', 'root');
+define('DB_PASSWORD', '');
+define('DB_NAME', 'wb');
+define('TABLE_PREFIX', 'test');
+
+define('WB_PATH', dirname(__FILE__));
+define('WB_URL', 'http://localhost/wbsvn/wb');
+define('ADMIN_PATH', WB_PATH.'/admin');
+define('ADMIN_URL', 'http://localhost/wbsvn/wb/admin');
+
+require_once(WB_PATH.'/framework/initialize.php');
+
+?>
\ No newline at end of file
