Index: trunk/wb/framework/compatibility.php
===================================================================
--- trunk/wb/framework/compatibility.php	(revision 17)
+++ trunk/wb/framework/compatibility.php	(revision 18)
@@ -27,6 +27,9 @@
 	This file is purely for ensuring compatibility with 3rd party
 	contributions made for WB version 2.5.2 or below
 */
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 function page_link($link) {
 	global $wb;
Index: trunk/wb/framework/class.admin.php
===================================================================
--- trunk/wb/framework/class.admin.php	(revision 17)
+++ trunk/wb/framework/class.admin.php	(revision 18)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: class.admin.php,v 1.13 2005/06/23 01:10:46 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -32,6 +32,9 @@
 
 */
 
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 
 require_once(WB_PATH.'/framework/class.wb.php');
Index: trunk/wb/framework/initialize.php
===================================================================
--- trunk/wb/framework/initialize.php	(revision 17)
+++ trunk/wb/framework/initialize.php	(revision 18)
@@ -26,6 +26,9 @@
 /*
 	Initializations common to frontend and backend
 */
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 // Setup database object
 require_once(WB_PATH.'/framework/class.database.php');
Index: trunk/wb/framework/class.frontend.php
===================================================================
--- trunk/wb/framework/class.frontend.php	(revision 17)
+++ trunk/wb/framework/class.frontend.php	(revision 18)
@@ -29,6 +29,9 @@
 
 */
 
+if(!defined('WB_PATH')) {
+	header('Location: ../index.php');
+}
 
 
 require_once(WB_PATH.'/framework/class.wb.php');
