Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1821)
+++ branches/2.8.x/CHANGELOG	(revision 1822)
@@ -13,6 +13,10 @@
 
 
 
+20 Nov-2012 Build 1822 Dietmar Woellbrink (Luisehahne)
+! update installer, strict difference between table structure and data 
+# fixed wrong constant for settings table
+! update redirct to upgrade-script in /admin/start(index.php
 16 Nov-2012 Build 1821 Dietmar Woellbrink (Luisehahne)
 ! forgot to upload the /install/save.php
 16 Nov-2012 Build 1820 Dietmar Woellbrink (Luisehahne)
Index: branches/2.8.x/wb/upgrade-script.php
===================================================================
--- branches/2.8.x/wb/upgrade-script.php	(revision 1821)
+++ branches/2.8.x/wb/upgrade-script.php	(revision 1822)
@@ -519,7 +519,7 @@
      */
     $aDebugMessage[] = "<span>Adding/updating website_signature to settings table</span>";
     $cfg = array(
-    	'website_signature' => (defined('WEBSITE_SIGNATURE') && (WEBSITE_SIGNATURE=='') ? '' : WEBSITE_SIGNATURE)
+    	'website_signature' => (defined('WEBSITE_SIGNATURE') ? WEBSITE_SIGNATURE : '')
     );
 
     $aDebugMessage[] = (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />");
@@ -529,7 +529,7 @@
      */
     $aDebugMessage[] = "<span>Adding/updating confirmed_registration to settings table</span>";
     $cfg = array(
-    	'confirmed_registration' => (defined('CONFIRMED_REGISTRATION') && (CONFIRMED_REGISTRATION=='') ? '' : CONFIRMED_REGISTRATION)
+    	'confirmed_registration' => (defined('CONFIRMED_REGISTRATION') ? CONFIRMED_REGISTRATION : '0')
     );
 
     $aDebugMessage[] = (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />");
@@ -770,12 +770,14 @@
 
 }
 
-$aDebugMessage = array();
-/**********************************************************
- * This part with changing in mod_wysiwyg will be removed in the final version
- * special workout for the tester
- *  - Remove/add PRIMARY KEY from/to "section_id" from table "mod_wysiwygs"
- */
+if(version_compare(WB_REVISION, '1800', '<'))
+{
+    $aDebugMessage = array();
+    /**********************************************************
+     * This part with changing in mod_wysiwyg will be removed in the final version
+     * special workout for the tester
+     *  - Remove/add PRIMARY KEY from/to "section_id" from table "mod_wysiwygs"
+     */
     $aDebugMessage[] = '<div style="margin-left:2em;">';
 
     $sTable = TABLE_PREFIX.'mod_wysiwyg';
@@ -793,16 +795,19 @@
     $aDebugMessage[] = $database->index_add($sTable, '', 'section_id', 'PRIMARY') ? " $OK<br />" : " $FAIL!<br />";
     $aDebugMessage[] = '</div>';
 
-if($bDebugModus) {
-// $aDebugMessage[] =
-    echo implode(PHP_EOL,$aDebugMessage);
+    if($bDebugModus) {
+    // $aDebugMessage[] =
+        echo implode(PHP_EOL,$aDebugMessage);
+    }
 }
-$aDebugMessage = array();
-echo '<h3>Step '.(++$stepID).': Updating group_id in table users</h3>';
+
+if(version_compare(WB_REVISION, VERSION, '<'))
+{
+    $aDebugMessage = array();
+    echo '<h3>Step '.(++$stepID).': Updating group_id in table users</h3>';
     /**********************************************************
     * Updating group_id in table users
     */
-
         echo '<div style="margin-left:2em;">';
         $aUsers = array();
 		// Get existing values
@@ -840,12 +845,13 @@
 
     $aDebugMessage[] = '</div>';
 
-if($bDebugModus) {
-// $aDebugMessage[] =
-    echo implode(PHP_EOL,$aDebugMessage);
-}else {
-    echo '<span><strong>'.$iTotalUsers.' users updating the group_id</strong></span>'." $OK<br />";
-    echo '</div>';
+    if($bDebugModus) {
+    // $aDebugMessage[] =
+        echo implode(PHP_EOL,$aDebugMessage);
+    }else {
+        echo '<span><strong>'.$iTotalUsers.' users updating the group_id</strong></span>'." $OK<br />";
+        echo '</div>';
+    }
 }
 
 $aDebugMessage = array();

Property changes on: branches/2.8.x/wb/upgrade-script.php
___________________________________________________________________
Modified: svn:keywords
## -1 +1,4 ##
-Date Id Revision URL
\ No newline at end of property
+Id
+Revision
+HeadURL
+Date
\ No newline at end of property
Index: branches/2.8.x/wb/admin/start/index.php
===================================================================
--- branches/2.8.x/wb/admin/start/index.php	(revision 1821)
+++ branches/2.8.x/wb/admin/start/index.php	(revision 1822)
@@ -14,11 +14,6 @@
  * @lastmodified    $Date$
  *
  */
-//$string = "pages,pages_view,pages_add,pages_add_l0,pages_settings,pages_modify,pages_intro,pages_delete,media,media_view,media_upload,media_rename,media_delete,media_create,addons,modules,modules_view,modules_install,modules_uninstall,templates,templates_view,templates_install,templates_uninstall,languages,languages_view,languages_install,languages_uninstall,settings,settings_basic,settings_advanced,access,users,users_view,users_add,users_modify,users_delete,groups,groups_view,groups_add,groups_modify,groups_delete,admintools
-//media,media_create,media_upload,media_view,preferences,preferences_view,pages,pages_modify,pages_view";
-//$regex = "/(pages)+[a-z]*[_]([a-z_0-9]+)[^,]/im";
-//preg_match_all ($regex, $string, $output);
-//
 
 $config_file = realpath('../../config.php');
 if(file_exists($config_file) && !defined('WB_URL'))
@@ -79,15 +74,28 @@
 	if($wb_revision=$database->get_one($sql)) {
 	}
 	if (version_compare($wb_revision, REVISION ) < 0) {
-		if(!headers_sent()) {
-			header('Location: '.WB_URL.'/upgrade-script.php');
-		    exit;
-		} else {
-		    echo "<p style=\"text-align:center;\"> The <strong>upgrade script</strong> could not be start automatically.\n" .
-		         "Please click <a style=\"font-weight:bold;\" " .
-		         "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
-		    exit;
-		}
+echo "<p style=\"text-align:center;\"> If the <strong>upgrade script</strong> could not be start automatically.\n" .
+     "Please click <a style=\"font-weight:bold;\" " .
+     "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
+
+echo "<script type=\"text/javascript\">
+<!--
+// Get the location object
+var locationObj = document.location;
+// Set the value of the location object
+document.location = '".WB_URL."/upgrade-script.php';
+-->
+</script>";
+
+//		if(!headers_sent()) {
+//			header('Location: '.WB_URL.'/upgrade-script.php');
+//		    exit;
+//		} else {
+//		    echo "<p style=\"text-align:center;\"> The <strong>upgrade script</strong> could not be start automatically.\n" .
+//		         "Please click <a style=\"font-weight:bold;\" " .
+//		         "href=\"".WB_URL."/upgrade-script.php\">on this link</a> to start the script!</p>\n";
+//		    exit;
+//		}
 	}
 }
 // ---------------------------------------
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1821)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1822)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '1821');
+if(!defined('REVISION')) define('REVISION', '1822');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/install/sql/wb_search.sql
===================================================================
--- branches/2.8.x/wb/install/sql/wb_search.sql	(revision 1821)
+++ branches/2.8.x/wb/install/sql/wb_search.sql	(nonexistent)
@@ -1,33 +0,0 @@
-
---
--- Tabellenstruktur für Tabelle `{TABLE_PREFIX}search`
---
-
-DROP TABLE IF EXISTS `{TABLE_PREFIX}search`;
-CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}search` (
-  `search_id` int(11) NOT NULL AUTO_INCREMENT,
-  `name` varchar(255) NOT NULL DEFAULT '',
-  `value` text NOT NULL,
-  `extra` text NOT NULL,
-  PRIMARY KEY (`search_id`)
-) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-
---
--- Daten für Tabelle `{TABLE_PREFIX}search`
---
-
-INSERT INTO `{TABLE_PREFIX}search` VALUES(1, 'header', '<h1>[TEXT_SEARCH]</h1>\r\n<form name="searchpage" action="[WB_URL]/search/index.php" method="get">\r\n<table cellpadding="3" cellspacing="0" border="0" style="width:100%; max-width:500px">\r\n<tr>\r\n<td>\r\n<input type="hidden" name="search_path" value="[SEARCH_PATH]" />\r\n<input type="hidden" name="referrer" value="[REFERRER]" />\r\n<input type="text" name="string" value="[SEARCH_STRING]" style="width: 100%;" />\r\n</td>\r\n<td width="100">\r\n<input type="submit" value="[TEXT_SEARCH]" style="width: 100%;" />\r\n</td>\r\n</tr>\r\n<tr>\r\n<td colspan="2">\r\n<input type="radio" name="match" id="match_all" value="all"[ALL_CHECKED] />\r\n<label for="match_all">[TEXT_ALL_WORDS]</label>\r\n<input type="radio" name="match" id="match_any" value="any"[ANY_CHECKED] />\r\n<label for="match_any">[TEXT_ANY_WORDS]</label>\r\n<input type="radio" name="match" id="match_exact" value="exact"[EXACT_CHECKED] />\r\n<label for="match_exact">[TEXT_EXACT_MATCH]</label>\r\n</td>\r\n</tr>\r\n</table>\r\n</form>\r\n<hr />', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(2, 'footer', '', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(3, 'results_header', '<p>[TEXT_RESULTS_FOR] "<strong>[SEARCH_STRING]</strong>":</p>\r\n<div class="searchresults">', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(4, 'results_loop', '<h3 style="margin:10px 0 3px 0;"><a href="[LINK]">[TITLE]</a></h3>\r\n<div style="font-size:0.8em;">[TEXT_LAST_UPDATED_BY] [DISPLAY_NAME] [TEXT_ON] [DATE]</div>\r\n<p style="padding: 0 0 5px 0; margin: 2px 0 10px 0; border-bottom: 1px solid #777;">[DESCRIPTION].. [EXCERPT]</p>', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(5, 'results_footer', '</div>', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(6, 'no_results', '<p>[TEXT_NO_RESULTS]</p>', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(7, 'module_order', 'faqbaker,manual,wysiwyg', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(8, 'max_excerpt', '5', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(9, 'time_limit', '0', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(10, 'cfg_enable_old_search', 'true', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(11, 'cfg_search_keywords', 'true', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(12, 'cfg_search_description', 'true', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(13, 'cfg_show_description', 'true', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(14, 'cfg_enable_flush', 'true', '');
-INSERT INTO `{TABLE_PREFIX}search` VALUES(15, 'template', '', '');

Property changes on: branches/2.8.x/wb/install/sql/wb_search.sql
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Date Author Id Revision HeadURL
\ No newline at end of property
Index: branches/2.8.x/wb/install/sql/wb_search_data.sql
===================================================================
--- branches/2.8.x/wb/install/sql/wb_search_data.sql	(nonexistent)
+++ branches/2.8.x/wb/install/sql/wb_search_data.sql	(revision 1822)
@@ -0,0 +1,22 @@
+-- phpMyAdmin SQL Dump
+-- Date of creation: 2012-11-17 12:37am
+-- Server Version: 5.1.41
+--
+-- initial data for table `{TABLE_PREFIX}search`
+--
+INSERT INTO `{TABLE_PREFIX}search` VALUES(1, 'header', '<h1>[TEXT_SEARCH]</h1>\r\n<form name="searchpage" action="[WB_URL]/search/index.php" method="get">\r\n<table cellpadding="3" cellspacing="0" border="0" style="width:100%; max-width:500px">\r\n<tr>\r\n<td>\r\n<input type="hidden" name="search_path" value="[SEARCH_PATH]" />\r\n<input type="hidden" name="referrer" value="[REFERRER]" />\r\n<input type="text" name="string" value="[SEARCH_STRING]" style="width: 100%;" />\r\n</td>\r\n<td width="100">\r\n<input type="submit" value="[TEXT_SEARCH]" style="width: 100%;" />\r\n</td>\r\n</tr>\r\n<tr>\r\n<td colspan="2">\r\n<input type="radio" name="match" id="match_all" value="all"[ALL_CHECKED] />\r\n<label for="match_all">[TEXT_ALL_WORDS]</label>\r\n<input type="radio" name="match" id="match_any" value="any"[ANY_CHECKED] />\r\n<label for="match_any">[TEXT_ANY_WORDS]</label>\r\n<input type="radio" name="match" id="match_exact" value="exact"[EXACT_CHECKED] />\r\n<label for="match_exact">[TEXT_EXACT_MATCH]</label>\r\n</td>\r\n</tr>\r\n</table>\r\n</form>\r\n<hr />', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(2, 'footer', '', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(3, 'results_header', '<p>[TEXT_RESULTS_FOR] "<strong>[SEARCH_STRING]</strong>":</p>\r\n<div class="searchresults">', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(4, 'results_loop', '<h3 style="margin:10px 0 3px 0;"><a href="[LINK]">[TITLE]</a></h3>\r\n<div style="font-size:0.8em;">[TEXT_LAST_UPDATED_BY] [DISPLAY_NAME] [TEXT_ON] [DATE]</div>\r\n<p style="padding: 0 0 5px 0; margin: 2px 0 10px 0; border-bottom: 1px solid #777;">[DESCRIPTION].. [EXCERPT]</p>', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(5, 'results_footer', '</div>', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(6, 'no_results', '<p>[TEXT_NO_RESULTS]</p>', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(7, 'module_order', 'faqbaker,manual,wysiwyg', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(8, 'max_excerpt', '5', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(9, 'time_limit', '0', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(10, 'cfg_enable_old_search', 'true', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(11, 'cfg_search_keywords', 'true', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(12, 'cfg_search_description', 'true', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(13, 'cfg_show_description', 'true', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(14, 'cfg_enable_flush', 'true', '');
+INSERT INTO `{TABLE_PREFIX}search` VALUES(15, 'template', '', '');
+-- End of file
\ No newline at end of file

Property changes on: branches/2.8.x/wb/install/sql/wb_search_data.sql
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision HeadURL
\ No newline at end of property
Index: branches/2.8.x/wb/install/sql/websitebaker.sql
===================================================================
--- branches/2.8.x/wb/install/sql/websitebaker.sql	(revision 1821)
+++ branches/2.8.x/wb/install/sql/websitebaker.sql	(revision 1822)
@@ -1,48 +1,45 @@
+-- phpMyAdmin SQL Dump
+-- Date of creation: 2012-11-17 12:37am
+-- Server Version: 5.1.41
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+-- --------------------------------------------------------
+-- Database structure for WebsiteBaker core
 --
--- Tabellenstruktur für Tabelle '{TABLE_PREFIX}addons'
+-- Replacements: {TABLE_PREFIX}, {TABLE_ENGINE}, {TABLE_COLLATION}
 --
-
-DROP TABLE IF EXISTS {TABLE_PREFIX}addons;
-CREATE TABLE IF NOT EXISTS {TABLE_PREFIX}addons (
-  addon_id int(11) NOT NULL AUTO_INCREMENT,
-  `type` varchar(255) NOT NULL DEFAULT '',
-  `directory` varchar(255) NOT NULL DEFAULT '',
-  `name` varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  `function` varchar(255) NOT NULL DEFAULT '',
-  version varchar(255) NOT NULL DEFAULT '',
-  platform varchar(255) NOT NULL DEFAULT '',
-  author varchar(255) NOT NULL DEFAULT '',
-  license varchar(255) NOT NULL DEFAULT '',
+-- --------------------------------------------------------
+--
+-- Structure of table  '{TABLE_PREFIX}addons'
+--
+DROP TABLE IF EXISTS `{TABLE_PREFIX}addons`;
+CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}addons` (
+  `addon_id` int(11) NOT NULL AUTO_INCREMENT,
+  `type` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `directory` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `name` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `description` text{TABLE_COLLATION} NOT NULL,
+  `function` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `version` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `platform` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `author` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `license` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
   PRIMARY KEY (addon_id)
-) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
+){TABLE_ENGINE};
 --
--- Tabellenstruktur für Tabelle `{TABLE_PREFIX}groups`
+-- Structure of table  '{TABLE_PREFIX}groups'
 --
-
 DROP TABLE IF EXISTS `{TABLE_PREFIX}groups`;
 CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}groups` (
   `group_id` int(11) NOT NULL AUTO_INCREMENT,
-  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `system_permissions` text COLLATE utf8_unicode_ci NOT NULL,
-  `module_permissions` text COLLATE utf8_unicode_ci NOT NULL,
-  `template_permissions` text COLLATE utf8_unicode_ci NOT NULL,
+  `name` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `system_permissions` text{TABLE_COLLATION} NOT NULL,
+  `module_permissions` text{TABLE_COLLATION} NOT NULL,
+  `template_permissions` text{TABLE_COLLATION} NOT NULL,
   PRIMARY KEY (`group_id`)
-) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
+){TABLE_ENGINE};
 --
--- Daten für Tabelle `{TABLE_PREFIX}groups`
+-- Structure of table  '{TABLE_PREFIX}pages'
 --
-
-INSERT INTO `{TABLE_PREFIX}groups` VALUES(1, 'Administrators', 'access,addons,admintools,admintools_view,groups,groups_add,groups_delete,groups_modify,groups_view,languages,languages_install,languages_uninstall,languages_view,media,media_create,media_delete,media_rename,media_upload,media_view,modules,modules_advanced,modules_install,modules_uninstall,modules_view,pages,pages_add,pages_add_l0,pages_delete,pages_intro,pages_modify,pages_settings,pages_view,preferences,preferences_view,settings,settings_advanced,settings_basic,settings_view,templates,templates_install,templates_uninstall,templates_view,users,users_add,users_delete,users_modify,users_view', '', '');
-
--- --------------------------------------------------------
-
---
--- Tabellenstruktur für Tabelle `{TABLE_PREFIX}pages`
---
-
 DROP TABLE IF EXISTS `{TABLE_PREFIX}pages`;
 CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}pages` (
   `page_id` int(11) NOT NULL AUTO_INCREMENT,
@@ -49,92 +46,93 @@
   `parent` int(11) NOT NULL DEFAULT '0',
   `root_parent` int(11) NOT NULL DEFAULT '0',
   `level` int(11) NOT NULL DEFAULT '0',
-  `link` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `target` varchar(7) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `page_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `page_icon` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `menu_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `menu_icon_0` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `menu_icon_1` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `tooltip` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `description` text COLLATE utf8_unicode_ci NOT NULL,
-  `keywords` text COLLATE utf8_unicode_ci NOT NULL,
-  `page_trail` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
-  `template` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `visibility` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `link` varchar(255){TABLE_COLLATION} NOT NULL,
+  `target` varchar(7){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `page_title` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `page_icon` varchar(512){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `menu_title` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `menu_icon_0` varchar(512){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `menu_icon_1` varchar(512){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `tooltip` varchar(512){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `description` text{TABLE_COLLATION} NOT NULL,
+  `keywords` text{TABLE_COLLATION} NOT NULL,
+  `page_trail` varchar(255){TABLE_COLLATION} NOT NULL,
+  `template` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `visibility` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
   `position` int(11) NOT NULL DEFAULT '0',
   `menu` int(11) NOT NULL DEFAULT '1',
-  `language` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `language` varchar(5){TABLE_COLLATION} NOT NULL DEFAULT '',
   `page_code` int(11) NOT NULL DEFAULT '0',
   `searching` int(11) NOT NULL DEFAULT '0',
-  `admin_groups` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
-  `admin_users` varchar(512) COLLATE utf8_unicode_ci NOT NULL,
-  `viewing_groups` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
-  `viewing_users` varchar(512) COLLATE utf8_unicode_ci NOT NULL,
+  `admin_groups` varchar(512){TABLE_COLLATION} NOT NULL DEFAULT '1',
+  `admin_users` varchar(512){TABLE_COLLATION} NOT NULL,
+  `viewing_groups` varchar(512){TABLE_COLLATION} NOT NULL DEFAULT '1',
+  `viewing_users` varchar(512){TABLE_COLLATION} NOT NULL,
   `modified_when` int(11) NOT NULL DEFAULT '0',
   `modified_by` int(11) NOT NULL DEFAULT '0',
-  `custom01` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `custom02` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `custom01` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `custom02` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
   PRIMARY KEY (`page_id`)
 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
 --
--- Tabellenstruktur für Tabelle `{TABLE_PREFIX}sections`
+-- Structure of table  '{TABLE_PREFIX}sections'
 --
-
 DROP TABLE IF EXISTS `{TABLE_PREFIX}sections`;
 CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}sections` (
   `section_id` int(11) NOT NULL AUTO_INCREMENT,
   `page_id` int(11) NOT NULL DEFAULT '0',
   `position` int(11) NOT NULL DEFAULT '0',
-  `module` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `block` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `publ_start` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
-  `publ_end` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
+  `module` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `block` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `publ_start` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '0',
+  `publ_end` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '0',
   PRIMARY KEY (`section_id`)
 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- --------------------------------------------------------
-
 --
--- Tabellenstruktur für Tabelle `{TABLE_PREFIX}users`
+-- Structure of table  '{TABLE_PREFIX}users'
 --
-
 DROP TABLE IF EXISTS `{TABLE_PREFIX}users`;
 CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}users` (
   `user_id` int(11) NOT NULL AUTO_INCREMENT,
   `group_id` int(11) NOT NULL DEFAULT '0',
-  `groups_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
+  `groups_id` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '0',
   `active` int(11) NOT NULL DEFAULT '0',
-  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `confirm_code` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `username` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `password` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `confirm_code` varchar(32){TABLE_COLLATION} NOT NULL DEFAULT '',
   `confirm_timeout` int(11) NOT NULL DEFAULT '0',
-  `remember_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `remember_key` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
   `last_reset` int(11) NOT NULL DEFAULT '0',
-  `display_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `email` text COLLATE utf8_unicode_ci NOT NULL,
+  `display_name` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `email` text{TABLE_COLLATION} NOT NULL,
   `timezone` int(11) NOT NULL DEFAULT '0',
-  `date_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `time_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `language` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'EN',
-  `home_folder` text COLLATE utf8_unicode_ci NOT NULL,
+  `date_format` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `time_format` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `language` varchar(5){TABLE_COLLATION} NOT NULL DEFAULT 'EN',
+  `home_folder` text{TABLE_COLLATION} NOT NULL,
   `login_when` int(11) NOT NULL DEFAULT '0',
-  `login_ip` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `login_ip` varchar(15){TABLE_COLLATION} NOT NULL DEFAULT '',
   PRIMARY KEY (`user_id`)
-) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
+){TABLE_ENGINE};
 --
--- Tabellenstruktur für Tabelle `{TABLE_PREFIX}settings`
+-- Structure of table  '{TABLE_PREFIX}settings'
 --
-
 DROP TABLE IF EXISTS `{TABLE_PREFIX}settings`;
 CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}settings` (
   `setting_id` int(11) NOT NULL AUTO_INCREMENT,
-  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
-  `value` text COLLATE utf8_unicode_ci NOT NULL,
+  `name` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `value` text{TABLE_COLLATION} NOT NULL,
   PRIMARY KEY (`setting_id`)
-) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
+){TABLE_ENGINE};
+--
+-- Structure of table `{TABLE_PREFIX}search`
+--
+DROP TABLE IF EXISTS `{TABLE_PREFIX}search`;
+CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}search` (
+  `search_id` int(11) NOT NULL AUTO_INCREMENT,
+  `name` varchar(255){TABLE_COLLATION} NOT NULL DEFAULT '',
+  `value` text{TABLE_COLLATION} NOT NULL,
+  `extra` text{TABLE_COLLATION} NOT NULL,
+  PRIMARY KEY (`search_id`)
+){TABLE_ENGINE};
+-- EndOfFile
\ No newline at end of file
Index: branches/2.8.x/wb/install/save.php
===================================================================
--- branches/2.8.x/wb/install/save.php	(revision 1821)
+++ branches/2.8.x/wb/install/save.php	(revision 1822)
@@ -350,7 +350,7 @@
 		}
 	}
 
-//  core tables structure and some default values
+//  core tables only structure
     $sSqlFileName = dirname(__FILE__).'/sql/websitebaker.sql';
     if(!$database->SqlImport($sSqlFileName,TABLE_PREFIX, false)) { set_error($database->get_error()); }
 
@@ -422,12 +422,20 @@
 	." (62, 'system_locked', '0')";
 	if(!$database->query($settings_rows)) { set_error($database->get_error()); }
 
+	// Admin group
+	$full_system_permissions  = 'access,addons,admintools,admintools_view,groups,groups_add,groups_delete,groups_modify,groups_view,';
+	$full_system_permissions .= 'languages,languages_install,languages_uninstall,languages_view,media,media_create,media_delete,media_rename,media_upload,media_view,';
+	$full_system_permissions .= 'modules,modules_advanced,modules_install,modules_uninstall,modules_view,pages,pages_add,pages_add_l0,pages_delete,pages_intro,pages_modify,pages_settings,pages_view,';
+	$full_system_permissions .= 'preferences,preferences_view,settings,settings_advanced,settings_basic,settings_view,templates,templates_install,templates_uninstall,templates_view,users,users_add,users_delete,users_modify,users_view';
+	$insert_admin_group = "INSERT INTO `".TABLE_PREFIX."groups` VALUES ('1', 'Administrators', '$full_system_permissions', '', '')";
+	if(!$database->query($insert_admin_group)) { set_error($database->get_error()); }
+
 // Admin user
     $insert_admin_user = "INSERT INTO `".TABLE_PREFIX."users` VALUES (1, 1, '1', 1, '$admin_username', '".md5($admin_password)."', '', 0, '', 0, 'Administrator', '$admin_email', 0, '', '', '$default_language', '', 0, '');";
 	if(!$database->query($insert_admin_user)) { set_error($database->get_error()); }
 
-// Search settings table structure and default values
-    $sSqlFileName = dirname(__FILE__).'/sql/wb_search.sql';
+// Search layout default data
+    $sSqlFileName = dirname(__FILE__).'/sql/wb_search_data.sql';
     if(!$database->SqlImport($sSqlFileName,TABLE_PREFIX, false)) { set_error($database->get_error()); }
 
 // Include WB functions file
