Project

General

Profile

« Previous | Next » 

Revision 838

Added by ryan over 16 years ago

Created 2.7.0 tag

View differences:

tags/2.7.0/CHANGELOG
1
Change Log
2
===============================================================================
3
Please note: This change log may not be accurate
4

  
5
$Id$
6

  
7
Legend:
8
+ = Added
9
- = Removed
10
# = Bugfix
11
! = Update/Change
12

  
13
------------------------------------- 2.7.0 -------------------------------------
14
21-Apr-2008 Christian Sommer
15
!	set version to 2.7
16
#	fixed bug in the PL language file of the JS calendar
17
+	added some basic functions for module developers
18
20-Apr-2008 Thomas Hornik
19
#	fix: allow external urls for search-results
20
17-Apr-2008 Thomas Hornik
21
#	fixed jscalendar's language-files
22
16-Apr-2008 Christian Sommer
23
#	fixed possible clashes with intro page feature and WB core file /pages/index.php
24
15-Apr-2008 Thomas Hornik
25
!	revert back to pagename-creation from $page_menu, instead of $page_title
26
15-Apr-2008 Christian Sommer
27
#	fixed bug introduced with Changeset 826
28
14-Apr-2008 Christian Sommer
29
+	added show_menu2() to pre-installed WB modules (many thanks to Brodie Thiesfield for this great menu function replacment)
30
!	allowed tags for multi-lingual module descriptions
31
14-Apr-2008 Thomas Hornik
32
#	fixed issue with multigroups (level 0 page-creation)
33
13-Apr-2008 Thomas Hornik
34
!	ASP: off per default. CAPTCHA: removed unneeded $admin. Filename: just convert chars like quote, doublequote, < > & to empty string.
35
#	fixed language-files
36
10-Apr-2008 Christian Sommer
37
!	fixed WB-Link Plugin to work with WB versions below 2.7 ($admin->page_is_visible() only available in WB 2.7)
38
09-Apr-2008 Christian Sommer
39
!	modified FCKEditor WB-Link Plugin to work also with WB versions below 2.7
40
07-Apr-2008 Matthias Gallas
41
#	fixed error in german laguage file
42
07-Apr-2008 Christian Sommer
43
+	added the latest FCKEditor v2.60
44
-	removed the outdated FCKEditor v2.51
45
!	set version from 2.7 (RC3) to 2.7 (RC3a)
46
07-Apr-2008 Thomas Hornik
47
!	added missing group_id in INSERT-query
48
!	removed PHP5 function stripos from installation script
49
06-Apr-2008 Christian Sommer
50
!	removed some obsolete language variables from news and form module (now defined in global WB language files)
51
!	enlarged admin tool icon to match size 50x50px of the other icons
52
05-Apr-2008 Matthias Gallas
53
!	Moved language variables for edit module CSS from modules language files to core language files
54
+	Added norwegian translation (Thanks OEH)
55
05-Apr-2008 Thomas Hornik
56
!	some small fixes: group_id/groups_id-handling, safe_mode-query in install, better work-around for issue with phplib and code-module (removed {})
57
#	fixed viewing_groups-handling in /admin/pages/add.php
58
!	imported new russian translation from User shlack. Many Thanks
59
05-Apr-2008 Christian Sommer
60
!	added workaround for template parser class
61
!	moved functions to edit module CSS files into the WB core to avoid duplication of code
62
!	minor layout change
63
!	allowed the character "-" to be used in database names
64
04-Apr-2008 Thomas Hornik
65
#	fixed: Language-redirect removed query-string from URL
66
04-Apr-2008 Christian Sommer
67
!	set WB version to 2.7 (RC3) for the next upcoming release candidate
68
03-Apr-2008 Christian Sommer
69
!	some code clean up in news/form module
70
!	small adaption of the edit CSS function file css.functions.php
71
!	updated edit module CSS functions to include backend.css into head if possible
72
#	fixed bug in Javascript decryption routines of the Output-Filter module
73
02-Apr-2008 Matthias Gallas
74
#	fixed bug with registration of users are not added to signup group
75
02-Apr-2008 Christian Sommer
76
#	added handling of missing characters to mailto encryption routines
77
!	some code clean-up in News module
78
!	fixed some layout issues with Form module (combination with Output-filter)
79
!	fixed layout issue with optional subject/body text of encrypted mailto links
80
#	fixed bug in the mailto Javascript encryption code of the Output-Filter module
81
01-Apr-2008 Christian Sommer
82
!	removed typo in English language file
83
!	added updated edit CSS functions to the News module
84
!	added updated edit CSS functions to the Form module
85
31-Mar-2008 Christian Sommer
86
#	fixed bug in output filter (mailto links with HTML entities in optional part)
87
29-Mar-2008 Christian Sommer
88
!	added missing translation to Dutch language file (thanks Bramus)
89
28-Mar-2008 Thomas Hornik
90
!	Some cleanup in search.php
91
!	WYSIWYG: changed field text to LONGTEXT, too.
92
25-Mar-2008 Matthias Gallas
93
!	Updated Dutch language file (Thanks to Bramus)
94
26-Mar-2008 Tomas Hornik
95
#	fixed E_NOTICE-message in admin/modules/details.php
96
25-Mar-2008 Thomas Hornik
97
+	search: added search_time_limit in settings (mainly for sites with PHP < 4.3.3 and slow search)
98
+	search: added missing code to allow query of external data and to process the search data itself
99
25-Mar-2008 Matthias Gallas
100
#	Fixed missing <body> tag in Admin Interface (ticket #572)
101
24-Mar-2008 Matthias Gallas
102
!	Updated Danish Language file (Thanks to Achrist)
103
! 	Added class nixhier to frontend.css from form and news Modul (required for ASP)
104
24-Mar-2008 Thomas Hornik
105
+	Added RU-language-files, provided by user shlack; converted to entities.
106
#	search: great speed-up with large pages - requires PHP >= 4.3.3; small speed-up for PHP < 4.3.3
107
#	FCK-Editor: loads large pages faster
108
-	removed include/captcha/asp.php. css have to be added to module's css-files.
109
23-Mar-2008 Matthias Gallas
110
! 	Updated form modul for valid output, removed all javascript (Big thanks to BerndJM)
111
17-Mar-2008 Thomas Hornik
112
#	fixed an issue with utf8_check() (too slow with many ~100KB pages)
113
15-Mar-2008 Thomas Hornik
114
#	menulink: link can be menulink or subpage of menulink, too
115
#	call_captcha: added parameter 'style', fixed some issue with parameter 'image' and text-style captchas
116
13-Mar-2008 Christian Sommer
117
! 	adjusted error/warning templates to the updated backend layout
118
13-Mar-2008 Matthias Gallas
119
! 	replaced one icon in admin interface
120
12-Mar-2008 Matthias Gallas
121
# 	fixed loading time and some display issues in IE6 of the new admin interface
122
!	tweaked the new admin interface a little bit
123
12-Mar-2008 Christian Sommer
124
! 	adjusted background color of installation and upgrade script
125
! 	set version number to 2.7 (RC2) for the upcoming second release candidate
126
! 	removed hardcoded /admin folder strings from WB core files where possible
127
! 	added WB home folder fix proposed by the forum member spawnferkel (thanks)
128
! 	defined <strong> and <em> instead of <b> and <i> as default tags
129
12-Mar-2008 Thomas Hornik
130
+	CAPTCHA: added parameter to call_captcha (can be one of: 'image', 'input' or 'text')
131
11-Mar-2008 Christian Sommer
132
#	fixed issue with output filter (all .@ in descriptive mailto part: >xxxxx</a> were replaced; now restricted to emails)
133
#	fixed issue with WYSIWYG pages (appears if backend language and page frontend language differs)
134
08-Mar-2008 Thomas Hornik
135
#	fixed issue with news and end-date
136
04-Mar-2008 Christian Sommer
137
#	fixed issue with smart view URL link
138
03-Mar-2008 Thomas Hornik
139
#	fixed an issue with text-captcha (default text got saved). Changes default text.
140
#	fixed an issue with highlighting
141
02-Mar-2008 Thomas Hornik
142
#	added missing text in language-files
143
+	added missing sorting to language dropdown in admin/pages/settings.php
144
01-Mar-2008 Thomas Hornik
145
#	fixed ticket #562, applied changes from user tavitar with some own additions
146
+	added check for AddDefaultCharset to install
147
29-Feb-2008 Thomas Hornik
148
#	fixed issue in pagename generation if AddDefaultCharset is set (as work-around).
149
28-Feb-2008 Thomas Hornik
150
#	fixed hebrew transliteration-table. Thanks to forum-member iti.
151
28-Feb-2008	Christian Sommer
152
#	added bugfix from the forum member tavitar to fix an issue with multiple groups (module permission do not add up properly)
153
25-Feb-2008	Matthias Gallas
154
+	added missing Dutch language files for core modules
155
24-Feb-2008 Thomas Hornik
156
#	issue with menulink in upgrade-script. Fixed.
157
23-Feb-2008 Christian Sommer
158
!	suppressed warnings in initialize.php if constant already defined; modified upgrade script to make FCK the new default editor
159
#	fixed bug in upgrade script (WBMailer setting)
160
22-Feb-2008 Christian Sommer
161
#	some layout changes on the upgrade-script, fixed error in precheck
162
#	restricted database name and table prefix to "a-zA-Z0-9_" (avoid problems with non quoted table/field names)
163
20-Feb-2008 Thomas Hornik
164
!	added workaround for language sorting-problem
165
20-Feb-2008	Christian Sommer
166
!	added WYSIWYG DB update and missing WBMAILER settings to upgrade script (added some status messages)
167
!	modified upgrade script and suppressed headers already send message (avoid issues with error reporting E_ALL)
168
#	added the FCKEditor module PHP connector fix found by the forum member Luisehahne (thanks man)
169
!	Updated upgrade script (added WB2.7 basic styles, pre-checks and disclaimer)
170
19-Feb-2008	Matthias Gallas
171
!	Updated upgrade script
172
!	Changed language sorting from directory to name (needs additional to be escaped!)
173
+	added new languages to install script
174
#	fixed some issues and typos in languagefiles
175
18-Feb-2008 Thomas Hornik
176
+	Converted and added some old language-files (BG, CS, PL, RU)
177
18-Feb-2008	Christian Sommer
178
#	Fixed two broken links
179
!	Modified news module to create a default index.php during installation (directory spoofing)
180
17-Feb-2008	Matthias Gallas
181
-	Removed colloquially german language files as the filename causes issues
182
17-Feb-2008	Christian Sommer
183
!	removed German Umlauts in some language file (PHP comments)
184
#	fixed language bug (backend language switched to the pages language viewed in frontend)
185
16-Feb-2008	Thomas Hornik
186
!	updated upgrade-script (menulink)
187
13-Feb-2008 Thomas Hornik
188
+	allow externl links in menulink-module
189
#	fixed an highlighting-issue: highlighting a page with more than one sections mangled umlauts in the second to last section.
190
10-Feb-2008 Matthias Gallas
191
#	fixed some errors in standard german language file
192
+	added new colloquially german language file
193
10-Feb-2008 Thomas Hornik
194
#	CAPTCHA: Wrong text for calc_ttf-captcha. 
195
10-Feb-2008 Christian Sommer
196
#	fixed E_NOTICE warning with already defined module frontend constants
197
-	removed all stuff other than page_content from the blank template
198
!	adapted color for onmouseover effect
199
!	added disclaimer to the upgrade-script as the script is not sufficiently tested yet
200
!	made Website Header field in Settings visible per default
201
!	modified all templates (display Website Header, use show_menu instead of page_menu)
202
!	added highlighting of active input elements to all WB backend areas; changed some colors
203
!	removed hover highlighting of input fields to avoid possible confusion
204
!	added visualization of wrong/empty input fields
205
#	fixed a bug with re-enter admin password
206
09-Feb-2008 Christian Sommer
207
!	modified some colors and CSS definitions of pages, media and section interface
208
#	output_filter: fixed bug in regular expression (eats up characters in mailto links)
209
#	output_filter: removed word boundary from mailto regex part
210
#	fixed bug in menu_link module (IE 7 did not show the select boxes at all)
211
#	fixed bug in user signup
212
!	output_filter: added word boundary for the mailto regex part
213
09-Feb-2008 Thomas Hornwik
214
!	jsadmin: added latest changes from swen, fixes most (or all?) issues.
215
08-Feb-2008 Matthias Gallas
216
+	added kewyword id to all new files
217
08-Feb-2008 Christian Sommer
218
-	Removed admin module mail_filter
219
+	Added revised version of the output filter module
220
08-Feb-2008 Thomas Hornik
221
!	module news: set focus on captcha-field if user have to re-enter captcha
222
!	Changed maxlength of captcha-fields - don't tell the bots how many chars we want to have.
223
-	Removed unused function is_access_denied() from search
224
04-Feb-2008 Thomas Hornik
225
!	email-addresses are excluded from search-results page.
226
#	Fixed possible XSS in account/login.php and forgot-form.php
227
04-Feb-2008 Christian Sommer
228
#	allowed usage of tags in settings fields: website_header, website_footer
229
03-Feb-2008 Thomas Hornik
230
#	out-of-date default page isn't shown anymore, instead shows next public page.
231
#	fck_wbmodules.php: foreign privates pages in dropdown, fixed.
232
03-Feb-2008 Matthias Gallas
233
+	added kewyword id to all new files
234
02-Feb-2008 Christian Sommer
235
#	fixed wrong redirect in /admin/images
236
02-Feb-2008 Thomas Hornik
237
!	search shows email-addresses, even if email-filter is activated (on page with highlighting). Fixed.
238
+	Added missing text in languages files for jscalendar
239
!	settings: pages-directory '/' will be converted to '' (empty string) on save.
240
!	changed last remaining call to my_htmlspecialchars() to htmlspecialchars()
241
#	fixed path in jscalendar-css
242
01-Feb-2008 Christian Sommer
243
#	Added default index.php to all folders (directory spoofing)
244
01-Feb-2008 Thomas Hornik
245
#	Added some missing add_slashes(), get_post_escaped(), and strip_tags() for $_POST, $_GET and $_REQUEST-data. Also for $_SERVER['PHP_SELF'].
246
#	Fixed possible XSS-vulnerability in wb/search/search.php
247
31-Jan-2008 Thomas Hornik
248
!	Adjusted clock-red icon to match wb colors
249
#	admin/pages: the parent dropdown-list in index.php and settings.php showed foreign private pages, too. Fixed.
250
+	Added multi-group to upgrade-script
251
30-Jan-2008 Christian Sommer
252
#	fixed bug with text Captcha (input was restricted to 10 chars.) and a small layout issue
253
30-Jan-2008 Thomas Hornik
254
#	registered pages didn't appear in menu. fixed.
255
!	Updated upgrade-script. (Some upgrades still missing)
256
29-Jan-2008 Thomas Hornik
257
#	strtotime()'s behavior differ in PHP4 and PHP5.
258
	Had to fix some issues in admin/pages/sections and module news.
259
#	Security bugfix: Text file for text-captcha was world-readable. Moved to database.
260
#	Text-captcha: empty line in text file, following a question, was accepted as answer. Fixed.
261
28-Jan-2008 Matthias Gallas
262
#	Replaced all special chars in language files with htmlentities or unicode
263
+	Added some missing lines in language files
264
+	Added missing keyword Id
265
28-Jan-2008 Christian Sommer
266
#	fixed issue with top bar icon alt tag
267
!	added some more backend layout modifications
268
!	corrected bug in NL.php language file
269
!	added missing session cookie forgotten in Changeset 593
270
!	added possibility to select the default backend language during installation process
271
!	Re-introduced Changeset 593 (filename in pages/ from page_title instead of menu_title)
272
#	Fixed some bugs in the Javascript Admin modul
273
28-Jan-2008 Thomas Hornik
274
+	Allow a user-supplied From-Name in form-settings for email und success-email.
275
!	changeset 627: menu_link and search/search.php needs some minor changes, too.
276
+	Added Text-CAPTCHA on request. The captcha-text will be stored in temp/.captcha_text.txt
277
27-Jan-2008 Christian Sommer
278
!	fixed CSS background color of the installer CSS
279
!	replaced static text with variable text from language file
280
!	introduced the WB 2.7 backend style developed by Michael Brinsteiner (escpro), thanks man
281
!	added missing ID tags
282
27-Jan-2008 Christian Sommer
283
!	added missing ID tags
284
!	added default language for users to avoid empty language fields
285
27-Jan-2008 Matthias Gallas
286
+	added kewyword id to new file
287
#	Fixed some spelling errors in german language file
288
27-Jan-2008 Thomas Hornik
289
!	Module form: user supplied input isn't lost on captcha-failure anymore.
290
#	fixed 100%-cpu-load-event in CAPTCHA admin-tool.
291
+	Added Calc_ttf_image CAPTCHA.
292
!	Changed captcha/captcha.php to use table-layout for CAPTCHA.
293
!	Some minor changes in CAPTCHA-code.
294
!	Added some text to CAPTCHA admin-tool.
295
#	Module form: dropdown "success page" listed foreign private pages, too. Fixed.
296
+	Added preview-images for CAPTCHA.
297
!	Improved security: CAPTCHAS can't be loaded from outside WB
298
!	CAPTCHA ttf_image: added variant. Adjusted character-pool and one background for better readability.
299
26-Jan-2008 Christian Sommer
300
!	changed WYSIWYG content field from text to longtext (allows more than 65'534 characters) 
301
+	Added Javascript Admin module (developed by Stepan Riha, adapted for WB2.7 by Swen Uth)
302
26-Jan-2008 Matthias Gallas
303
#	fixed bug in Javascript Admin module
304
+	Added new language files
305
+	Added keywords to files where they are missing
306
26-Jan-2008 Thomas Hornik
307
!	fixed some issues with CAPTCHA and ASP. Adjusted baseline of '*' in supplyed fonts to meet
308
	baseline of numbers. Added counter to ttf_image generation-loop. Removed now unneeded GD-lib verification.
309
	Improved ASP in news-module.
310
+	module news: added publish_until field to control the visibility of a news-posting by date and time
311
!	added strongly "condensed" fonts with many intersections for ttf-CAPTCHA as default fonts.
312
	It should be very difficult for spam-bots to recognize intersected characters.
313
25-Jan-2008 Christian Sommer
314
!	removed changes introduced with changeset 593 (we need to think off if we want to implement that feature)
315
25-Jan-2008 Thomas Hornik
316
+	Added new CAPTCHA. Adapted core: signup and modules: news and form.
317
+	Added Advanced Spam Protection (ASP) to core: signup and modules news and form.
318
#	module news: it was possible to post comments to postings with commenting disabled
319
	or to inactive postings. Fixed
320
24-Jan-2008 Thomas Hornik
321
!	Generate filename in pages/ from page_title instead of menu_title.
322
24-Jan-2008 Christian Sommer
323
#	fixed bug in Codepress integration (if codepress framework not installed)
324
+	added language support to all integrated modules (except for news and form module)
325
#	fixed another E_NOTICE warning
326
24-Jan-2008 Matthias Gallas
327
+	Added keywords to files where they are missing
328
23-Jan-2008 Christian Sommer
329
+	Added German language file for WB 2.7
330
22-Jan-2008 Christian Sommer
331
+	Added language support for the Admin tools (backup, reload, mail_filter)
332
-	Removed all admin tool text outputs from global language file to module language files
333
!	Introduced language support for the overview page of the Admin tools
334
+	Added function get_variable_content to allow extraction of variable content without including files
335
!	Changed language support for Addons -> Moduls -> Details
336
22-Jan-2008 Matthias Gallas
337
+	Added keywords to new mail filter files
338
22-Jan-2008 Thomas Hornik
339
+	manage-sections: changed calendar-icon to clock-icon, added second icon to empty date-field.
340
21-Jan-2008 Christian Sommer
341
!	Removed the manage section icon from the page admin (sections managed by publish by date function) 
342
#	Fixed bug with the edit module CSS file implementation (IE7, Opera)
343
21-Jan-2008 Thomas Hornik
344
+	Unique session-identifier for each website baker installation. fixes #354
345
20-Jan-2008 Christian Sommer
346
#	fixed E_NOTICE-warning in save.php when input data was wrong
347
+	added the new admin tool email output filter which allows to transform
348
	emails before displaying them on the frontend
349
20-Jan-2008 Thomas Hornik
350
!	upgrade-script.php: fixed mysql_error() handling
351
!	upgrade-script.php: added code to update menu_links
352
#	fixed a typo in upgrade-script.php
353
!	updated admin/pages/sections.php to changed jscalendar-api from changeset 571
354
!	module menu_link: after adding a menu_link, the anchor dropdown shows "#"; fixed 
355
#	fixed E_NOTICE-warning in news-module (about SECTION_ID in comment.php)
356
19-Jan-2008 Christian Sommer
357
!	Reduced the success time out and set WYSIWSY background to white
358
#	Fixed some errors in form module (only in conjunction with E_ALL)
359
!	Added support to configure the mailer settings via the backend
360
19-Jan-2008 Matthias Gallas
361
#	Fixed bug in news modul with missing variable PAGE_DIRECTORY
362
+	Added keywords to new files
363
19-Jan-2008 Thomas Hornik
364
-	Module news: removed old calendar
365
+	Module news: adapted news to use the new include/jscalendar
366
+	added installation-instructions to include/jscalendar
367
#	Module code: curly backets get deleted by pparse() from phplib. fixed
368
+	Module menu_link: added dropdown-listbox to select anchor
369
!	upgrade-script: added code to convert old menu_links to new ones (partly)
370
18-Jan-2008 Matthias Gallas
371
!	Updated news modul with features from the advanced news modul
372
!	Updated form modul with features from the advanced form modul
373
#	Fixed hardcoded /pages issue in intro page feature
374
+	Added example .htaccess to parse .html files, fixed bug in changeset 555
375
!	Revoked parts of changeset 547 and again introduced changeset 540
376
+	Added keywords to modules/fckeditor and all other new files
377
18-Jan-2008 Thomas Hornik
378
#	fixed two E_NOTICE-warnings in admin/pages/index.php
379
+	added new module-based search-function
380
+	added new publish-by-date code
381
17-Jan-2008 Christian Sommer
382
#	fixed bug in frontend login and multiple groups (only in conjunction with E_ALL)
383
!	removed the PAGE_EXTENSION from frontend login
384
17-Jan-2008 Matthias Gallas
385
#	Reintroduced changes from changeset 520 and 540 wich where overwritten 
386
	by changeset 546
387
#	Revoked changeset 541 end removed all PAGE_EXTENSION variables and the related
388
	option in WB settings as this function only works on Apache Servers
389
	together with .htaccess and mod_rewrite
390
+	Added keywords to file menu_link/uninstall.php and new admintools files
391
17-Jan-2008 Christian Sommer
392
!	added the "users in multiple groups" feature (closes parts of ticket #546)
393
16-Jan-2008 Thomas Hornik
394
!	changed admin/pages/save.php to allow hidden config-elements in table search.
395
!	changed module menu_link: added table mod_menu_link, fixed page-deleting-bug,
396
	fixed odd behavior in case of menu_link as default-page.
397
#	changing PHP-error-level within website baker does not work - fixed (fixed ticket 532)
398
14-Jan-2008 Matthias Gallas
399
#	Replaced hardcoded .php with the variable PAGE_EXTENSION for the use in pagenames.
400
	(!!Attention!! To get extenions other than .php working additional fixes are necessary!)
401
#	Replaced the variable PAGE_EXTENSION with hardcoded .php on all places where the
402
	pathes points to WB Corefiles with the page extension .php
403
#	Replaced hardcoded text in login.php with language variables (fixes ticket 386)
404
14-Jan-2008 Christian Sommer
405
!	added a missing </tr> tag
406
#	re-introduced bugfix of Changeset 472 (fixes ticket 402) accidentally 
407
	removed by Changeset 529 (enhanced pages admin)
408
13-Jan-2008 Christian Sommer
409
#	moved administration tools from Settings to the new section Admin-Tools
410
#	this bugfix closes the ticket 529 (WB upgrades modules with identical version)	
411
!	increased redirection time after success message, corrected HOME link of the login panel
412
!	updated PHPMailer framework to version 2.0.0 (/include/phpmailer)
413
#	this bugfix closes ticket 412 (direct call of admin/settings/save.php clears database)
414
#	fixed error with redirection to admin panel after installation
415
12-Jan-2008 Christian Sommer
416
!	introduced smart URL detection for the 'View' menu in the WB backend
417
	(if page_id is set, redirect to this page instead of the root)
418
!	introduced the enhanced pages admin dialogue (thanks to icouto)
419
11-Jan-2008 Christian Sommer
420
+	added the FCKEditor module files missing in Changeset 527 (/modules/fckeditor)
421
-	removed the hmtlarea files in /modules/htmlarea
422
!	set the fckeditor as the new default editor /install/save.php
423
!	Updated function: register_frontend_modfiles in /framework/frontend.functions.php
424
	(added constants MOD_FRONTEND_CSS_REGISTERED, MOD_FRONTEND_JAVASCRIPT_REGISTERED)
425
11-Jan-2008 Matthias Gallas
426
!	Update codepress to Version 0.9.6
427
!	Update phplib to Version 7.4a
428
09-Jan-2008 Matthias Gallas
429
!	Upgrade pclzip to the newer more php5 complaint version 2.6, see ticket #526
430
#	Fixed ticket #542 (Thanks to Thorn)
431
23-Dec-2007 Matthias Gallas
432
!	Changed all copyright notices to include now 2008
433
21-Sep-2007 Matthias Gallas
434
#	Fixed a typo in /framework/frontend.functions.php cause that websites using
435
	the new register_frontend_modifles() functions do not validate
436
24-Jan-2007 Christian Sommer
437
!	Replaced some core files to allow configuration of wbmailer via admin settings panel
438
------------------------------------- 2.6.7 -------------------------------------
439
02-Jan-2007 Christian Sommer
440
+	Added missing converting file for changeset [504]
441
------------------------------------- 2.6.6 -------------------------------------
442
01-Jul-2007 Matthias Gallas
443
#	Fixed converting issue with some ISO-charsets and speeded up converting on large pages (thanks to Thorn)
444
01-Jul-2007 Ryan Djurovich
445
#	Fixed bug where error message not displayed when script fails to create a page
446
#	Fixed bugs introduced in [484]
447
14-May-2007 Matthias Gallas
448
+	Added support for ISO-8859-6.(Thanks to thorn)
449
12-May-2007 Christian Sommer
450
+	Replaced functions page_css and page_javascript by register_frontend_modfiles
451
+	Added function register_backend_modfiles to allow backend modules to use optional CSS and JS files
452
+	Added the JS framework codepress to allow syntax highlighting for JS, HTML, PHP code (textarea)
453
+	Added the new function register_frontend_modfiles to the built in templates
454
08-May-2007 Matthias Gallas
455
+	Added wrapper to functions.php if mb_string is not available (Thanks to thorn)
456
+	Added new functions page_css and page_javascript to the built in templates
457
+	Added search highlight class to css files of the built in templates
458
30-Apr-2007 Matthias Gallas
459
#	Fixed ticket #392; root_parent not being set correctly (Thanks to eggsurplus)
460
10-Apr-2007 Matthias Gallas
461
+	Optimized search and highlighting funktions (Thanks to thorn)
462
03-Apr-2007 Matthias Gallas
463
#	Fixed a bug in menulink; if you deleted a menulink page the linked page was also deleted
464
	in the pages directory (Special thanks to "Funky_MF" for the fix)
465
01-Apr-2007 Matthias Gallas
466
#	Fixed issues with some languages when UTF8 is used. Removed all htmlentites
467
	from the code (revoked changeset 396) and added new functions instead. Adapted the
468
	search and the highlighting to use the new functions. With this changes WB can now
469
	be used with charset UTF8 for all languages. Very special thanks to Thorn who wrote
470
	and tested this changes.
471
12-Mar-2007 Matthias Gallas
472
+	Added multilingual support to search
473
03-Mar-2007 Matthias Gallas
474
+	Added new function for highlighting search results in the content area
475
	(Special thanks to "thorn" and "Funky_MF")
476
#	Fixed some issues in search with special chars
477
	(Special thanks to "thorn" and "Funky_MF")
478
22-Feb-2007 Christian Sommer
479
#	Fixed bug in changeset 428 (page files were not deleted in /pages folder due to a typo in wb/framework/function.php)
480
16-Feb-2007 Christian Sommer
481
!	Suppressed PHP warnings and errors when reading empty intro.php
482
16-Feb-2007 Christian Sommer
483
#	Applied fix to enable parsing of PHP code in the intro.php 
484
12-Feb-2007 Christian Sommer
485
!	Added functions page_css and page_javascript which allow to include optional
486
	module files module.css and module.js into the <head> section. This allows to 
487
	create valid (X)HTML, as CSS definitions of modules are included in the head section
488
12-Feb-2007 Christian Sommer
489
!	Security enhancement (reduced number of login trials from 50 to 3)
490
02-Feb-2007 Matthias Gallas
491
#	Applied fix for ticket #380 (Thanks to pcwacht)
492
30-Jan-2007 Ryan Djurovich
493
#	Applied fix for ticket #376
494
29-Jan-2007 Matthias Gallas
495
+	Added new variable $MODULE_DESCRIPTION wich allows to have optional a language
496
	specific description of the modules in the language files of the modules.
497
21-Jan-2007 Matthias Gallas
498
#	Fixed issue in the search table entries of form modul
499
13-Jan-2007 Matthias Gallas
500
#	Fixed some bugs in rss.php
501
07-Jan-2007 Matthias Gallas
502
#	Fixed error when uninstalling the news modul
503
02-Jan-2007 Matthias Gallas
504
+   Added id keywords to all missing files
505
#	Fixed issue with Permissions for pages sections
506
27-Dec-2006 Matthias Gallas
507
#	Fixed form modul stores empty records
508
------------------------------------- 2.6.5 -------------------------------------
509
25-Dec-2006 Ryan Djurovich
510
!	Changed links to WB help website
511
24-Dec-2006 Matthias Gallas
512
#	Fixed some minor javascript errors in admin (thanks to pcwacht)
513
#	Fixed root_parent doesn't get updated when moving item in menu (#305)
514
!	Changed all copyright notices to include now 2007
515
23-Dec-2006 Matthias Gallas
516
#	Fixed IE allows to set a page as parent of itself (#320)
517
#	Fixed problem with Page Title has to be escaped (#287)
518
#	Fixed the possibility to call the index.php of the templates directly in the browser (#291)
519
21-Dec-2006 Matthias Gallas
520
#	Fixed missing message when adding a site without page title (#300)
521
21-Dec-2006 Ryan Djurovich
522
#	Fixed bug with captcha script (#346)
523
20-Dec-2006 Matthias Gallas
524
#	Fixed Return to Search Results Page (#365)
525
!	Set Version to 2.6.5
526
-	Removed Changeset 365 because this will be a part of WB 2.7.x
527
#	Fixed a little typo error in class.admin.php (#364)
528
26-Nov-2006 Ryan Djurovich
529
+	Added new script that could possibly be apart of 2.7.x as a replacement
530
	for having the pages directory 
531
17-Nov-2006 Matthias Gallas
532
#	Fixed fatal error in line 46 news/comment.php (thanks to eki)(#358)
533
15-Nov-2006 Matthias Gallas
534
#	Fixed again intropage doesn't work (#71)
535
20-Oct-2006 Matthias Gallas
536
+	Added phpmailer class (thanks to doc)
537
+	Added Remember-expanded-pages-in-admin (thanks to ephraimt)
538
+	Added List sorting in admin area (thanks to rsmith)
539
#	Fixed table width 100% are wrong displayed in container templates
540
	when IE is used (#350)
541
#	Fixed large space between menupoints in IE (#349)
542
#	Fixed Website description is not displayed when no page description
543
	available (#348)
544
#	Fixed group images in news modul cannot be stored (#342)
545
#	Fixed Typo in form/save_field.php (#341)
546
#	Fixed files in /pages/posts folder are not deleted (#340)
547
#	Fixed specialchars problem in the news modul (#339)
548
#	Fixed news modul stores empty records (#338)
549
#	Fixed Captcha didn't work in news comments (#337)
550
#	Fixed various php notices (#334)
551
+	Added new upgrade_function (thanks to kozmoz)
552
#	Fixed addons table isn't updated when a modul is updated (#332)
553
#	Fixed spelling errors in the signup2.php (#330)
554
#	Fixed MySQL 5.x missing default values for INT fields in all system
555
	and modules tables (#329)
556
#	Fixed installer does not insert admin user (#328)
557
+	Added support for getting page ID of page that referred search
558
	request (#327) (thanks to brofield)
559
#	Fixed search results generate invalid XHTML and notify warnings (#326)
560
Stefan Braunewell
561
#	Fixed Field 'last_reset' doesn't have a default value (#313)
562
+	Added get_post_escaped to wb class which automatically calls add_slashes
563
	on get_post output and used it in form/save_field.php
564
------------------------------------- 2.6.4 -------------------------------------
565
20-May-2006 Ryan Djurovich
566
#	Fixed security issues related to #237
567
#	Fixed typo in news save comment page (#282)
568
#	Fixed typo in news delete post page (#283)
569
!	Added multi-submission protection to form module (#119)
570
#	Added notice for when PHP Session Support appears to be disabled in installer,
571
	even if it is enabled and the problem actually lies in the users browser (#154)
572
19-May-2006 Ryan Djurovich
573
#	Fixed problem in forgotten login form where email field is too short (#207)
574
#	Fixed typo in forgotten login details email (#190)
575
15-May-2006 Stefan Braunewell
576
#	Fixed security issues (#237)
577
03-May-2006 Stefan Braunewell
578
#	Fixed problems with pre-2.6.0 modules in section list
579
#	Fixed e-mail bug caused by From: headers in internal mail function calls
580
	(#189)
581
#	E-mail validation in install script now accepts new top-level domains
582
	(#162)
583
#	Error status is now overwritten by next database query (#182)
584
#	Fixed obscure problem in htmlarea install script
585
------------------------------------- 2.6.3 -------------------------------------
586
19-Mar-2006 Stefan Braunewell
587
#	Fixed ticket #146: problems removing groups from viewers list of a page
588
16-Mar-2006 Stefan Braunewell
589
!	Changed link target selection. Now self, top and new. (Ticket #145)
590
#	Fixed ticket #143. Charset setting is now used in admin login and forgot
591
	password pages.
592
#	Some changes to the SQL code in the install script for improved 
593
	compatibility with new MySQL versions
594
#	Fixed ticket #134 - error on browsing media.
595
+	Improved backup module: new choice between full database or WB-related
596
	backup.
597
#	Fixed ticket #141 - admin now sees all folders in media
598
#	Fixed e-mail sending problems due to additional parameter in mail call.
599
#	Applied fix regarding ticket #138: new users now get deleted if
600
	sending e-mail fails.
601
#	Fixed ticket #137: Last Reset timer not reset in frontend forgotten 
602
	password process
603
#	Removed duplicate expression from modules/news/install.php which caused
604
	problems in installation
605

  
606
01-Mar-2006 Stefan Braunewell
607
#	Fixed ticket #68 - Safari problem with displaying all parents.
608
#	Fixed ticket #136 - mailing forgotten password in admin login screen leads 
609
	to fatal error.
610
!	Renamed tag [PROCESSTIME] to [PROCESS_TIME]
611
------------------------------------- 2.6.2 -------------------------------------
612
03-Feb-2006 Stefan Braunewell (very big special thanks to John and Alex)
613
#	Fixed ticket #104 - commas in form field descriptions not allowed.
614
#	Cookie REMEMBER_KEY wasn't cleared in account/logout 
615
	and expiration date is now set to time in the past.
616
#	Smart login not working.
617
!	Changed mail calls to new function $wb->mail.
618
#	Form: ticket 124 added captcha settings check 
619
#	Ticket 118 added formfield type to check for email/text 
620
#	Ticket 115 changed comparision /modules/form/view.php 
621
#	Added correct timecheck in form submissions
622
!	Changed captcha.php call to include timestamp
623
!	Changed the e-mail validation code and added a mail function to class wb.
624
!	Forgotten password: if sending of e-mail fails, restore old password.
625
	Ticket #110
626
!	Added more charset options. Ticket #102 - thanks to ruebenwurzel!
627
!	Character encoding setting also affects admin backend.
628
	Mentioned in ticket #102.
629
!	Reintroduced page languages setting. If switched to off, page
630
	languages are only used to determine the language file for the
631
	universal texts. If on, displayed page and menu are affected by
632
	the language session variable.
633
#	Fixed bugs in show_breadcrumbs code and added parameter "depth"
634
	to set the number of levels to be show.
635
#	Fixed a bug where access settings of registered and private pages
636
	were displayed incorrectly.
637
#	Fixed captcha being cached.
638
#	Added an exit call after every heading("Location:...")
639
	redirector to prevent unwanted execution of code.
640
#	Bug #122. Replaced empty field check by check that setting name is
641
	not "wb_version".
642
#	Replaced all remaining occurrences of '/media' by MEDIA_DIRECTORY - bug #108.
643
#	Fixed bug #99 and two additional instances of typo 
644
	catpcha instead of captcha.
645
#	Fixed some typos
646
#	Fixed some notices and warnings.
647
#	Fixed bug #105 - back buttons in addon detail pages not editable.
648
!	Replace 'admin' by 'wb' in all account pages. 
649
!/#	Moved print_success and print_error code to class.wb.php.
650
	Added correct parameters to these functions in account pages. 
651
------------------------------------- 2.6.1 -------------------------------------
652
12-Dec-2005 Ryan Djurovich
653
#	Fixed security vulnerability in class.login.php
654
#	Fixed typo in EN language file
655
#	Fixed captcha problems (when feature is disabled) in form module and sign-up
656
!	Added charset encoding to admin templates
657
!	Added extra code to check for selection of addon upon uninstalling
658
#	Fixed bugs in RSS news feeder
659
#	Fixed bug with PAGE_DESCRIPTION not being set on any page
660
------------------------------------- 2.6.0 -------------------------------------
661
28-Nov-2005 Ryan Djurovich
662
+	Added default charset option to (advanced) settings
663
#	Form module email fields now have email address validation
664
#	Fixed spacing in form submissions
665
27-Nov-2005 Ryan Djurovich
666
+	Added captcha verification to sign-up form
667
+	Added Captcha to News module
668
24-Nov-2005 Stefan Braunewell
669
!	Applied aportale's patch to use label instead of javascript toggle code
670
20-Nov-2005 Ryan Djurovich
671
!	News mod now hides read more link if no need for it (see ticket #56)
672
+	Added support for mailto: links in the menu link mod
673
#	Added direct-access redirection on some files (see ticket #37)
674
+	Added extra characters to convert.php (see ticket #64)
675
#	Fixed ticket #65 (last_reset check in account/forgot_form.php)
676
29-Sep-2005 Ryan Djurovich
677
!	Cleaned up form buttons in Settings
678
!	Moved some options into Advanced Settings
679
#	Semi-disabled "separate" page trash option
680
+	Created a backup module/tool for backing-up the database
681
	(thanks to John (pcwacht) for the original code)
682
+	Created new "blank template", which can be used in case where you don't
683
	want anything wrapping page-content.
684
19-Sep-2005 Ryan Djurovich
685
+	Added _license field for all add-ons to specify a license
686
!	Renamed _designed_for variables (for all addons) to _platform
687
+	Created addons table for faster internal referencing of installed addons
688
!	Fixed some links, including the "Help" button in Admin
689
#	Used nl2br to display body correctly when viewing form-submissions
690
15-Sep-2005 Stefan Braunewell
691
+	Added table module with columns 'name','type' and 'directory' as an
692
	index.
693
+	Added entry to settings table 'wb_version' which holds the version
694
	number and can be utilized in future upgrade scripts.
695
!	Added upgrade functionality also for templates and languages.
696
#/!	Template/modules installation now respects paths.
697
!	Moved updates from config.php to database.
698
	Created initialize.php (required by config.php) to read settings.
699
11-Sep-2005 Stefan Braunewell
700
!	HTMLArea is now a module instead of a core component. Files moved
701
	from "include" to "modules".
702
+	Implemented Installation of modules on top of an older version. This is 
703
	done via checking $module_version. Instead of install.php, upgrade.php
704
	is then called if it exists in the module package. 
705
	For module developers: $module_version and $new_module_version are 
706
	accessible in upgrade.php to find out what upgrade steps need to be taken.
707
!	Changed column names in mod_news_posts from short,long to content_short,
708
	content_long.
709
09-Sep-2005 Stefan Braunewell
710
+	Added new advanced setting "Rename Files On Upload". File extensions can be
711
	given so that respective files will have a ".txt" appended on media upload.
712
#	Fixed "None found" message bug when user has no top level page edit
713
	rights.
714
#	Fixed missing parent option 'none' - ticket #12 - and a minor scope bug.
715
+	Added breadcrumbs code. Call using $wb->breadcrumbs().
716
+	Added utf-8 character encoding meta tag into all stock templates.
717
#	Fixed bug when changing a page's parent
718
!	Changed the way blocks are treated. Added new frontend class attribute
719
	default_block_content that controls what is shown on pages such as
720
	search, login, etc. (Ticket #16)
721
+	Added support for WYSIWYG editor modules (wysiwygmod)
722
+	When trying to access a registered page, user is automatically redirected
723
	there on successful login.
724
#	Fixed various issues with system search (mainly related to stripslashes()
725
#	Removed stripslashes() in many places in the code. Added check for
726
	magic_quotes_gpc to new wb class method add_slashes(). Now database contest
727
	is independent of magic_quotes setting..
728
05-Sep-2005 Stefan Braunewell
729
#	Fixed bug concerning direct access of preferences page.
730
#	Reworked page visibility and menu item visibility code (frontend login
731
	problem).
732
#	Pages in link list in htmlarea popup are now correctly ordered.
733
#	Fixed bug where group with existing name can be added.
734
04-Sep-2005 Ryan Djurovich
735
+	Added and RSS newsfeed script to the News module
736
04-Sep-2005 Stefan Braunewell
737
!	Rewrote menu function. Parameters are now given as attributes to frontend class.
738
#	Fixed some occurrences of potential direct access path disclosure
739
#	Added directory check to browse.php to prevent xss exploit by trusted users.
740
!	Updated code to reflect move to Subversion repository system.
741
27-Aug-2005 Stefan Braunewell
742
#	Fixed bugs 4,5,6,8,9 in bug tracker
743
!	Removed 'USER_LANGUAGE' and 'GET_LANGUAGE' constants.
744
	A GET['lang'] now sets the session language variable.
745
26-Aug-2005 Stefan Braunewell
746
!	Moved redundant code into the new class functions. Created 
747
	'compatibility.php' for backward compatibility with
748
	modules and templates. Variables and functions can still be accessed
749
	in the old way.
750
!/+	Reorganized core frontend files, added new base class 'wb' from
751
	which 'admin' and the new 'frontend' class inherit. Moved all frontend
752
	function into new class. Completely rewrote core index.php.
753
	Now all variables and functions that are available to templates and
754
	modules are attributes and methods of the frontend and the wb classes
755
------------------------------------- 2.5.2 -------------------------------------
756
23-Jun-2005 Ryan Djurovich
757
!	create_access_file now creates all parent directories if needed
758
#	Fixed bug when moving page with subpages to another level
759
#	Fixed bug when saving "Settings" (in Admin) on Windows/IIS
760
#	Fixed bug where query was not setting error correctly in class.database.php
761
22-Jun-2005 Ryan Djurovich
762
#	Fixed bug where template permissions were not saved when a adding group
763
21-Jun-2005 Ryan Djurovich
764
#	Added htmlspecialchars for modifying WYSIWYG, news, etc. modules (Bug #78)
765
#	Fixed language problems in some area's of Admin. (Bug #70)
766
#	Added a space in website/page keywords (Bug #69)
767
#	Fixed bugs on settings2.php (Bug #52)
768
!	Links inserted with HTMLArea now use [wblink--PAGE_ID--] instead of raw URL
769
13-Jun-2005 Ryan Djurovich
770
#	Fixed bug (#88) with news module
771
!	Title of Administration login page now taken from language file (Bug #72)
772
#	Fixed redirection admin/home to admin/start on admin/index.php
773
#	Fixed bug with forgotten password page in admin (Bug #81)
774
25-Apr-2005 Ryan Djurovich
775
#	Fixed numerous bugs with module uninstallation
776
#	Fixed bug when uploading files in Administration -> Media
777
!	Installer no-longer requires you to accept the GNU GPL
778
------------------------------------- 2.5.1 -------------------------------------
779
16-Apr-2005 Ryan Djurovich
780
#	Fixed two bugs with account login/logout
781
------------------------------------- 2.5.1 -------------------------------------
782
15-Apr-2005 Ryan Djurovich
783
#	Fixed bug where non-english characters can get used in page filenames. Many
784
	measuers have been added (including a new file: wb/framework/convert.php),
785
	to prevent any possible errors that can occur in page filenames.
786
#	Fixed invalid meta tags in stock templates (meta tags were not closed)
787
#	Removed lines 401, 402, and 425 of wb/index.php - not needed
788
#	Fixed bug where search and account pages are shown in every block
789
	that is in a template
790
#	Fixed numerous bugs with media home directories feature
791
10-Apr-2005 Ryan Djurovich
792
#	Fixed bugs in account/login.php and logout.php where users
793
	gets redirected to /pages
794
------------------------------------- 2.5.0 -------------------------------------
795
08-Apr-2005 Ryan Djurovich
796
-	Removed section language feature
797
+	Added page language feature (replaces need for sections language feature)
798
#	Fixed bug where pages using menu_link module can have the URL changed
799
-	Page directory no longer stored in link field in pages table, it is now added
800
	when the page_link function is called - this makes changing the pages
801
	directory much easier and quicker
802
!	Pages with visibility of "none" are now no longer directly accessable
803
+	Added new visibility setting "hidden", acts exactly like none did previously
804
!	Template info file can now specify number of menu's available and relative names
805
!	Template info file can now specify number of blocks's available and relative names
806
------------------------------------- 2.4.3 -------------------------------------
807
07-Apr-2005 Ryan Djurovich
808
#	page_filename function has been rewritten using str_replace
809
	function, which should be faster and will allow characters
810
	from other languages into filenames
811
!	Created new media_filename function, which is now used
812
	by all media functions (create,upload,rename) to determine
813
	which characters should be removed from a desired filename
814
+	New button in Administration page list to view specific page
815
#	Updated the page_link function to now be compatible with menu link
816
	module when setting pages directory to root
817
#	Fixed bugs in search when using "Any Words" option
818
#	Fixed bug with news module when pages directory set to root
819
!	Changed URL of documentation website on Administration Start page
820
------------------------------------- 2.4.2 -------------------------------------
821
05-Apr-2005 Ryan Djurovich
822
#	Fixed bug where file could be renamed to nothing in Media
823
!	Optimised Media create folder, upload file, and rename functions
824
#	Fixed bug where stripslashes not run on news post titles in admin
825
05-Apr-2005 Stefan Braunewell
826
#	Fixed bug concerning usage of the private_sql variable
827
#	Fixed bug conerning sub-pages being displayed in menus incorrectly
828
------------------------------------- 2.4.1 -------------------------------------
829
04-Apr-2005 Ryan Djurovich
830
!	Pages with visibility of "none" are again directly accessable
831
#	Fixed bugs regarding renaming files and directories in Media section
832
!	When home folders disabled, all folders now visible in Media section
833
------------------------------------- 2.4.0 -------------------------------------
834
03-Apr-2005 Ryan Djurovich
835
-	Removed recently added visibility setting of "heading", and relative config vars
836
+	Added new "menu" field to pages table, and new setting "multiple menus"
837
	which replaces the need for the menu headings feature
838
+	Added links to top of groups and users sections, linking to each other
839
!	Change menu width in "Round" template to 170px (was 150px)
840
#	Change page "are you sure" deletion message to mention that it will delete
841
	all sub-pages as well
842
#	Fixed many bugs with news module when viewing posts by group
843
!	Pages with visibility of "none" are now no longer directly accessable
844
02-Apr-2005 Ryan Djurovich
845
-	Removed need to specify DB_URL when calling database class
846
#	Stopped fields without a type specified from being shown in form mod
847
#	Changed '/media' to MEDIA_DIRECTORY on HTMLArea popup windows
848
	for insert link and insert image
849
+	Added setting which allows you to specify the default WYSIWYG style
850
+	Added "Server Email" option, to specify what is used in "From" field when
851
	sending emails using the PHP mail function. Default is admins email address.
852
#	Search now excludes pages which have a visibility of none or heading
853
!	Pages are now given modified_when and modified_by when added
854
01-Apr-2005 Ryan Djurovich
855
+	Added option to News module to specify how many posts should be listed
856
	per page (by default it is set to unlimited, which functions like previous version)
857
#	Added stripslashes when display page titles in search
858
+	Page descriptions and last updated date now shown in search by default
859
30-Mar-2005 Ryan Djurovich
860
+	Added new feature for Media home folders, where a folder can be specified
861
	for a specific user or group of users only
862
!	Changed URL of Help button to http://www.websitebaker.org/docs/
863
+	Added new feature for "Page Trash" - two modes available: inline and separate
864
!	When pages are deleted, all sub-pages are now deleted (instead of being moved
865
	up a level)
866
29-Mar-2005 Ryan Djurovich
867
-	Removed Database Settings from Administration Settings (options will not be
868
	available in 3.x, so trying to match interface with WB 3.x plans
869
!	Changed the name of Path Settings to Filesystem Settings in Administration
870
	Settings, and removed ability to change path/url options - matching interface
871
	plans for WB 3.x
872
+	Added same options for OS and file permissions as installer to Settings
873
!	Sessions now named with APP_NAME.'_session_id' (e.g. default is wb_session_id)
874
28-Mar-2005 Ryan Djurovich
875
+	New functions available to templates to simplify creation of them. This aims
876
	to "future-proof" templates for WB 3.x plans.
877
!	Default templates updated to support some of the new functions
878
+	Added field to pages table "page_trail" which stores a list of the pages
879
	parents. This field was needed by the new page_menu function
880
+	Added option for page visibility "heading" to enabled support for multiple
881
	menu's. Also, this helps to "future-proof" templates for WB 3.x plans
882
+	Added option for page visibility "registered", which acts a little like
883
	private, but is still shown in the menu (although users need to log in to view
884
	the pages content)
885
+	Form module submissions now saved to database, and feature now added to
886
	limit number of submissions per hour to prevent spamming
887
+	New field for Form module: email. Allows you to specify their email in
888
	"from" field on module settings.
889
#	Fixed bug when displaying comments in News module (WB Bug #14)
890
+	New "under contruction" message if no pages exist
891
!	Cleaned-up wb/index.php
892
27-Mar-2005 Ryan Djurovich
893
+	Created advanced mkdir and chmod functions
894
#	Fixed bug in media where wrong file/folder is deleted
895
+	Complete overhall of installer - now only one step! It has been greatly
896
	simplified in many ways, has much better validation, reports error much more
897
	nicely, and automatically logs the user into the Administrations
898
+	Must now specify OS type - allows for customizable file permission settings
899
+	Sections can now have a language code assigned to them
900
+	Sections can now have a block name/id assigned to them
901
!	Home section of Administration renamed to Start, to save confusion with saying
902
	Homepage (because this term could either mean the main website or Home section
903
	in	Administration). Also, this aims to unify the interface with WB 3.x plans
904
!	Moved Users and Groups sections under Access section. This aims to unify the
905
	interface with WB 3.x plans, which help to unclutter the menu
906
!	Interface for Settings section has been imporved for usability purposes
907
#	Fixed HTMLArea where no scrollbar for "insert link" and "insert image" dialogs
908
	by placing media list inside an iframe
909
#	Fixed stripslashes problem for viewing news comments
910
!	Added code from Formesque module (an advanced version of the original Form
911
	module, modified by Rudolph Lartey from www.carbonect.com), and made further
912
	interface improvements for select box/checkbox group/radio group options.
913
#	Possibly fixed bugs where an S appears before file and dir modes
914
#	Fixed bug where users can be added with same emails (in Administration)
915
-	Removed support for PEAR, as it was deemed an unnecessary addition which only
916
	makes code more bulky, and removing it will decrease package size a lot
917
+	New "homepage redirect" option so first page is included and not redirected to
918
#	Fixed text not being shown when module uninstalled
919
!	Imporved interface for basic group permissions
920
26-Mar-2005 Stefan Braunewell
921
#	Fixed bug with front-end logins
922
#	Fixed bug when saving intro page 
923
+	Added check on sign-up if e-mail exists (thanks to P. Melief)
924
#	Fixed bugs concerning moving/deleting pages
925
#	Fixed list of parents in page settings
926
#	Fixed mkdir without mode parameter
927
#	Added a check on install to ensure PHP 4.1.x compatibility (thanks to Wanderer)
928
+	Added support for PAGES_DIRECTORY set to root
929
+	Search form now supports quotes (thanks to Manafta)
930
#	Fixed page section ordering
931
#	News items are displayed with name of poster instead of "Unknown"
932
#	Deletion confirmation popup window in media section now shows correct file name
933
------------------------------------- 2.3.1 -------------------------------------
934
03-Fed-2005 Ryan Djurovich
935
+	Now there is two types of "filesystem modes", one for directories and one
936
	for files. Having different settings is very common for most servers, so
937
	this addition should fix many problems people had with 2.3.0.
938
-	Removed filesystem mode options from installation
939
!	Removed duplicate text on installation step 3 for timezone
940
!	All "access files" for the news module now stored in pages/posts instead
941
	of a sub-dir relative to the page (this fixes many bugs)
942
#	Fixed major bugs when deleting pages with sub-pages
943
!	Removed the restrictions that prevent a user for changing a pages level
944
#	Fixed bug with "toggle" plus/minus in IE for pages list
945
#	Fixed some bugs where /pages was not replaced with PAGES_DIRECTORY constant
946
------------------------------------- 2.3.0 -------------------------------------
947
26-Jan-2005 Ryan Djurovich
948
#	Fixed bug in framework/functions.php that made root parent always equal 8
949
#	Added missing braces in lines 182 and 208 of admin/pages/settings2.php
950
#	Fixed SQL-query on line 172, placing a / after $old_link
951
#	Added eregi checks for PAGES_DIRECTORY on lines 140 and 150 of
952
	admin/pages/settings2.php
953
#	Added ordering cleaning to delete_post.php on line 53 for news module
954
!	GMT option is selected for "Default Timezone" in the installer, instead
955
	of the old "Please select" message (which had the same value as GMT)
956
28-Jan-2005 Ryan Djurovich
957
!	Ability to specify the chmod number when WB uploads files, etc.
958
!	Modified file headers (copyright/license notice) so they now look almost the
959
	same, independant of font. Also, it now covers copyright for 2005.
960
30-Jan-2005 Ryan Djurovich
961
#	Added code on wb/admin/pages/delete.php to remove sections from the sections
962
	table when a page is deleted.
963
+	New 'Smart Login' prevents users from using external password managers,
964
	and can be set to remember the users password using cookies.
965
!	SourceForge CVS module now called websitebaker2 (instead of just
966
	websitebaker). Also, all file versions have been reset.
967
01-Fed-2005 Ryan Djurovich
968
!	Added code to prevent from changing a pages level (it simply disables
969
	the select box), to prevent many possible bugs.
970
------------------------------------- 2.2.4 -------------------------------------
971
23-Dec-2004 Ryan Djurovich
972
!	Change 'EXACT_PHRASE' to 'EXACT_MATCH' on line 261 of wb/languages/EN.php
973
#	Fixed multi-language support in search
974
+	Added more detailed options to list of PHP error reporting level's
975
-	Removed ability to change language and PHP error reporting level
976
	on installation to make things easier for newbie's
977
+	Ability to select custom spacer for page filename's
978
!	Changed the way a language code is found on language installation
979
+	Added template permissions to groups
980
#	Fixed bug when trying to change email from Preferences (admin and frontend)
981
#	Fixed bug with auto-selection of "System Default" for Preferences
982
!	News module now use's WYSIWYG for modifying news posts
983
+	Ability to specify both the pages and media target directories
984
------------------------------------ 2.2.3-c ------------------------------------
985
22-Dec-2004 Ryan Djurovich
986
#	Fixed problem with DB password being reset if Settings saved in basic mode
987
------------------------------------ 2.2.3-b ------------------------------------
988
21-Dec-2004 Ryan Djurovich
989
#	Fixed minor bug on admin templates section
990
#	Fixed bug on rename.php and rename2.php in admin media section
991
------------------------------------- 2.2.3 -------------------------------------
992
20-Dec-2004 Ryan Djurovich
993
+	Added WB release version in Administration (top right corner)
994
!	New option to prevent users from adding level 0 pages
995
#	Fixed bug when deleting post's in News module
996
+	Added new field in pages table for "root" parent (level 0 parent), for
997
	extra flexability in creating templates
998
!	Round template now supports unlimited page levels
999
------------------------------------- 2.2.2 -------------------------------------
1000
18-Dec-2004 Ryan Djurovich
1001
+	New option under Search Settings for selecting custom template for search
1002
+	New option when changing page settings to set the target
1003
#	Fixed error when saving a user after editing
1004
!	Users can now modify sub-page if they dont have permissions on the parent
1005
------------------------------------- 2.2.1 -------------------------------------
1006
15-Dec-2004 Ryan Djurovich
1007
#	Fixed bug when changing password on preferences form (front-end)
1008
#	Fixed bug when retrieving user details (administration)
1009
#	Added check to see if module, template, or language is in use when deleting
1010
#	Fixed up email that is sent to user from a submitted form
1011
#	Fixed major problem with module permissions which stopped it from working
1012
------------------------------------- 2.2.0 -------------------------------------
1013
14-Dec-2004 (Correct date[s] unkown) Ryan Djurovich
1014
+	Multiple-level page support
1015
+	Multiple section's for pages (including interface)
1016
!	Removed text created using two words on all areas
1017
	(e.g. {Intro} {PAGE} is now {INTRO_PAGE})
1018
	this is for better language support
1019
+	Added Languages section
1020
!	Moved Templates and Modules under Add-ons section
1021
!	Changed name of "Default" template to "Round"
1022
+	Added "All CSS" template
1023
+	Added "Jump"
1024
+	Added 
1025
!	Modified "Box" template to support multiple page levels
1026
+	Added "Menu Link" module
1027
+	Added "News" module
1028
+	Added "Code" module
1029
+	Added "Form" module
1030
+	Added "Wrapper" module
1031
!	Changed name of "Normal Page" module to "WYSIWYG"
1032
+	Created new admin wrapper script to ease module develpment
1033
+	Media now automatically creates index.php file for every
1034
	sub-folder made (for security purposes)
1035
!	Change "Help" link in Administration menu so it now directs
1036
	to the the new Website Baker documentation website found at:
1037
	http://www.websitebaker.org/documentation
1038
!	Password is now required to change email in preferences
1039
+	User can now select custom Language and Date & Time Formats
1040
+	Added search functionality, with three different "methods":
1041
	1. Using all words  2. Using any words  3. Exact match
1042
+	Added native MySQL database support
0 1043

  
tags/2.7.0/wb/upgrade-script.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2008, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
/** 
27
	PHP ROUTINES FOR THE UPGRADE SCRIPT
28
**/
29
@include_once('config.php');
30

  
31
// this function checks the basic configurations of an existing WB intallation
32
function status_msg($message, $class='check', $element='span') {
33
	// returns a status message
34
	echo '<'.$element .' class="' .$class .'">' .$message .'</' .$element.'>';
35
}
36

  
37
function check_baseline_configuration() {
38
	// check if config.php file exists and contains values
39
	global $database;
40
	status_msg('config.php: ');
41
	if(defined('WB_PATH') && defined('ADMIN_PATH')) {
42
		status_msg('OK', 'ok');
43
	} else {
44
		// output error message and return error status
45
		status_msg('FAILED', 'error');
46
		status_msg('<strong>Error:</strong><br />No valid config.php found in: "<em>'
47
			.dirname(__FILE__).'</em>"<br />Please check if this script is placed in the WB root directory '
48
			.'and check/correct the config.php file before proceeding.<br /><br />You can not proceed before this error is fixed!!!'
49
			, 'warning', 'div');
50
		return -1;
51
	}
52

  
53
	// check if the WB 2.7 installation files were already uploaded via FTP
54
	status_msg(', WB 2.7 core files uploaded: ');
55
	@include_once(WB_PATH .'/framework/functions.php');
56
	@include_once(ADMIN_PATH .'/interface/version.php');
57
	if(defined('VERSION') && VERSION == '2.7'
58
		&& function_exists('get_variable_content') 
59
		&& file_exists(WB_PATH .'/modules/menu_link/languages/DE.php') 
60
		&& file_exists(WB_PATH .'/modules/output_filter/filter-routines.php') 
61
		&& file_exists(WB_PATH .'/modules/captcha_control/languages/DE.php')
62
		&& file_exists(WB_PATH .'/modules/jsadmin/jsadmin_backend_include.php')
63
		&& file_exists(ADMIN_PATH .'/admintools/tool.php')
64
		&& file_exists(ADMIN_PATH .'/interface/er_levels.php')) {
65
		status_msg('OK','ok');
66
	} else {
67
		// output a warning and return error status
68
		status_msg('FAILED','error');
69
		status_msg('<strong>Error:</strong><br />Some of the Website Baker 2.7 core files were not found.'
70
			.'<br />Please upload all core files (except config.php and folder /install) contained in the WB 2.7 installation package first.'
71
			.'<br /><br />You can not proceed before this error is fixed!!!'
72
			, 'warning', 'div');
73
		return -1;
74
	}
75

  
76
	// check database connection (try to extract a single value which should always exist)
77
	$matches = '';
78
	status_msg(', Database connection: ');
79
	if(class_exists('database')) {
80
		$table = TABLE_PREFIX .'groups';
81
		//$result = $database->query("SELECT group_id FROM $table WHERE group_id = '1' LIMIT 1");
82
		$result = $database->query("SELECT name FROM $table WHERE group_id = '1' LIMIT 1");
83
		$matches = ($result->numRows() > 0) ? $result->numRows() : '';
84
	}
85
	if($matches == '1') {
86
		status_msg('OK', 'ok');
87
	} else {
88
		// output error message and return error status
89
		status_msg('FAILED', 'error');
90
		status_msg('<strong>Error:</strong><br />Unable to connect to your existing Website Baker database.'
91
			.'<br />Make sure that the database class is available and the connection data in the config.php file is correct '
92
			.'and your database is not corrupt.<br />To check if your database is corrupt, you can use a tool like '
93
			.'<a href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a>.'
94
			.'<br /><br />You can not proceed before this error is fixed!!!'
95
			, 'warning', 'div');
96
		return -1;
97
	}
98
	return 0;
99
}
100

  
101
?>
102

  
103
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
104
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
105
<head>
106
<title>Upgrade script from Website Baker v2.6.7 to Website Baker v2.7</title>
107
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
108
<style type="text/css">
109
body {
110
	margin:0;
111
	padding:0;
112
	border:0;
113
	background: #EBF7FC;
114
	color:#000;
115
  font-family: 'Trebuchet MS', Verdana, Arial, Helvetica, Sans-Serif;
116
	font-size: small;
117
	height:101%;
118
}
119

  
120
#container {
121
	width:85%;
122
	background: #A8BCCB url(<?php echo ADMIN_URL;?>/interface/background.png) repeat-x;
123
	border:1px solid #000;
124
	color:#000;
125
	margin:2em auto;
126
	padding:0 15px;
127
	min-height: 500px;
128
	text-align:left;
129
}
130

  
131
p { line-height:1.5em; }
132

  
133
h1,h2,h3,h4,h5,h6 {
134
	font-family: Verdana, Arial, Helvetica, sans-serif;
135
	color: #369;
136
	margin-top: 1.0em;
137
	margin-bottom: 0.1em;
138
}
139

  
140
h1 { font-size:150%; }
141
h2 { font-size: 130%; border-bottom: 1px #CCC solid; }
142
h3 { font-size: 120%; }
143

  
144
.ok, .error { font-weight:bold; }
145
.ok { color:green; }
146
.error { color:red; }
147
.check { color:#555; }
148

  
149
.warning {
150
	width: 98%;
151
	background:#FFDBDB;
152
	padding:0.2em;
153
	margin-top:0.5em;
154
	border: 1px solid black;
155
}
156
</style>
157
</head>
158
<body>
159
<div id="container">
160
<img src="<?php echo ADMIN_URL;?>/interface/logo.png" alt="Website Baker Logo" />
161

  
162
<h1>Website Baker Upgrade</h1>
163
<p>This script is for <strong>upgrading an existing v2.6.7</strong> installation to the latest Website Baker <strong>version 2.7</strong>. The upgrade script checks the configuration of your installed Website Baker system and alters the existing WB database to reflect the changes introduced with WB 2.7.</p>
164

  
165
<?php
166
if(!isset($_POST['backup_confirmed'])) { 
167
?>
168
<h2>Step 1: Check existing installation</h2>
169
<p>Checking the configuration of your existing Website Baker installation:<br />
170
<?php
171
// check the basic Website Baker installation before proceeding
172
if(check_baseline_configuration() != 0) {
173
echo <<< EOT
174
<h3>Checklist before upgrading:</h3>
175
<p>To upgrade from an existing WB 2.6.7 version, please perform the following steps in advance:
176
<ol>
177
<li>Backup the entire <strong>/pages</strong> folder (including all subfolder and files) of your existing WB installation</li>
178
<li>Backup the entire <strong>Database</strong> of your existing WB installation (e.g. by the WB admin tool)</li>
179
<li>Download the WB 2.7 installation package from the <a href="http://download.websitebaker.org/" target="_blank">official project site</a></li>
180
<li>Upload all files contained in the WB 2.7 installation package (except config.php and the folder /install) via FTP over your existing installation</li>
181
<li>start this script by typing the URL into your browser</li>
182
</ol>
183
<strong class="error">Note: </strong>If you have an version lower than 2.6.7, you need to upgrade to 2.6.7 first!! Instructions can be found on the <a href="http://help.websitebaker.org/pages/en/basic-docu/installation/upgrade.php" target="_blank">Website Baker Help portal</a>.</p><p>&nbsp;</p>
184
EOT;
185
die;
186
}
187
// pre-checks passed, proceed
188
status_msg('<p>Congratulations: You have passed all the required pre-checks.', 'ok');
189
?>
190

  
191
<h2>Step 2: Create a backup of your existing data</h2>
192
<p>It is highly recommended to <strong>create a manual backup</strong> of the entire <strong>/pages folder</strong> and the <strong>MySQL database</strong> before proceeding.<br /><strong class="error">Note: </strong>The upgrade script alters some settings of your existing database!!! You need to confirm the disclaimer before proceeding.</p>
193

  
194
<form name="send" action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST">
195
<textarea cols="80" rows="5">DISCLAIMER: The Website Baker upgrade script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. One needs to confirm that a manual backup of the /pages folder (including all files and subfolders contained in it) and backup of the entire Website Baker MySQL database was created before you can proceed.</textarea>
196
<br /><br /><input name="backup_confirmed" type="checkbox" value="confirmed" />&nbsp;I confirm that a manual backup of the /pages folder and the MySQL database was created.
197
<br /><br /><input name="send" type="submit" value="Start upgrade script" />
198
</form>
199
<br />
200

  
201
<?php
202
if(isset($_POST['send'])) {
203
	status_msg('<strong>Notice:</strong><br />You need to confirm that you have created a manual backup of the /pages directory and the MySQL database before you can proceed.', 'warning', 'div');
204
} 
205
?>
206
<br /><br />
207
<?php
208
} else {
209
/**
210
	THE WEBSITE BAKER UPGRADE SCRIPT STARTS HERE
211
**/
212
require_once('config.php');
213
require_once(WB_PATH.'/framework/functions.php');
214
?>
215
<h2>Step 3: Upgrading the existing Website Baker installation to WB 2.7</h2>
216
<p>will upgrade Website Baker 2.6.7 to version 2.7</p>
217
<?php
218

  
219
$OK   = '<span class="ok">OK</span>';
220
$FAIL = '<span class="error">FAILED</span>';
221

  
222

  
223
/**********************************************************
224
 *  - modules-based search
225
 */
226
function db_add_search_key_value($key, $value) {
227
	global $database; global $OK; global $FAIL;
228
	$table = TABLE_PREFIX.'search';
229
	$query = $database->query("SELECT value FROM $table WHERE name = '$key' LIMIT 1");
230
	if($query->numRows() > 0) {
231
		echo "$key: allready there. $OK.<br />";
232
		return true;
233
	} else {
234
		$database->query("INSERT INTO $table (name,value,extra) VALUES ('$key', '$value', '')");
235
		echo (mysql_error()?mysql_error().'<br />':'');
236
		$query = $database->query("SELECT value FROM $table WHERE name = '$key' LIMIT 1");
237
		if($query->numRows() > 0) {
238
			echo "$key: $OK.<br />";
239
			return true;
240
		} else {
241
			echo "$key: $FAIL!<br />";
242
			return false;
243
		}
244
	}
245
}
246
function db_add_field($field, $table, $desc) {
247
	global $database; global $OK; global $FAIL;
248
	echo "<u>Adding field '$field' to table '$table'</u><br />";
249
	$table = TABLE_PREFIX.$table;
250
	$query = $database->query("DESCRIBE $table '$field'");
251
	if($query->numRows() == 0) { // add field
252
		$query = $database->query("ALTER TABLE $table ADD $field $desc");
253
		echo (mysql_error()?mysql_error().'<br />':'');
254
		$query = $database->query("DESCRIBE $table '$field'");
255
		echo (mysql_error()?mysql_error().'<br />':'');
256
		if($query->numRows() > 0) {
257
			echo "'$field' added. $OK.<br />";
258
		} else {
259
			echo "adding '$field' $FAIL!<br />";
260
		}
261
	} else {
262
		echo "'$field' allready there. $OK.<br />";
263
	}
264
}
265

  
266
echo "<br /><u>Adding module_order, max_excerpt and time_limit to search-table</u><br />";
267
// module_order - in which order to show the search-results
268
// max_excerpt - how many lines of excerpt to print per matching page
269
// time_limit - time-limit for searching per module
270
$cfg = array(
271
	'module_order' => 'faqbaker,manual,wysiwyg',
272
	'max_excerpt' => '15',
273
	'time_limit' => '0'
274
);
275
foreach($cfg as $key=>$value) {
276
	db_add_search_key_value($key, $value);
277
}
278

  
279
echo "<br /><u>Adding some internal config-elements to search-table</u><br />";
280
// These are global config-elements which don't appear in settings-page. Change them in the database if needed.
281
// cfg_show_description - whether to show page-description on the results page (true/false), def: true
282
// cfg_search_description - whether to search in page-description (true/false), def: true [only used while searching title/link/description/keywords]
283
// cfg_search_keywords - whether to search in page-keywords (true/false), def: true [only used while searching title/link/description/keywords]
284
// cfg_enable_old_search - use old search-method, too (true/false), def: true [use old method as fallback]
285
// cfg_enable_flush - use "ob_flush();flush();" after every page on result page. Will speedup response of result page, but may break template
286
$cfg = array(
287
	'cfg_show_description' => 'true',
288
	'cfg_search_description' => 'true',
289
	'cfg_search_keywords' => 'true',
290
	'cfg_enable_old_search' => 'true',
291
	'cfg_enable_flush' => 'false'
292
);
293
foreach($cfg as $key=>$value) {
294
	db_add_search_key_value($key, $value);
295
}
296

  
297
echo "<br /><u>Changing results_loop in search-table</u><br />";
298
// adding [EXCERPT]
299

  
300
$query = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'results_loop' LIMIT 1");
301
if($query->numRows() > 0) {
302
	$fetch_results_loop = $query->fetchRow();
303
	$string = $fetch_results_loop['value'];
304
	if(preg_match("/\[EXCERPT\]/", $string)) {
305
		echo "[EXCERPT] is allready there. $OK.<br />";
306
	} else {
307
		$string = preg_replace("/10px;\">\[DESCRIPTION\]/", "5px;\">[DESCRIPTION]", $string);
308
		$string .= "<tr><td colspan=\"2\" style=\"text-align: justify; padding-bottom: 10px;\">[EXCERPT]</td></tr>";
309
		$string = addslashes($string);
310
		$database->query("UPDATE ".TABLE_PREFIX."search SET name='results_loop',value='".$string."',extra='' WHERE name = 'results_loop' LIMIT 1");
311
		echo (mysql_error()?mysql_error().'<br />':'');
312
		$query = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'results_loop' LIMIT 1");
313
		if($query->numRows() > 0) {
314
			$fetch_results_loop = $query->fetchRow();
315
			$string = $fetch_results_loop['value'];
316
			if(preg_match("/\[EXCERPT\]/", $string)) {
317
				echo "[EXCERPT] added. $OK.<br />";
318
			} else {
319
				echo "adding [EXCERPT] $FAIL!<br />";
320
			}
321
		}
322
	}
323
}
324

  
325
echo "<br /><u>Changing \"Header:\" in search-table</u><br />";
326
// adding [SEARCH_PATH]
327

  
328
$query = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'header' LIMIT 1");
329
if($query->numRows() > 0) {
330
	$fetch_header = $query->fetchRow();
331
	$string = $fetch_header['value'];
332
	if(preg_match("/\[SEARCH_PATH\]/", $string)) {
333
		echo "[SEARCH_PATH] is allready there. $OK.<br />";
334
	} else {
335
		$string = preg_replace("/<input type=\"text\" name=\"string\" value=\"\[SEARCH_STRING\]\" style=\"width: 100%;\" \/>/", "<input type=\"hidden\" name=\"search_path\" value=\"[SEARCH_PATH]\" /><input type=\"text\" name=\"string\" value=\"[SEARCH_STRING]\" style=\"width: 100%;\" />", $string);
336
		$string = addslashes($string);
337
		$database->query("UPDATE ".TABLE_PREFIX."search SET name='header',value='".$string."',extra='' WHERE name = 'header' LIMIT 1");
338
		echo (mysql_error()?mysql_error().'<br />':'');
339
		$query = $database->query("SELECT value FROM ".TABLE_PREFIX."search WHERE name = 'header' LIMIT 1");
340
		if($query->numRows() > 0) {
341
			$fetch_header = $query->fetchRow();
342
			$string = $fetch_header['value'];
343
			if(preg_match("/\[SEARCH_PATH\]/", $string)) {
344
				echo "[SEARCH_PATH] added. $OK.<br />";
345
			} else {
346
				echo "adding [SEARCH_PATH] $FAIL!<br />";
347
			}
348
		}
349
	}
350
}
351

  
352

  
353
/**********************************************************
354
 *  - publish-by-date
355
 */
356
// Add fields "publ_start" and "publ_end" to table "sections"
357
// check if fields are present
358
db_add_field('publ_start', 'sections', "INT NOT NULL DEFAULT '0'");
359
db_add_field('publ_end', 'sections', "INT NOT NULL DEFAULT '0'");
360

  
361

  
362
/**********************************************************
363
 *  - core-module menu_link
364
 */
365
// create table
366
$table = TABLE_PREFIX ."mod_menu_link";
367
$database->query("DROP TABLE IF EXISTS `$table`");
368
$database->query("
369
	CREATE TABLE `$table` (
370
		`section_id` INT(11) NOT NULL DEFAULT '0',
371
		`page_id` INT(11) NOT NULL DEFAULT '0',
372
		`target_page_id` INT(11) NOT NULL DEFAULT '0',
373
		`anchor` VARCHAR(255) NOT NULL DEFAULT '0' ,
374
		`extern` VARCHAR(255) NOT NULL DEFAULT '' ,
375
		PRIMARY KEY (`section_id`)
376
	)
377
");
378
// fetch all menu_link-pages in $pages
379
$pages = array();
380
$table_p = TABLE_PREFIX.'pages';
381
$table_s = TABLE_PREFIX.'sections';
382
$table_mm = TABLE_PREFIX ."mod_menu_link";
383

  
384
$query_page = $database->query("SELECT p.*, s.section_id FROM $table_p AS p, $table_s AS s WHERE p.page_id=s.page_id AND s.module = 'menu_link'");
385
if($query_page->numRows() > 0) {
386
	while($page = $query_page->fetchRow()) {
387
		$pages[$page['page_id']]['page_details'] = $page;
388
	}
389
}
390
if($pages!=array())
391
	echo "<br /><u>Convert menu_links</u><br />";
392

  
393
// get all related files with content from pages/ in $pages, too
394
function list_files_dirs($dir, $depth=true, $files=array(), $dirs=array()) {
395
	$dh=opendir($dir);
396
	while(($file = readdir($dh)) !== false) {
397
		if($file == '.' || $file == '..') {
398
			continue;
399
		}
400
		if(is_dir($dir.'/'.$file)) {
401
			if($depth) {
402
				$dirs[] = $dir.'/'.$file;
403
				list($files, $dirs) = list_files_dirs($dir.'/'.$file, $depth, $files, $dirs);
404
			}
405
		} else {
406
			$newfile = $dir.'/'.$file;
407
			if(filesize($newfile) <= 100)
408
				$files[] = $newfile;
409
		}
410
	}
411
	closedir($dh);
412
	return(array($files, $dirs));
413
}
414
list($files, $dirs) = list_files_dirs(WB_PATH.PAGES_DIRECTORY);
415
foreach($files as $file) {
416
	if(($content = implode('', file($file))) !== FALSE) {
417
		if(preg_match('/\$page_id = (\d+)/', $content, $matches)) {
418
			if(array_key_exists($matches[1], $pages)) {
419
				$pages[$matches[1]]['file_content'] = $content;
420
				$pages[$matches[1]]['filename'] = $file;
421
			}
422
		}
423
	}
424
}
425
unset($files); unset($dirs);
426
// try to convert old menu_links to new ones
427
foreach($pages as $p) {
428
	$page = $p['page_details'];
429
	$file_content = $p['file_content'];
430
	$filename = $p['filename'];
431
	$link = $p['page_details']['link'];
432
	$parent_pid = $p['page_details']['parent'];
433
	$page_id = $p['page_details']['page_id'];
434
	$section_id = $p['page_details']['section_id'];
435
	$menu_title = $p['page_details']['menu_title'];
436

  
437
	// calculate link from wb_pages.parent and menu_title
438
	$cur_link = '';
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff