Index: trunk/wb/admin/groups/get_permissions.php
===================================================================
--- trunk/wb/admin/groups/get_permissions.php	(revision 18)
+++ trunk/wb/admin/groups/get_permissions.php	(revision 19)
@@ -22,6 +22,7 @@
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 */
+if(!defined('WB_PATH')) { exit('Direct access to this file is not allowed'); }
 
 // Get system permissions
 if($admin->get_post('advanced') != 'yes') {
Index: trunk/wb/modules/admin.php
===================================================================
--- trunk/wb/modules/admin.php	(revision 18)
+++ trunk/wb/modules/admin.php	(revision 19)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: admin.php,v 1.2 2005/04/02 06:25:55 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -33,7 +33,9 @@
 */
 
 // Stop this file being access directly
-if(!defined('WB_PATH')) { exit('Direct access to this file is not allowed'); }
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 // Get page id
 if(!isset($_GET['page_id']) OR !is_numeric($_GET['page_id'])) {
Index: trunk/wb/framework/class.login.php
===================================================================
--- trunk/wb/framework/class.login.php	(revision 18)
+++ trunk/wb/framework/class.login.php	(revision 19)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: class.login.php,v 1.7 2005/04/02 06:25:54 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -32,7 +32,9 @@
 */
 
 // Stop this file from being accessed directly
-if(!defined('WB_PATH')) { exit('Direct access to this file is not allowed'); }
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 define('LOGIN_CLASS_LOADED', true);
 
Index: trunk/wb/framework/class.wb.php
===================================================================
--- trunk/wb/framework/class.wb.php	(revision 18)
+++ trunk/wb/framework/class.wb.php	(revision 19)
@@ -30,6 +30,9 @@
 This class is the basis for admin and frontend classes.
 
 */
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 
 class wb
Index: trunk/wb/framework/class.order.php
===================================================================
--- trunk/wb/framework/class.order.php	(revision 18)
+++ trunk/wb/framework/class.order.php	(revision 19)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: class.order.php,v 1.2 2005/04/02 06:25:54 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -33,7 +33,9 @@
 */
 
 // Stop this file from being accessed directly
-if(!defined('WB_PATH')) { exit('Direct access to this file is not allowed'); }
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 define('ORDERING_CLASS_LOADED', true);
 
Index: trunk/wb/framework/convert.php
===================================================================
--- trunk/wb/framework/convert.php	(revision 18)
+++ trunk/wb/framework/convert.php	(revision 19)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: convert.php,v 1.1 2005/04/15 05:38:22 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -28,39 +28,42 @@
 This file helps convert possible error-causing
 characters to equivalent non-error-causing ones
 */
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 $conversion_array = array(
-'À'=>'A','Á'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'Ae', '&Auml;'=>'A',
+'À'=>'A','?'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'Ae', '&Auml;'=>'A',
 'Å'=>'A','Ā'=>'A','Ą'=>'A','Ă'=>'A', 'Æ'=>'Ae',
 'Ç'=>'C','Ć'=>'C','Č'=>'C','Ĉ'=>'C','Ċ'=>'C',
-'Ď'=>'D','Đ'=>'D','Ð'=>'D',
+'Ď'=>'D','?'=>'D','?'=>'D',
 'È'=>'E','É'=>'E','Ê'=>'E','Ë'=>'E','Ē'=>'E',
 'Ę'=>'E','Ě'=>'E','Ĕ'=>'E','Ė'=>'E',
 'Ĝ'=>'G','Ğ'=>'G','Ġ'=>'G','Ģ'=>'G',
 'Ĥ'=>'H','Ħ'=>'H',
-'Ì'=>'I','Í'=>'I','Î'=>'I','Ï'=>'I','Ī'=>'I', 'Ĩ'=>'I','Ĭ'=>'I','Į'=>'I','İ'=>'I',
+'Ì'=>'I','?'=>'I','Î'=>'I','?'=>'I','Ī'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ê'=>'e','ë'=>'e','ē'=>'e',
+'&auml;'=>'ae', 'å'=>'a','?'=>'a','ą'=>'a','ă'=>'a',
+'æ'=>'ae', 'ç'=>'c','ć'=>'c','?'=>'c','ĉ'=>'c','ċ'=>'c',
+'?'=>'d','đ'=>'d','ð'=>'d', 'è'=>'e','é'=>'e','ê'=>'e','ë'=>'e','ē'=>'e',
 'ę'=>'e','ě'=>'e','ĕ'=>'e','ė'=>'e', 'ƒ'=>'f',
-'ĝ'=>'g','ğ'=>'g','ġ'=>'g','ģ'=>'g', 'ĥ'=>'h','ħ'=>'h',
+'?'=>'g','ğ'=>'g','ġ'=>'g','ģ'=>'g', 'ĥ'=>'h','ħ'=>'h',
 'ì'=>'i','í'=>'i','î'=>'i','ï'=>'i','ī'=>'i', 'ĩ'=>'i','ĭ'=>'i','į'=>'i','ı'=>'i',
 'ĳ'=>'ij', 'ĵ'=>'j', 'ķ'=>'k','ĸ'=>'k', 'ł'=>'l','ľ'=>'l','ĺ'=>'l','ļ'=>'l','ŀ'=>'l',
 'ñ'=>'n','ń'=>'n','ň'=>'n','ņ'=>'n','ŉ'=>'n', 'ŋ'=>'n',
 'ò'=>'o','ó'=>'o','ô'=>'o','õ'=>'o','ö'=>'oe', '&ouml;'=>'oe',
-'ø'=>'o','ō'=>'o','ő'=>'o','ŏ'=>'o', 'œ'=>'oe', 'ŕ'=>'r','ř'=>'r','ŗ'=>'r',
+'ø'=>'o','?'=>'o','ő'=>'o','?'=>'o', 'œ'=>'oe', 'ŕ'=>'r','ř'=>'r','ŗ'=>'r',
 'š'=>'s', 'ù'=>'u','ú'=>'u','û'=>'u','ü'=>'ue','ū'=>'u', '&uuml;'=>'ue',
 'ů'=>'u','ű'=>'u','ŭ'=>'u','ũ'=>'u','ų'=>'u', 'ŵ'=>'w',
 'ý'=>'y','ÿ'=>'y','ŷ'=>'y', 'ž'=>'z','ż'=>'z','ź'=>'z', 'þ'=>'t', 'ß'=>'ss', 'ſ'=>'ss'
Index: trunk/wb/framework/class.database.php
===================================================================
--- trunk/wb/framework/class.database.php	(revision 18)
+++ trunk/wb/framework/class.database.php	(revision 19)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: class.database.php,v 1.5 2005/06/23 06:34:18 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -33,7 +33,9 @@
 */
 
 // Stop this file from being accessed directly
-if(!defined('WB_PATH')) { exit('Direct access to this file is not allowed'); }
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 if(!defined('DB_URL')) {
 	//define('DB_URL', DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME);
Index: trunk/wb/framework/functions.php
===================================================================
--- trunk/wb/framework/functions.php	(revision 18)
+++ trunk/wb/framework/functions.php	(revision 19)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: functions.php,v 1.20 2005/06/23 05:47:22 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -31,7 +31,9 @@
 */
 
 // Stop this file from being accessed directly
-if(!defined('WB_PATH')) { exit('Direct access to this file is not allowed'); }
+if(!defined('WB_URL')) {
+	header('Location: ../index.php');
+}
 
 // Define that this file has been loaded
 define('FUNCTIONS_FILE_LOADED', true);
