Project

General

Profile

« Previous | Next » 

Revision 1820

Added by Dietmar about 12 years ago

+ added sql folder including websitebaker.sql, wb_search.sql
! update /install/save.php, will now created the tables with $database->SqlImport()
! update search layout in settings

View differences:

branches/2.8.x/CHANGELOG
13 13

  
14 14

  
15 15

  
16
16 Nov-2012 Build 1820 Dietmar Woellbrink (Luisehahne)
17
+ added sql folder including  websitebaker.sql, wb_search.sql
18
! update /install/save.php, will now created the tables with $database->SqlImport() 
19
! update search layout in settings
16 20
16 Nov-2012 Build 1819 Dietmar Woellbrink (Luisehahne)
17 21
# bugfix media, Undefined index /admin/media/upload.php on line 108
18 22
- removed obselete resize_img.php
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1819');
54
if(!defined('REVISION')) define('REVISION', '1820');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/install/sql/websitebaker.sql
1
--
2
-- Tabellenstruktur für Tabelle '{TABLE_PREFIX}addons'
3
--
4

  
5
DROP TABLE IF EXISTS {TABLE_PREFIX}addons;
6
CREATE TABLE IF NOT EXISTS {TABLE_PREFIX}addons (
7
  addon_id int(11) NOT NULL AUTO_INCREMENT,
8
  `type` varchar(255) NOT NULL DEFAULT '',
9
  `directory` varchar(255) NOT NULL DEFAULT '',
10
  `name` varchar(255) NOT NULL DEFAULT '',
11
  description text NOT NULL,
12
  `function` varchar(255) NOT NULL DEFAULT '',
13
  version varchar(255) NOT NULL DEFAULT '',
14
  platform varchar(255) NOT NULL DEFAULT '',
15
  author varchar(255) NOT NULL DEFAULT '',
16
  license varchar(255) NOT NULL DEFAULT '',
17
  PRIMARY KEY (addon_id)
18
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
19

  
20
--
21
-- Tabellenstruktur für Tabelle `{TABLE_PREFIX}groups`
22
--
23

  
24
DROP TABLE IF EXISTS `{TABLE_PREFIX}groups`;
25
CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}groups` (
26
  `group_id` int(11) NOT NULL AUTO_INCREMENT,
27
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
28
  `system_permissions` text COLLATE utf8_unicode_ci NOT NULL,
29
  `module_permissions` text COLLATE utf8_unicode_ci NOT NULL,
30
  `template_permissions` text COLLATE utf8_unicode_ci NOT NULL,
31
  PRIMARY KEY (`group_id`)
32
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
33

  
34
--
35
-- Daten für Tabelle `{TABLE_PREFIX}groups`
36
--
37

  
38
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', '', '');
39

  
40
-- --------------------------------------------------------
41

  
42
--
43
-- Tabellenstruktur für Tabelle `{TABLE_PREFIX}pages`
44
--
45

  
46
DROP TABLE IF EXISTS `{TABLE_PREFIX}pages`;
47
CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}pages` (
48
  `page_id` int(11) NOT NULL AUTO_INCREMENT,
49
  `parent` int(11) NOT NULL DEFAULT '0',
50
  `root_parent` int(11) NOT NULL DEFAULT '0',
51
  `level` int(11) NOT NULL DEFAULT '0',
52
  `link` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
53
  `target` varchar(7) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
54
  `page_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
55
  `page_icon` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
56
  `menu_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
57
  `menu_icon_0` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
58
  `menu_icon_1` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
59
  `tooltip` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
60
  `description` text COLLATE utf8_unicode_ci NOT NULL,
61
  `keywords` text COLLATE utf8_unicode_ci NOT NULL,
62
  `page_trail` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
63
  `template` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
64
  `visibility` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
65
  `position` int(11) NOT NULL DEFAULT '0',
66
  `menu` int(11) NOT NULL DEFAULT '1',
67
  `language` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
68
  `page_code` int(11) NOT NULL DEFAULT '0',
69
  `searching` int(11) NOT NULL DEFAULT '0',
70
  `admin_groups` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
71
  `admin_users` varchar(512) COLLATE utf8_unicode_ci NOT NULL,
72
  `viewing_groups` varchar(512) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
73
  `viewing_users` varchar(512) COLLATE utf8_unicode_ci NOT NULL,
74
  `modified_when` int(11) NOT NULL DEFAULT '0',
75
  `modified_by` int(11) NOT NULL DEFAULT '0',
76
  `custom01` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
77
  `custom02` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
78
  PRIMARY KEY (`page_id`)
79
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
80

  
81
-- --------------------------------------------------------
82

  
83
--
84
-- Tabellenstruktur für Tabelle `{TABLE_PREFIX}sections`
85
--
86

  
87
DROP TABLE IF EXISTS `{TABLE_PREFIX}sections`;
88
CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}sections` (
89
  `section_id` int(11) NOT NULL AUTO_INCREMENT,
90
  `page_id` int(11) NOT NULL DEFAULT '0',
91
  `position` int(11) NOT NULL DEFAULT '0',
92
  `module` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
93
  `block` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
94
  `publ_start` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
95
  `publ_end` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
96
  PRIMARY KEY (`section_id`)
97
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
98

  
99
-- --------------------------------------------------------
100

  
101
--
102
-- Tabellenstruktur für Tabelle `{TABLE_PREFIX}users`
103
--
104

  
105
DROP TABLE IF EXISTS `{TABLE_PREFIX}users`;
106
CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}users` (
107
  `user_id` int(11) NOT NULL AUTO_INCREMENT,
108
  `group_id` int(11) NOT NULL DEFAULT '0',
109
  `groups_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
110
  `active` int(11) NOT NULL DEFAULT '0',
111
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
112
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
113
  `confirm_code` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
114
  `confirm_timeout` int(11) NOT NULL DEFAULT '0',
115
  `remember_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
116
  `last_reset` int(11) NOT NULL DEFAULT '0',
117
  `display_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
118
  `email` text COLLATE utf8_unicode_ci NOT NULL,
119
  `timezone` int(11) NOT NULL DEFAULT '0',
120
  `date_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
121
  `time_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
122
  `language` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'EN',
123
  `home_folder` text COLLATE utf8_unicode_ci NOT NULL,
124
  `login_when` int(11) NOT NULL DEFAULT '0',
125
  `login_ip` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
126
  PRIMARY KEY (`user_id`)
127
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
128

  
129
--
130
-- Tabellenstruktur für Tabelle `{TABLE_PREFIX}settings`
131
--
132

  
133
DROP TABLE IF EXISTS `{TABLE_PREFIX}settings`;
134
CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}settings` (
135
  `setting_id` int(11) NOT NULL AUTO_INCREMENT,
136
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
137
  `value` text COLLATE utf8_unicode_ci NOT NULL,
138
  PRIMARY KEY (`setting_id`)
139
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
140

  
0 141

  
branches/2.8.x/wb/install/sql/wb_search.sql
1

  
2
--
3
-- Tabellenstruktur für Tabelle `{TABLE_PREFIX}search`
4
--
5

  
6
DROP TABLE IF EXISTS `{TABLE_PREFIX}search`;
7
CREATE TABLE IF NOT EXISTS `{TABLE_PREFIX}search` (
8
  `search_id` int(11) NOT NULL AUTO_INCREMENT,
9
  `name` varchar(255) NOT NULL DEFAULT '',
10
  `value` text NOT NULL,
11
  `extra` text NOT NULL,
12
  PRIMARY KEY (`search_id`)
13
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
14

  
15
--
16
-- Daten für Tabelle `{TABLE_PREFIX}search`
17
--
18

  
19
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 />', '');
20
INSERT INTO `{TABLE_PREFIX}search` VALUES(2, 'footer', '', '');
21
INSERT INTO `{TABLE_PREFIX}search` VALUES(3, 'results_header', '<p>[TEXT_RESULTS_FOR] "<strong>[SEARCH_STRING]</strong>":</p>\r\n<div class="searchresults">', '');
22
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>', '');
23
INSERT INTO `{TABLE_PREFIX}search` VALUES(5, 'results_footer', '</div>', '');
24
INSERT INTO `{TABLE_PREFIX}search` VALUES(6, 'no_results', '<p>[TEXT_NO_RESULTS]</p>', '');
25
INSERT INTO `{TABLE_PREFIX}search` VALUES(7, 'module_order', 'faqbaker,manual,wysiwyg', '');
26
INSERT INTO `{TABLE_PREFIX}search` VALUES(8, 'max_excerpt', '5', '');
27
INSERT INTO `{TABLE_PREFIX}search` VALUES(9, 'time_limit', '0', '');
28
INSERT INTO `{TABLE_PREFIX}search` VALUES(10, 'cfg_enable_old_search', 'true', '');
29
INSERT INTO `{TABLE_PREFIX}search` VALUES(11, 'cfg_search_keywords', 'true', '');
30
INSERT INTO `{TABLE_PREFIX}search` VALUES(12, 'cfg_search_description', 'true', '');
31
INSERT INTO `{TABLE_PREFIX}search` VALUES(13, 'cfg_show_description', 'true', '');
32
INSERT INTO `{TABLE_PREFIX}search` VALUES(14, 'cfg_enable_flush', 'true', '');
33
INSERT INTO `{TABLE_PREFIX}search` VALUES(15, 'template', '', '');
0 34

  

Also available in: Unified diff