Project

General

Profile

« Previous | Next » 

Revision 547

Added by Matthias over 16 years ago

Reintroduced changes from changeset [520] and [540] wich where overwritten by changeset [546]

Revoked changeset [541] end removed all PAGE_EXTENSION variables and the related option in WB settings as this function only works on Apache Servers together with .htaccess and mod_rewrite

Added keywords to file menu_link/uninstall.php

View differences:

trunk/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
17-Jan-2008 Christian Sommer
15
!	added the "users in multiple groups" feature (closes parts of ticket #546)
16

  
17
16-Jan-2008 Thomas Hornik
18
!	changed admin/pages/save.php to allow hidden config-elements in table search.
19
16-Jan-2008 Thomas Hornik
20
!	changed module menu_link: added table mod_menu_link, fixed page-deleting-bug,
21
	fixed odd behavior in case of menu_link as default-page.
22
16-Jan-2008 Thomas Hornik
23
#	changing PHP-error-level within website baker does not work - fixed (fixed ticket 532)
24
14-Jan-2008 Matthias Gallas
25
#	Replaced hardcoded .php with the variable PAGE_EXTENSION for the use in pagenames.
26
	(!!Attention!! To get extenions other than .php working additional fixes are necessary!)
27
#	Replaced the variable PAGE_EXTENSION with hardcoded .php on all places where the
28
	pathes points to WB Corefiles with the page extension .php
29
#	Replaced hardcoded text in login.php with language variables (fixes ticket 386)
30
14-Jan-2008 Christian Sommer
31
!	added a missing </tr> tag
32
#	re-introduced bugfix of Changeset 472 (fixes ticket 402) accidentally 
33
	removed by Changeset 529 (enhanced pages admin)
34
13-Jan-2008 Christian Sommer
35
#	moved administration tools from Settings to the new section Admin-Tools
36
#	this bugfix closes the ticket 529 (WB upgrades modules with identical version)	
37
!	increased redirection time after success message, corrected HOME link of the login panel
38
!	updated PHPMailer framework to version 2.0.0 (/include/phpmailer)
39
#	this bugfix closes ticket 412 (direct call of admin/settings/save.php clears database)
40
#	fixed error with redirection to admin panel after installation
41
12-Jan-2008 Christian Sommer
42
!	introduced smart URL detection for the 'View' menu in the WB backend
43
	(if page_id is set, redirect to this page instead of the root)
44
!	introduced the enhanced pages admin dialogue (thanks to icouto)
45
11-Jan-2008 Christian Sommer
46
+	added the FCKEditor module files missing in Changeset 527 (/modules/fckeditor)
47
-	removed the hmtlarea files in /modules/htmlarea
48
!	set the fckeditor as the new default editor /install/save.php
49
!	Updated function: register_frontend_modfiles in /framework/frontend.functions.php
50
	(added constants MOD_FRONTEND_CSS_REGISTERED, MOD_FRONTEND_JAVASCRIPT_REGISTERED)
51
11-Jan-2008 Matthias Gallas
52
!	Update codepress to Version 0.9.6
53
!	Update phplib to Version 7.4a
54
09-Jan-2008 Matthias Gallas
55
!	Upgrade pclzip to the newer more php5 complaint version 2.6, see ticket #526
56
#	Fixed ticket #542 (Thanks to Thorn)
57
23-Dec-2007 Matthias Gallas
58
!	Changed all copyright notices to include now 2008
59
21-Sep-2007 Matthias Gallas
60
#	Fixed a typo in /framework/frontend.functions.php cause that websites using
61
	the new register_frontend_modifles() functions do not validate
62
24-Jan-2007 Christian Sommer
63
!	Replaced some core files to allow configuration of wbmailer via admin settings panel
64
------------------------------------- 2.6.7 -------------------------------------
65
02-Jan-2007 Christian Sommer
66
+	Added missing converting file for changeset [504]
67
------------------------------------- 2.6.6 -------------------------------------
68
01-Jul-2007 Matthias Gallas
69
#	Fixed converting issue with some ISO-charsets and speeded up converting on large pages (thanks to Thorn)
70
01-Jul-2007 Ryan Djurovich
71
#	Fixed bug where error message not displayed when script fails to create a page
72
#	Fixed bugs introduced in [484]
73
14-May-2007 Matthias Gallas
74
+	Added support for ISO-8859-6.(Thanks to thorn)
75
12-May-2007 Christian Sommer
76
+	Replaced functions page_css and page_javascript by register_frontend_modfiles
77
+	Added function register_backend_modfiles to allow backend modules to use optional CSS and JS files
78
+	Added the JS framework codepress to allow syntax highlighting for JS, HTML, PHP code (textarea)
79
+	Added the new function register_frontend_modfiles to the built in templates
80
08-May-2007 Matthias Gallas
81
+	Added wrapper to functions.php if mb_string is not available (Thanks to thorn)
82
+	Added new functions page_css and page_javascript to the built in templates
83
+	Added search highlight class to css files of the built in templates
84
30-Apr-2007 Matthias Gallas
85
#	Fixed ticket #392; root_parent not being set correctly (Thanks to eggsurplus)
86
10-Apr-2007 Matthias Gallas
87
+	Optimized search and highlighting funktions (Thanks to thorn)
88
03-Apr-2007 Matthias Gallas
89
#	Fixed a bug in menulink; if you deleted a menulink page the linked page was also deleted
90
	in the pages directory (Special thanks to "Funky_MF" for the fix)
91
01-Apr-2007 Matthias Gallas
92
#	Fixed issues with some languages when UTF8 is used. Removed all htmlentites
93
	from the code (revoked changeset 396) and added new functions instead. Adapted the
94
	search and the highlighting to use the new functions. With this changes WB can now
95
	be used with charset UTF8 for all languages. Very special thanks to Thorn who wrote
96
	and tested this changes.
97
12-Mar-2007 Matthias Gallas
98
+	Added multilingual support to search
99
03-Mar-2007 Matthias Gallas
100
+	Added new function for highlighting search results in the content area
101
	(Special thanks to "thorn" and "Funky_MF")
102
#	Fixed some issues in search with special chars
103
	(Special thanks to "thorn" and "Funky_MF")
104
22-Feb-2007 Christian Sommer
105
#	Fixed bug in changeset 428 (page files were not deleted in /pages folder due to a typo in wb/framework/function.php)
106
16-Feb-2007 Christian Sommer
107
!	Suppressed PHP warnings and errors when reading empty intro.php
108
16-Feb-2007 Christian Sommer
109
#	Applied fix to enable parsing of PHP code in the intro.php 
110
12-Feb-2007 Christian Sommer
111
!	Added functions page_css and page_javascript which allow to include optional
112
	module files module.css and module.js into the <head> section. This allows to 
113
	create valid (X)HTML, as CSS definitions of modules are included in the head section
114
12-Feb-2007 Christian Sommer
115
!	Security enhancement (reduced number of login trials from 50 to 3)
116
02-Feb-2007 Matthias Gallas
117
#	Applied fix for ticket #380 (Thanks to pcwacht)
118
30-Jan-2007 Ryan Djurovich
119
#	Applied fix for ticket #376
120
29-Jan-2007 Matthias Gallas
121
+	Added new variable $MODULE_DESCRIPTION wich allows to have optional a language
122
	specific description of the modules in the language files of the modules.
123
21-Jan-2007 Matthias Gallas
124
#	Fixed issue in the search table entries of form modul
125
13-Jan-2007 Matthias Gallas
126
#	Fixed some bugs in rss.php
127
07-Jan-2007 Matthias Gallas
128
#	Fixed error when uninstalling the news modul
129
02-Jan-2007 Matthias Gallas
130
+   Added id keywords to all missing files
131
#	Fixed issue with Permissions for pages sections
132
27-Dec-2006 Matthias Gallas
133
#	Fixed form modul stores empty records
134
------------------------------------- 2.6.5 -------------------------------------
135
25-Dec-2006 Ryan Djurovich
136
!	Changed links to WB help website
137
24-Dec-2006 Matthias Gallas
138
#	Fixed some minor javascript errors in admin (thanks to pcwacht)
139
#	Fixed root_parent doesn't get updated when moving item in menu (#305)
140
!	Changed all copyright notices to include now 2007
141
23-Dec-2006 Matthias Gallas
142
#	Fixed IE allows to set a page as parent of itself (#320)
143
#	Fixed problem with Page Title has to be escaped (#287)
144
#	Fixed the possibility to call the index.php of the templates directly in the browser (#291)
145
21-Dec-2006 Matthias Gallas
146
#	Fixed missing message when adding a site without page title (#300)
147
21-Dec-2006 Ryan Djurovich
148
#	Fixed bug with captcha script (#346)
149
20-Dec-2006 Matthias Gallas
150
#	Fixed Return to Search Results Page (#365)
151
!	Set Version to 2.6.5
152
-	Removed Changeset 365 because this will be a part of WB 2.7.x
153
#	Fixed a little typo error in class.admin.php (#364)
154
26-Nov-2006 Ryan Djurovich
155
+	Added new script that could possibly be apart of 2.7.x as a replacement
156
	for having the pages directory 
157
17-Nov-2006 Matthias Gallas
158
#	Fixed fatal error in line 46 news/comment.php (thanks to eki)(#358)
159
15-Nov-2006 Matthias Gallas
160
#	Fixed again intropage doesn't work (#71)
161
20-Oct-2006 Matthias Gallas
162
+	Added phpmailer class (thanks to doc)
163
+	Added Remember-expanded-pages-in-admin (thanks to ephraimt)
164
+	Added List sorting in admin area (thanks to rsmith)
165
#	Fixed table width 100% are wrong displayed in container templates
166
	when IE is used (#350)
167
#	Fixed large space between menupoints in IE (#349)
168
#	Fixed Website description is not displayed when no page description
169
	available (#348)
170
#	Fixed group images in news modul cannot be stored (#342)
171
#	Fixed Typo in form/save_field.php (#341)
172
#	Fixed files in /pages/posts folder are not deleted (#340)
173
#	Fixed specialchars problem in the news modul (#339)
174
#	Fixed news modul stores empty records (#338)
175
#	Fixed Captcha didn't work in news comments (#337)
176
#	Fixed various php notices (#334)
177
+	Added new upgrade_function (thanks to kozmoz)
178
#	Fixed addons table isn't updated when a modul is updated (#332)
179
#	Fixed spelling errors in the signup2.php (#330)
180
#	Fixed MySQL 5.x missing default values for INT fields in all system
181
	and modules tables (#329)
182
#	Fixed installer does not insert admin user (#328)
183
+	Added support for getting page ID of page that referred search
184
	request (#327) (thanks to brofield)
185
#	Fixed search results generate invalid XHTML and notify warnings (#326)
186
Stefan Braunewell
187
#	Fixed Field 'last_reset' doesn't have a default value (#313)
188
+	Added get_post_escaped to wb class which automatically calls add_slashes
189
	on get_post output and used it in form/save_field.php
190
------------------------------------- 2.6.4 -------------------------------------
191
20-May-2006 Ryan Djurovich
192
#	Fixed security issues related to #237
193
#	Fixed typo in news save comment page (#282)
194
#	Fixed typo in news delete post page (#283)
195
!	Added multi-submission protection to form module (#119)
196
#	Added notice for when PHP Session Support appears to be disabled in installer,
197
	even if it is enabled and the problem actually lies in the users browser (#154)
198
19-May-2006 Ryan Djurovich
199
#	Fixed problem in forgotten login form where email field is too short (#207)
200
#	Fixed typo in forgotten login details email (#190)
201
15-May-2006 Stefan Braunewell
202
#	Fixed security issues (#237)
203
03-May-2006 Stefan Braunewell
204
#	Fixed problems with pre-2.6.0 modules in section list
205
#	Fixed e-mail bug caused by From: headers in internal mail function calls
206
	(#189)
207
#	E-mail validation in install script now accepts new top-level domains
208
	(#162)
209
#	Error status is now overwritten by next database query (#182)
210
#	Fixed obscure problem in htmlarea install script
211
------------------------------------- 2.6.3 -------------------------------------
212
19-Mar-2006 Stefan Braunewell
213
#	Fixed ticket #146: problems removing groups from viewers list of a page
214
16-Mar-2006 Stefan Braunewell
215
!	Changed link target selection. Now self, top and new. (Ticket #145)
216
#	Fixed ticket #143. Charset setting is now used in admin login and forgot
217
	password pages.
218
#	Some changes to the SQL code in the install script for improved 
219
	compatibility with new MySQL versions
220
#	Fixed ticket #134 - error on browsing media.
221
+	Improved backup module: new choice between full database or WB-related
222
	backup.
223
#	Fixed ticket #141 - admin now sees all folders in media
224
#	Fixed e-mail sending problems due to additional parameter in mail call.
225
#	Applied fix regarding ticket #138: new users now get deleted if
226
	sending e-mail fails.
227
#	Fixed ticket #137: Last Reset timer not reset in frontend forgotten 
228
	password process
229
#	Removed duplicate expression from modules/news/install.php which caused
230
	problems in installation
231

  
232
01-Mar-2006 Stefan Braunewell
233
#	Fixed ticket #68 - Safari problem with displaying all parents.
234
#	Fixed ticket #136 - mailing forgotten password in admin login screen leads 
235
	to fatal error.
236
!	Renamed tag [PROCESSTIME] to [PROCESS_TIME]
237
------------------------------------- 2.6.2 -------------------------------------
238
03-Feb-2006 Stefan Braunewell (very big special thanks to John and Alex)
239
#	Fixed ticket #104 - commas in form field descriptions not allowed.
240
#	Cookie REMEMBER_KEY wasn't cleared in account/logout 
241
	and expiration date is now set to time in the past.
242
#	Smart login not working.
243
!	Changed mail calls to new function $wb->mail.
244
#	Form: ticket 124 added captcha settings check 
245
#	Ticket 118 added formfield type to check for email/text 
246
#	Ticket 115 changed comparision /modules/form/view.php 
247
#	Added correct timecheck in form submissions
248
!	Changed captcha.php call to include timestamp
249
!	Changed the e-mail validation code and added a mail function to class wb.
250
!	Forgotten password: if sending of e-mail fails, restore old password.
251
	Ticket #110
252
!	Added more charset options. Ticket #102 - thanks to ruebenwurzel!
253
!	Character encoding setting also affects admin backend.
254
	Mentioned in ticket #102.
255
!	Reintroduced page languages setting. If switched to off, page
256
	languages are only used to determine the language file for the
257
	universal texts. If on, displayed page and menu are affected by
258
	the language session variable.
259
#	Fixed bugs in show_breadcrumbs code and added parameter "depth"
260
	to set the number of levels to be show.
261
#	Fixed a bug where access settings of registered and private pages
262
	were displayed incorrectly.
263
#	Fixed captcha being cached.
264
#	Added an exit call after every heading("Location:...")
265
	redirector to prevent unwanted execution of code.
266
#	Bug #122. Replaced empty field check by check that setting name is
267
	not "wb_version".
268
#	Replaced all remaining occurrences of '/media' by MEDIA_DIRECTORY - bug #108.
269
#	Fixed bug #99 and two additional instances of typo 
270
	catpcha instead of captcha.
271
#	Fixed some typos
272
#	Fixed some notices and warnings.
273
#	Fixed bug #105 - back buttons in addon detail pages not editable.
274
!	Replace 'admin' by 'wb' in all account pages. 
275
!/#	Moved print_success and print_error code to class.wb.php.
276
	Added correct parameters to these functions in account pages. 
277
------------------------------------- 2.6.1 -------------------------------------
278
12-Dec-2005 Ryan Djurovich
279
#	Fixed security vulnerability in class.login.php
280
#	Fixed typo in EN language file
281
#	Fixed captcha problems (when feature is disabled) in form module and sign-up
282
!	Added charset encoding to admin templates
283
!	Added extra code to check for selection of addon upon uninstalling
284
#	Fixed bugs in RSS news feeder
285
#	Fixed bug with PAGE_DESCRIPTION not being set on any page
286
------------------------------------- 2.6.0 -------------------------------------
287
28-Nov-2005 Ryan Djurovich
288
+	Added default charset option to (advanced) settings
289
#	Form module email fields now have email address validation
290
#	Fixed spacing in form submissions
291
27-Nov-2005 Ryan Djurovich
292
+	Added captcha verification to sign-up form
293
+	Added Captcha to News module
294
24-Nov-2005 Stefan Braunewell
295
!	Applied aportale's patch to use label instead of javascript toggle code
296
20-Nov-2005 Ryan Djurovich
297
!	News mod now hides read more link if no need for it (see ticket #56)
298
+	Added support for mailto: links in the menu link mod
299
#	Added direct-access redirection on some files (see ticket #37)
300
+	Added extra characters to convert.php (see ticket #64)
301
#	Fixed ticket #65 (last_reset check in account/forgot_form.php)
302
29-Sep-2005 Ryan Djurovich
303
!	Cleaned up form buttons in Settings
304
!	Moved some options into Advanced Settings
305
#	Semi-disabled "separate" page trash option
306
+	Created a backup module/tool for backing-up the database
307
	(thanks to John (pcwacht) for the original code)
308
+	Created new "blank template", which can be used in case where you don't
309
	want anything wrapping page-content.
310
19-Sep-2005 Ryan Djurovich
311
+	Added _license field for all add-ons to specify a license
312
!	Renamed _designed_for variables (for all addons) to _platform
313
+	Created addons table for faster internal referencing of installed addons
314
!	Fixed some links, including the "Help" button in Admin
315
#	Used nl2br to display body correctly when viewing form-submissions
316
15-Sep-2005 Stefan Braunewell
317
+	Added table module with columns 'name','type' and 'directory' as an
318
	index.
319
+	Added entry to settings table 'wb_version' which holds the version
320
	number and can be utilized in future upgrade scripts.
321
!	Added upgrade functionality also for templates and languages.
322
#/!	Template/modules installation now respects paths.
323
!	Moved updates from config.php to database.
324
	Created initialize.php (required by config.php) to read settings.
325
11-Sep-2005 Stefan Braunewell
326
!	HTMLArea is now a module instead of a core component. Files moved
327
	from "include" to "modules".
328
+	Implemented Installation of modules on top of an older version. This is 
329
	done via checking $module_version. Instead of install.php, upgrade.php
330
	is then called if it exists in the module package. 
331
	For module developers: $module_version and $new_module_version are 
332
	accessible in upgrade.php to find out what upgrade steps need to be taken.
333
!	Changed column names in mod_news_posts from short,long to content_short,
334
	content_long.
335
09-Sep-2005 Stefan Braunewell
336
+	Added new advanced setting "Rename Files On Upload". File extensions can be
337
	given so that respective files will have a ".txt" appended on media upload.
338
#	Fixed "None found" message bug when user has no top level page edit
339
	rights.
340
#	Fixed missing parent option 'none' - ticket #12 - and a minor scope bug.
341
+	Added breadcrumbs code. Call using $wb->breadcrumbs().
342
+	Added utf-8 character encoding meta tag into all stock templates.
343
#	Fixed bug when changing a page's parent
344
!	Changed the way blocks are treated. Added new frontend class attribute
345
	default_block_content that controls what is shown on pages such as
346
	search, login, etc. (Ticket #16)
347
+	Added support for WYSIWYG editor modules (wysiwygmod)
348
+	When trying to access a registered page, user is automatically redirected
349
	there on successful login.
350
#	Fixed various issues with system search (mainly related to stripslashes()
351
#	Removed stripslashes() in many places in the code. Added check for
352
	magic_quotes_gpc to new wb class method add_slashes(). Now database contest
353
	is independent of magic_quotes setting..
354
05-Sep-2005 Stefan Braunewell
355
#	Fixed bug concerning direct access of preferences page.
356
#	Reworked page visibility and menu item visibility code (frontend login
357
	problem).
358
#	Pages in link list in htmlarea popup are now correctly ordered.
359
#	Fixed bug where group with existing name can be added.
360
04-Sep-2005 Ryan Djurovich
361
+	Added and RSS newsfeed script to the News module
362
04-Sep-2005 Stefan Braunewell
363
!	Rewrote menu function. Parameters are now given as attributes to frontend class.
364
#	Fixed some occurrences of potential direct access path disclosure
365
#	Added directory check to browse.php to prevent xss exploit by trusted users.
366
!	Updated code to reflect move to Subversion repository system.
367
27-Aug-2005 Stefan Braunewell
368
#	Fixed bugs 4,5,6,8,9 in bug tracker
369
!	Removed 'USER_LANGUAGE' and 'GET_LANGUAGE' constants.
370
	A GET['lang'] now sets the session language variable.
371
26-Aug-2005 Stefan Braunewell
372
!	Moved redundant code into the new class functions. Created 
373
	'compatibility.php' for backward compatibility with
374
	modules and templates. Variables and functions can still be accessed
375
	in the old way.
376
!/+	Reorganized core frontend files, added new base class 'wb' from
377
	which 'admin' and the new 'frontend' class inherit. Moved all frontend
378
	function into new class. Completely rewrote core index.php.
379
	Now all variables and functions that are available to templates and
380
	modules are attributes and methods of the frontend and the wb classes
381
------------------------------------- 2.5.2 -------------------------------------
382
23-Jun-2005 Ryan Djurovich
383
!	create_access_file now creates all parent directories if needed
384
#	Fixed bug when moving page with subpages to another level
385
#	Fixed bug when saving "Settings" (in Admin) on Windows/IIS
386
#	Fixed bug where query was not setting error correctly in class.database.php
387
22-Jun-2005 Ryan Djurovich
388
#	Fixed bug where template permissions were not saved when a adding group
389
21-Jun-2005 Ryan Djurovich
390
#	Added htmlspecialchars for modifying WYSIWYG, news, etc. modules (Bug #78)
391
#	Fixed language problems in some area's of Admin. (Bug #70)
392
#	Added a space in website/page keywords (Bug #69)
393
#	Fixed bugs on settings2.php (Bug #52)
394
!	Links inserted with HTMLArea now use [wblink--PAGE_ID--] instead of raw URL
395
13-Jun-2005 Ryan Djurovich
396
#	Fixed bug (#88) with news module
397
!	Title of Administration login page now taken from language file (Bug #72)
398
#	Fixed redirection admin/home to admin/start on admin/index.php
399
#	Fixed bug with forgotten password page in admin (Bug #81)
400
25-Apr-2005 Ryan Djurovich
401
#	Fixed numerous bugs with module uninstallation
402
#	Fixed bug when uploading files in Administration -> Media
403
!	Installer no-longer requires you to accept the GNU GPL
404
------------------------------------- 2.5.1 -------------------------------------
405
16-Apr-2005 Ryan Djurovich
406
#	Fixed two bugs with account login/logout
407
------------------------------------- 2.5.1 -------------------------------------
408
15-Apr-2005 Ryan Djurovich
409
#	Fixed bug where non-english characters can get used in page filenames. Many
410
	measuers have been added (including a new file: wb/framework/convert.php),
411
	to prevent any possible errors that can occur in page filenames.
412
#	Fixed invalid meta tags in stock templates (meta tags were not closed)
413
#	Removed lines 401, 402, and 425 of wb/index.php - not needed
414
#	Fixed bug where search and account pages are shown in every block
415
	that is in a template
416
#	Fixed numerous bugs with media home directories feature
417
10-Apr-2005 Ryan Djurovich
418
#	Fixed bugs in account/login.php and logout.php where users
419
	gets redirected to /pages
420
------------------------------------- 2.5.0 -------------------------------------
421
08-Apr-2005 Ryan Djurovich
422
-	Removed section language feature
423
+	Added page language feature (replaces need for sections language feature)
424
#	Fixed bug where pages using menu_link module can have the URL changed
425
-	Page directory no longer stored in link field in pages table, it is now added
426
	when the page_link function is called - this makes changing the pages
427
	directory much easier and quicker
428
!	Pages with visibility of "none" are now no longer directly accessable
429
+	Added new visibility setting "hidden", acts exactly like none did previously
430
!	Template info file can now specify number of menu's available and relative names
431
!	Template info file can now specify number of blocks's available and relative names
432
------------------------------------- 2.4.3 -------------------------------------
433
07-Apr-2005 Ryan Djurovich
434
#	page_filename function has been rewritten using str_replace
435
	function, which should be faster and will allow characters
436
	from other languages into filenames
437
!	Created new media_filename function, which is now used
438
	by all media functions (create,upload,rename) to determine
439
	which characters should be removed from a desired filename
440
+	New button in Administration page list to view specific page
441
#	Updated the page_link function to now be compatible with menu link
442
	module when setting pages directory to root
443
#	Fixed bugs in search when using "Any Words" option
444
#	Fixed bug with news module when pages directory set to root
445
!	Changed URL of documentation website on Administration Start page
446
------------------------------------- 2.4.2 -------------------------------------
447
05-Apr-2005 Ryan Djurovich
448
#	Fixed bug where file could be renamed to nothing in Media
449
!	Optimised Media create folder, upload file, and rename functions
450
#	Fixed bug where stripslashes not run on news post titles in admin
451
05-Apr-2005 Stefan Braunewell
452
#	Fixed bug concerning usage of the private_sql variable
453
#	Fixed bug conerning sub-pages being displayed in menus incorrectly
454
------------------------------------- 2.4.1 -------------------------------------
455
04-Apr-2005 Ryan Djurovich
456
!	Pages with visibility of "none" are again directly accessable
457
#	Fixed bugs regarding renaming files and directories in Media section
458
!	When home folders disabled, all folders now visible in Media section
459
------------------------------------- 2.4.0 -------------------------------------
460
03-Apr-2005 Ryan Djurovich
461
-	Removed recently added visibility setting of "heading", and relative config vars
462
+	Added new "menu" field to pages table, and new setting "multiple menus"
463
	which replaces the need for the menu headings feature
464
+	Added links to top of groups and users sections, linking to each other
465
!	Change menu width in "Round" template to 170px (was 150px)
466
#	Change page "are you sure" deletion message to mention that it will delete
467
	all sub-pages as well
468
#	Fixed many bugs with news module when viewing posts by group
469
!	Pages with visibility of "none" are now no longer directly accessable
470
02-Apr-2005 Ryan Djurovich
471
-	Removed need to specify DB_URL when calling database class
472
#	Stopped fields without a type specified from being shown in form mod
473
#	Changed '/media' to MEDIA_DIRECTORY on HTMLArea popup windows
474
	for insert link and insert image
475
+	Added setting which allows you to specify the default WYSIWYG style
476
+	Added "Server Email" option, to specify what is used in "From" field when
477
	sending emails using the PHP mail function. Default is admins email address.
478
#	Search now excludes pages which have a visibility of none or heading
479
!	Pages are now given modified_when and modified_by when added
480
01-Apr-2005 Ryan Djurovich
481
+	Added option to News module to specify how many posts should be listed
482
	per page (by default it is set to unlimited, which functions like previous version)
483
#	Added stripslashes when display page titles in search
484
+	Page descriptions and last updated date now shown in search by default
485
30-Mar-2005 Ryan Djurovich
486
+	Added new feature for Media home folders, where a folder can be specified
487
	for a specific user or group of users only
488
!	Changed URL of Help button to http://www.websitebaker.org/docs/
489
+	Added new feature for "Page Trash" - two modes available: inline and separate
490
!	When pages are deleted, all sub-pages are now deleted (instead of being moved
491
	up a level)
492
29-Mar-2005 Ryan Djurovich
493
-	Removed Database Settings from Administration Settings (options will not be
494
	available in 3.x, so trying to match interface with WB 3.x plans
495
!	Changed the name of Path Settings to Filesystem Settings in Administration
496
	Settings, and removed ability to change path/url options - matching interface
497
	plans for WB 3.x
498
+	Added same options for OS and file permissions as installer to Settings
499
!	Sessions now named with APP_NAME.'_session_id' (e.g. default is wb_session_id)
500
28-Mar-2005 Ryan Djurovich
501
+	New functions available to templates to simplify creation of them. This aims
502
	to "future-proof" templates for WB 3.x plans.
503
!	Default templates updated to support some of the new functions
504
+	Added field to pages table "page_trail" which stores a list of the pages
505
	parents. This field was needed by the new page_menu function
506
+	Added option for page visibility "heading" to enabled support for multiple
507
	menu's. Also, this helps to "future-proof" templates for WB 3.x plans
508
+	Added option for page visibility "registered", which acts a little like
509
	private, but is still shown in the menu (although users need to log in to view
510
	the pages content)
511
+	Form module submissions now saved to database, and feature now added to
512
	limit number of submissions per hour to prevent spamming
513
+	New field for Form module: email. Allows you to specify their email in
514
	"from" field on module settings.
515
#	Fixed bug when displaying comments in News module (WB Bug #14)
516
+	New "under contruction" message if no pages exist
517
!	Cleaned-up wb/index.php
518
27-Mar-2005 Ryan Djurovich
519
+	Created advanced mkdir and chmod functions
520
#	Fixed bug in media where wrong file/folder is deleted
521
+	Complete overhall of installer - now only one step! It has been greatly
522
	simplified in many ways, has much better validation, reports error much more
523
	nicely, and automatically logs the user into the Administrations
524
+	Must now specify OS type - allows for customizable file permission settings
525
+	Sections can now have a language code assigned to them
526
+	Sections can now have a block name/id assigned to them
527
!	Home section of Administration renamed to Start, to save confusion with saying
528
	Homepage (because this term could either mean the main website or Home section
529
	in	Administration). Also, this aims to unify the interface with WB 3.x plans
530
!	Moved Users and Groups sections under Access section. This aims to unify the
531
	interface with WB 3.x plans, which help to unclutter the menu
532
!	Interface for Settings section has been imporved for usability purposes
533
#	Fixed HTMLArea where no scrollbar for "insert link" and "insert image" dialogs
534
	by placing media list inside an iframe
535
#	Fixed stripslashes problem for viewing news comments
536
!	Added code from Formesque module (an advanced version of the original Form
537
	module, modified by Rudolph Lartey from www.carbonect.com), and made further
538
	interface improvements for select box/checkbox group/radio group options.
539
#	Possibly fixed bugs where an S appears before file and dir modes
540
#	Fixed bug where users can be added with same emails (in Administration)
541
-	Removed support for PEAR, as it was deemed an unnecessary addition which only
542
	makes code more bulky, and removing it will decrease package size a lot
543
+	New "homepage redirect" option so first page is included and not redirected to
544
#	Fixed text not being shown when module uninstalled
545
!	Imporved interface for basic group permissions
546
26-Mar-2005 Stefan Braunewell
547
#	Fixed bug with front-end logins
548
#	Fixed bug when saving intro page 
549
+	Added check on sign-up if e-mail exists (thanks to P. Melief)
550
#	Fixed bugs concerning moving/deleting pages
551
#	Fixed list of parents in page settings
552
#	Fixed mkdir without mode parameter
553
#	Added a check on install to ensure PHP 4.1.x compatibility (thanks to Wanderer)
554
+	Added support for PAGES_DIRECTORY set to root
555
+	Search form now supports quotes (thanks to Manafta)
556
#	Fixed page section ordering
557
#	News items are displayed with name of poster instead of "Unknown"
558
#	Deletion confirmation popup window in media section now shows correct file name
559
------------------------------------- 2.3.1 -------------------------------------
560
03-Fed-2005 Ryan Djurovich
561
+	Now there is two types of "filesystem modes", one for directories and one
562
	for files. Having different settings is very common for most servers, so
563
	this addition should fix many problems people had with 2.3.0.
564
-	Removed filesystem mode options from installation
565
!	Removed duplicate text on installation step 3 for timezone
566
!	All "access files" for the news module now stored in pages/posts instead
567
	of a sub-dir relative to the page (this fixes many bugs)
568
#	Fixed major bugs when deleting pages with sub-pages
569
!	Removed the restrictions that prevent a user for changing a pages level
570
#	Fixed bug with "toggle" plus/minus in IE for pages list
571
#	Fixed some bugs where /pages was not replaced with PAGES_DIRECTORY constant
572
------------------------------------- 2.3.0 -------------------------------------
573
26-Jan-2005 Ryan Djurovich
574
#	Fixed bug in framework/functions.php that made root parent always equal 8
575
#	Added missing braces in lines 182 and 208 of admin/pages/settings2.php
576
#	Fixed SQL-query on line 172, placing a / after $old_link
577
#	Added eregi checks for PAGES_DIRECTORY on lines 140 and 150 of
578
	admin/pages/settings2.php
579
#	Added ordering cleaning to delete_post.php on line 53 for news module
580
!	GMT option is selected for "Default Timezone" in the installer, instead
581
	of the old "Please select" message (which had the same value as GMT)
582
28-Jan-2005 Ryan Djurovich
583
!	Ability to specify the chmod number when WB uploads files, etc.
584
!	Modified file headers (copyright/license notice) so they now look almost the
585
	same, independant of font. Also, it now covers copyright for 2005.
586
30-Jan-2005 Ryan Djurovich
587
#	Added code on wb/admin/pages/delete.php to remove sections from the sections
588
	table when a page is deleted.
589
+	New 'Smart Login' prevents users from using external password managers,
590
	and can be set to remember the users password using cookies.
591
!	SourceForge CVS module now called websitebaker2 (instead of just
592
	websitebaker). Also, all file versions have been reset.
593
01-Fed-2005 Ryan Djurovich
594
!	Added code to prevent from changing a pages level (it simply disables
595
	the select box), to prevent many possible bugs.
596
------------------------------------- 2.2.4 -------------------------------------
597
23-Dec-2004 Ryan Djurovich
598
!	Change 'EXACT_PHRASE' to 'EXACT_MATCH' on line 261 of wb/languages/EN.php
599
#	Fixed multi-language support in search
600
+	Added more detailed options to list of PHP error reporting level's
601
-	Removed ability to change language and PHP error reporting level
602
	on installation to make things easier for newbie's
603
+	Ability to select custom spacer for page filename's
604
!	Changed the way a language code is found on language installation
605
+	Added template permissions to groups
606
#	Fixed bug when trying to change email from Preferences (admin and frontend)
607
#	Fixed bug with auto-selection of "System Default" for Preferences
608
!	News module now use's WYSIWYG for modifying news posts
609
+	Ability to specify both the pages and media target directories
610
------------------------------------ 2.2.3-c ------------------------------------
611
22-Dec-2004 Ryan Djurovich
612
#	Fixed problem with DB password being reset if Settings saved in basic mode
613
------------------------------------ 2.2.3-b ------------------------------------
614
21-Dec-2004 Ryan Djurovich
615
#	Fixed minor bug on admin templates section
616
#	Fixed bug on rename.php and rename2.php in admin media section
617
------------------------------------- 2.2.3 -------------------------------------
618
20-Dec-2004 Ryan Djurovich
619
+	Added WB release version in Administration (top right corner)
620
!	New option to prevent users from adding level 0 pages
621
#	Fixed bug when deleting post's in News module
622
+	Added new field in pages table for "root" parent (level 0 parent), for
623
	extra flexability in creating templates
624
!	Round template now supports unlimited page levels
625
------------------------------------- 2.2.2 -------------------------------------
626
18-Dec-2004 Ryan Djurovich
627
+	New option under Search Settings for selecting custom template for search
628
+	New option when changing page settings to set the target
629
#	Fixed error when saving a user after editing
630
!	Users can now modify sub-page if they dont have permissions on the parent
631
------------------------------------- 2.2.1 -------------------------------------
632
15-Dec-2004 Ryan Djurovich
633
#	Fixed bug when changing password on preferences form (front-end)
634
#	Fixed bug when retrieving user details (administration)
635
#	Added check to see if module, template, or language is in use when deleting
636
#	Fixed up email that is sent to user from a submitted form
637
#	Fixed major problem with module permissions which stopped it from working
638
------------------------------------- 2.2.0 -------------------------------------
639
14-Dec-2004 (Correct date[s] unkown) Ryan Djurovich
640
+	Multiple-level page support
641
+	Multiple section's for pages (including interface)
642
!	Removed text created using two words on all areas
643
	(e.g. {Intro} {PAGE} is now {INTRO_PAGE})
644
	this is for better language support
645
+	Added Languages section
646
!	Moved Templates and Modules under Add-ons section
647
!	Changed name of "Default" template to "Round"
648
+	Added "All CSS" template
649
+	Added "Jump"
650
+	Added 
651
!	Modified "Box" template to support multiple page levels
652
+	Added "Menu Link" module
653
+	Added "News" module
654
+	Added "Code" module
655
+	Added "Form" module
656
+	Added "Wrapper" module
657
!	Changed name of "Normal Page" module to "WYSIWYG"
658
+	Created new admin wrapper script to ease module develpment
659
+	Media now automatically creates index.php file for every
660
	sub-folder made (for security purposes)
661
!	Change "Help" link in Administration menu so it now directs
662
	to the the new Website Baker documentation website found at:
663
	http://www.websitebaker.org/documentation
664
!	Password is now required to change email in preferences
665
+	User can now select custom Language and Date & Time Formats
666
+	Added search functionality, with three different "methods":
667
	1. Using all words  2. Using any words  3. Exact match
668
+	Added native MySQL database support
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
17-Jan-2008 Matthias Gallas
15
#	Reintroduced changes from changeset 520 and 540 wich where overwritten 
16
	by changeset 546
17
#	Revoked changeset 541 end removed all PAGE_EXTENSION variables and the related
18
	option in WB settings as this function only works on Apache Servers
19
	together with .htaccess and mod_rewrite
20
+	Added keywords to file menu_link/uninstall.php
21
17-Jan-2008 Christian Sommer
22
!	added the "users in multiple groups" feature (closes parts of ticket #546)
23
16-Jan-2008 Thomas Hornik
24
!	changed admin/pages/save.php to allow hidden config-elements in table search.
25
!	changed module menu_link: added table mod_menu_link, fixed page-deleting-bug,
26
	fixed odd behavior in case of menu_link as default-page.
27
#	changing PHP-error-level within website baker does not work - fixed (fixed ticket 532)
28
14-Jan-2008 Matthias Gallas
29
#	Replaced hardcoded .php with the variable PAGE_EXTENSION for the use in pagenames.
30
	(!!Attention!! To get extenions other than .php working additional fixes are necessary!)
31
#	Replaced the variable PAGE_EXTENSION with hardcoded .php on all places where the
32
	pathes points to WB Corefiles with the page extension .php
33
#	Replaced hardcoded text in login.php with language variables (fixes ticket 386)
34
14-Jan-2008 Christian Sommer
35
!	added a missing </tr> tag
36
#	re-introduced bugfix of Changeset 472 (fixes ticket 402) accidentally 
37
	removed by Changeset 529 (enhanced pages admin)
38
13-Jan-2008 Christian Sommer
39
#	moved administration tools from Settings to the new section Admin-Tools
40
#	this bugfix closes the ticket 529 (WB upgrades modules with identical version)	
41
!	increased redirection time after success message, corrected HOME link of the login panel
42
!	updated PHPMailer framework to version 2.0.0 (/include/phpmailer)
43
#	this bugfix closes ticket 412 (direct call of admin/settings/save.php clears database)
44
#	fixed error with redirection to admin panel after installation
45
12-Jan-2008 Christian Sommer
46
!	introduced smart URL detection for the 'View' menu in the WB backend
47
	(if page_id is set, redirect to this page instead of the root)
48
!	introduced the enhanced pages admin dialogue (thanks to icouto)
49
11-Jan-2008 Christian Sommer
50
+	added the FCKEditor module files missing in Changeset 527 (/modules/fckeditor)
51
-	removed the hmtlarea files in /modules/htmlarea
52
!	set the fckeditor as the new default editor /install/save.php
53
!	Updated function: register_frontend_modfiles in /framework/frontend.functions.php
54
	(added constants MOD_FRONTEND_CSS_REGISTERED, MOD_FRONTEND_JAVASCRIPT_REGISTERED)
55
11-Jan-2008 Matthias Gallas
56
!	Update codepress to Version 0.9.6
57
!	Update phplib to Version 7.4a
58
09-Jan-2008 Matthias Gallas
59
!	Upgrade pclzip to the newer more php5 complaint version 2.6, see ticket #526
60
#	Fixed ticket #542 (Thanks to Thorn)
61
23-Dec-2007 Matthias Gallas
62
!	Changed all copyright notices to include now 2008
63
21-Sep-2007 Matthias Gallas
64
#	Fixed a typo in /framework/frontend.functions.php cause that websites using
65
	the new register_frontend_modifles() functions do not validate
66
24-Jan-2007 Christian Sommer
67
!	Replaced some core files to allow configuration of wbmailer via admin settings panel
68
------------------------------------- 2.6.7 -------------------------------------
69
02-Jan-2007 Christian Sommer
70
+	Added missing converting file for changeset [504]
71
------------------------------------- 2.6.6 -------------------------------------
72
01-Jul-2007 Matthias Gallas
73
#	Fixed converting issue with some ISO-charsets and speeded up converting on large pages (thanks to Thorn)
74
01-Jul-2007 Ryan Djurovich
75
#	Fixed bug where error message not displayed when script fails to create a page
76
#	Fixed bugs introduced in [484]
77
14-May-2007 Matthias Gallas
78
+	Added support for ISO-8859-6.(Thanks to thorn)
79
12-May-2007 Christian Sommer
80
+	Replaced functions page_css and page_javascript by register_frontend_modfiles
81
+	Added function register_backend_modfiles to allow backend modules to use optional CSS and JS files
82
+	Added the JS framework codepress to allow syntax highlighting for JS, HTML, PHP code (textarea)
83
+	Added the new function register_frontend_modfiles to the built in templates
84
08-May-2007 Matthias Gallas
85
+	Added wrapper to functions.php if mb_string is not available (Thanks to thorn)
86
+	Added new functions page_css and page_javascript to the built in templates
87
+	Added search highlight class to css files of the built in templates
88
30-Apr-2007 Matthias Gallas
89
#	Fixed ticket #392; root_parent not being set correctly (Thanks to eggsurplus)
90
10-Apr-2007 Matthias Gallas
91
+	Optimized search and highlighting funktions (Thanks to thorn)
92
03-Apr-2007 Matthias Gallas
93
#	Fixed a bug in menulink; if you deleted a menulink page the linked page was also deleted
94
	in the pages directory (Special thanks to "Funky_MF" for the fix)
95
01-Apr-2007 Matthias Gallas
96
#	Fixed issues with some languages when UTF8 is used. Removed all htmlentites
97
	from the code (revoked changeset 396) and added new functions instead. Adapted the
98
	search and the highlighting to use the new functions. With this changes WB can now
99
	be used with charset UTF8 for all languages. Very special thanks to Thorn who wrote
100
	and tested this changes.
101
12-Mar-2007 Matthias Gallas
102
+	Added multilingual support to search
103
03-Mar-2007 Matthias Gallas
104
+	Added new function for highlighting search results in the content area
105
	(Special thanks to "thorn" and "Funky_MF")
106
#	Fixed some issues in search with special chars
107
	(Special thanks to "thorn" and "Funky_MF")
108
22-Feb-2007 Christian Sommer
109
#	Fixed bug in changeset 428 (page files were not deleted in /pages folder due to a typo in wb/framework/function.php)
110
16-Feb-2007 Christian Sommer
111
!	Suppressed PHP warnings and errors when reading empty intro.php
112
16-Feb-2007 Christian Sommer
113
#	Applied fix to enable parsing of PHP code in the intro.php 
114
12-Feb-2007 Christian Sommer
115
!	Added functions page_css and page_javascript which allow to include optional
116
	module files module.css and module.js into the <head> section. This allows to 
117
	create valid (X)HTML, as CSS definitions of modules are included in the head section
118
12-Feb-2007 Christian Sommer
119
!	Security enhancement (reduced number of login trials from 50 to 3)
120
02-Feb-2007 Matthias Gallas
121
#	Applied fix for ticket #380 (Thanks to pcwacht)
122
30-Jan-2007 Ryan Djurovich
123
#	Applied fix for ticket #376
124
29-Jan-2007 Matthias Gallas
125
+	Added new variable $MODULE_DESCRIPTION wich allows to have optional a language
126
	specific description of the modules in the language files of the modules.
127
21-Jan-2007 Matthias Gallas
128
#	Fixed issue in the search table entries of form modul
129
13-Jan-2007 Matthias Gallas
130
#	Fixed some bugs in rss.php
131
07-Jan-2007 Matthias Gallas
132
#	Fixed error when uninstalling the news modul
133
02-Jan-2007 Matthias Gallas
134
+   Added id keywords to all missing files
135
#	Fixed issue with Permissions for pages sections
136
27-Dec-2006 Matthias Gallas
137
#	Fixed form modul stores empty records
138
------------------------------------- 2.6.5 -------------------------------------
139
25-Dec-2006 Ryan Djurovich
140
!	Changed links to WB help website
141
24-Dec-2006 Matthias Gallas
142
#	Fixed some minor javascript errors in admin (thanks to pcwacht)
143
#	Fixed root_parent doesn't get updated when moving item in menu (#305)
144
!	Changed all copyright notices to include now 2007
145
23-Dec-2006 Matthias Gallas
146
#	Fixed IE allows to set a page as parent of itself (#320)
147
#	Fixed problem with Page Title has to be escaped (#287)
148
#	Fixed the possibility to call the index.php of the templates directly in the browser (#291)
149
21-Dec-2006 Matthias Gallas
150
#	Fixed missing message when adding a site without page title (#300)
151
21-Dec-2006 Ryan Djurovich
152
#	Fixed bug with captcha script (#346)
153
20-Dec-2006 Matthias Gallas
154
#	Fixed Return to Search Results Page (#365)
155
!	Set Version to 2.6.5
156
-	Removed Changeset 365 because this will be a part of WB 2.7.x
157
#	Fixed a little typo error in class.admin.php (#364)
158
26-Nov-2006 Ryan Djurovich
159
+	Added new script that could possibly be apart of 2.7.x as a replacement
160
	for having the pages directory 
161
17-Nov-2006 Matthias Gallas
162
#	Fixed fatal error in line 46 news/comment.php (thanks to eki)(#358)
163
15-Nov-2006 Matthias Gallas
164
#	Fixed again intropage doesn't work (#71)
165
20-Oct-2006 Matthias Gallas
166
+	Added phpmailer class (thanks to doc)
167
+	Added Remember-expanded-pages-in-admin (thanks to ephraimt)
168
+	Added List sorting in admin area (thanks to rsmith)
169
#	Fixed table width 100% are wrong displayed in container templates
170
	when IE is used (#350)
171
#	Fixed large space between menupoints in IE (#349)
172
#	Fixed Website description is not displayed when no page description
173
	available (#348)
174
#	Fixed group images in news modul cannot be stored (#342)
175
#	Fixed Typo in form/save_field.php (#341)
176
#	Fixed files in /pages/posts folder are not deleted (#340)
177
#	Fixed specialchars problem in the news modul (#339)
178
#	Fixed news modul stores empty records (#338)
179
#	Fixed Captcha didn't work in news comments (#337)
180
#	Fixed various php notices (#334)
181
+	Added new upgrade_function (thanks to kozmoz)
182
#	Fixed addons table isn't updated when a modul is updated (#332)
183
#	Fixed spelling errors in the signup2.php (#330)
184
#	Fixed MySQL 5.x missing default values for INT fields in all system
185
	and modules tables (#329)
186
#	Fixed installer does not insert admin user (#328)
187
+	Added support for getting page ID of page that referred search
188
	request (#327) (thanks to brofield)
189
#	Fixed search results generate invalid XHTML and notify warnings (#326)
190
Stefan Braunewell
191
#	Fixed Field 'last_reset' doesn't have a default value (#313)
192
+	Added get_post_escaped to wb class which automatically calls add_slashes
193
	on get_post output and used it in form/save_field.php
194
------------------------------------- 2.6.4 -------------------------------------
195
20-May-2006 Ryan Djurovich
196
#	Fixed security issues related to #237
197
#	Fixed typo in news save comment page (#282)
198
#	Fixed typo in news delete post page (#283)
199
!	Added multi-submission protection to form module (#119)
200
#	Added notice for when PHP Session Support appears to be disabled in installer,
201
	even if it is enabled and the problem actually lies in the users browser (#154)
202
19-May-2006 Ryan Djurovich
203
#	Fixed problem in forgotten login form where email field is too short (#207)
204
#	Fixed typo in forgotten login details email (#190)
205
15-May-2006 Stefan Braunewell
206
#	Fixed security issues (#237)
207
03-May-2006 Stefan Braunewell
208
#	Fixed problems with pre-2.6.0 modules in section list
209
#	Fixed e-mail bug caused by From: headers in internal mail function calls
210
	(#189)
211
#	E-mail validation in install script now accepts new top-level domains
212
	(#162)
213
#	Error status is now overwritten by next database query (#182)
214
#	Fixed obscure problem in htmlarea install script
215
------------------------------------- 2.6.3 -------------------------------------
216
19-Mar-2006 Stefan Braunewell
217
#	Fixed ticket #146: problems removing groups from viewers list of a page
218
16-Mar-2006 Stefan Braunewell
219
!	Changed link target selection. Now self, top and new. (Ticket #145)
220
#	Fixed ticket #143. Charset setting is now used in admin login and forgot
221
	password pages.
222
#	Some changes to the SQL code in the install script for improved 
223
	compatibility with new MySQL versions
224
#	Fixed ticket #134 - error on browsing media.
225
+	Improved backup module: new choice between full database or WB-related
226
	backup.
227
#	Fixed ticket #141 - admin now sees all folders in media
228
#	Fixed e-mail sending problems due to additional parameter in mail call.
229
#	Applied fix regarding ticket #138: new users now get deleted if
230
	sending e-mail fails.
231
#	Fixed ticket #137: Last Reset timer not reset in frontend forgotten 
232
	password process
233
#	Removed duplicate expression from modules/news/install.php which caused
234
	problems in installation
235

  
236
01-Mar-2006 Stefan Braunewell
237
#	Fixed ticket #68 - Safari problem with displaying all parents.
238
#	Fixed ticket #136 - mailing forgotten password in admin login screen leads 
239
	to fatal error.
240
!	Renamed tag [PROCESSTIME] to [PROCESS_TIME]
241
------------------------------------- 2.6.2 -------------------------------------
242
03-Feb-2006 Stefan Braunewell (very big special thanks to John and Alex)
243
#	Fixed ticket #104 - commas in form field descriptions not allowed.
244
#	Cookie REMEMBER_KEY wasn't cleared in account/logout 
245
	and expiration date is now set to time in the past.
246
#	Smart login not working.
247
!	Changed mail calls to new function $wb->mail.
248
#	Form: ticket 124 added captcha settings check 
249
#	Ticket 118 added formfield type to check for email/text 
250
#	Ticket 115 changed comparision /modules/form/view.php 
251
#	Added correct timecheck in form submissions
252
!	Changed captcha.php call to include timestamp
253
!	Changed the e-mail validation code and added a mail function to class wb.
254
!	Forgotten password: if sending of e-mail fails, restore old password.
255
	Ticket #110
256
!	Added more charset options. Ticket #102 - thanks to ruebenwurzel!
257
!	Character encoding setting also affects admin backend.
258
	Mentioned in ticket #102.
259
!	Reintroduced page languages setting. If switched to off, page
260
	languages are only used to determine the language file for the
261
	universal texts. If on, displayed page and menu are affected by
262
	the language session variable.
263
#	Fixed bugs in show_breadcrumbs code and added parameter "depth"
264
	to set the number of levels to be show.
265
#	Fixed a bug where access settings of registered and private pages
266
	were displayed incorrectly.
267
#	Fixed captcha being cached.
268
#	Added an exit call after every heading("Location:...")
269
	redirector to prevent unwanted execution of code.
270
#	Bug #122. Replaced empty field check by check that setting name is
271
	not "wb_version".
272
#	Replaced all remaining occurrences of '/media' by MEDIA_DIRECTORY - bug #108.
273
#	Fixed bug #99 and two additional instances of typo 
274
	catpcha instead of captcha.
275
#	Fixed some typos
276
#	Fixed some notices and warnings.
277
#	Fixed bug #105 - back buttons in addon detail pages not editable.
278
!	Replace 'admin' by 'wb' in all account pages. 
279
!/#	Moved print_success and print_error code to class.wb.php.
280
	Added correct parameters to these functions in account pages. 
281
------------------------------------- 2.6.1 -------------------------------------
282
12-Dec-2005 Ryan Djurovich
283
#	Fixed security vulnerability in class.login.php
284
#	Fixed typo in EN language file
285
#	Fixed captcha problems (when feature is disabled) in form module and sign-up
286
!	Added charset encoding to admin templates
287
!	Added extra code to check for selection of addon upon uninstalling
288
#	Fixed bugs in RSS news feeder
289
#	Fixed bug with PAGE_DESCRIPTION not being set on any page
290
------------------------------------- 2.6.0 -------------------------------------
291
28-Nov-2005 Ryan Djurovich
292
+	Added default charset option to (advanced) settings
293
#	Form module email fields now have email address validation
294
#	Fixed spacing in form submissions
295
27-Nov-2005 Ryan Djurovich
296
+	Added captcha verification to sign-up form
297
+	Added Captcha to News module
298
24-Nov-2005 Stefan Braunewell
299
!	Applied aportale's patch to use label instead of javascript toggle code
300
20-Nov-2005 Ryan Djurovich
301
!	News mod now hides read more link if no need for it (see ticket #56)
302
+	Added support for mailto: links in the menu link mod
303
#	Added direct-access redirection on some files (see ticket #37)
304
+	Added extra characters to convert.php (see ticket #64)
305
#	Fixed ticket #65 (last_reset check in account/forgot_form.php)
306
29-Sep-2005 Ryan Djurovich
307
!	Cleaned up form buttons in Settings
308
!	Moved some options into Advanced Settings
309
#	Semi-disabled "separate" page trash option
310
+	Created a backup module/tool for backing-up the database
311
	(thanks to John (pcwacht) for the original code)
312
+	Created new "blank template", which can be used in case where you don't
313
	want anything wrapping page-content.
314
19-Sep-2005 Ryan Djurovich
315
+	Added _license field for all add-ons to specify a license
316
!	Renamed _designed_for variables (for all addons) to _platform
317
+	Created addons table for faster internal referencing of installed addons
318
!	Fixed some links, including the "Help" button in Admin
319
#	Used nl2br to display body correctly when viewing form-submissions
320
15-Sep-2005 Stefan Braunewell
321
+	Added table module with columns 'name','type' and 'directory' as an
322
	index.
323
+	Added entry to settings table 'wb_version' which holds the version
324
	number and can be utilized in future upgrade scripts.
325
!	Added upgrade functionality also for templates and languages.
326
#/!	Template/modules installation now respects paths.
327
!	Moved updates from config.php to database.
328
	Created initialize.php (required by config.php) to read settings.
329
11-Sep-2005 Stefan Braunewell
330
!	HTMLArea is now a module instead of a core component. Files moved
331
	from "include" to "modules".
332
+	Implemented Installation of modules on top of an older version. This is 
333
	done via checking $module_version. Instead of install.php, upgrade.php
334
	is then called if it exists in the module package. 
335
	For module developers: $module_version and $new_module_version are 
336
	accessible in upgrade.php to find out what upgrade steps need to be taken.
337
!	Changed column names in mod_news_posts from short,long to content_short,
338
	content_long.
339
09-Sep-2005 Stefan Braunewell
340
+	Added new advanced setting "Rename Files On Upload". File extensions can be
341
	given so that respective files will have a ".txt" appended on media upload.
342
#	Fixed "None found" message bug when user has no top level page edit
343
	rights.
344
#	Fixed missing parent option 'none' - ticket #12 - and a minor scope bug.
345
+	Added breadcrumbs code. Call using $wb->breadcrumbs().
346
+	Added utf-8 character encoding meta tag into all stock templates.
347
#	Fixed bug when changing a page's parent
348
!	Changed the way blocks are treated. Added new frontend class attribute
349
	default_block_content that controls what is shown on pages such as
350
	search, login, etc. (Ticket #16)
351
+	Added support for WYSIWYG editor modules (wysiwygmod)
352
+	When trying to access a registered page, user is automatically redirected
353
	there on successful login.
354
#	Fixed various issues with system search (mainly related to stripslashes()
355
#	Removed stripslashes() in many places in the code. Added check for
356
	magic_quotes_gpc to new wb class method add_slashes(). Now database contest
357
	is independent of magic_quotes setting..
358
05-Sep-2005 Stefan Braunewell
359
#	Fixed bug concerning direct access of preferences page.
360
#	Reworked page visibility and menu item visibility code (frontend login
361
	problem).
362
#	Pages in link list in htmlarea popup are now correctly ordered.
363
#	Fixed bug where group with existing name can be added.
364
04-Sep-2005 Ryan Djurovich
365
+	Added and RSS newsfeed script to the News module
366
04-Sep-2005 Stefan Braunewell
367
!	Rewrote menu function. Parameters are now given as attributes to frontend class.
368
#	Fixed some occurrences of potential direct access path disclosure
369
#	Added directory check to browse.php to prevent xss exploit by trusted users.
370
!	Updated code to reflect move to Subversion repository system.
371
27-Aug-2005 Stefan Braunewell
372
#	Fixed bugs 4,5,6,8,9 in bug tracker
373
!	Removed 'USER_LANGUAGE' and 'GET_LANGUAGE' constants.
374
	A GET['lang'] now sets the session language variable.
375
26-Aug-2005 Stefan Braunewell
376
!	Moved redundant code into the new class functions. Created 
377
	'compatibility.php' for backward compatibility with
378
	modules and templates. Variables and functions can still be accessed
379
	in the old way.
380
!/+	Reorganized core frontend files, added new base class 'wb' from
381
	which 'admin' and the new 'frontend' class inherit. Moved all frontend
382
	function into new class. Completely rewrote core index.php.
383
	Now all variables and functions that are available to templates and
384
	modules are attributes and methods of the frontend and the wb classes
385
------------------------------------- 2.5.2 -------------------------------------
386
23-Jun-2005 Ryan Djurovich
387
!	create_access_file now creates all parent directories if needed
388
#	Fixed bug when moving page with subpages to another level
389
#	Fixed bug when saving "Settings" (in Admin) on Windows/IIS
390
#	Fixed bug where query was not setting error correctly in class.database.php
391
22-Jun-2005 Ryan Djurovich
392
#	Fixed bug where template permissions were not saved when a adding group
393
21-Jun-2005 Ryan Djurovich
394
#	Added htmlspecialchars for modifying WYSIWYG, news, etc. modules (Bug #78)
395
#	Fixed language problems in some area's of Admin. (Bug #70)
396
#	Added a space in website/page keywords (Bug #69)
397
#	Fixed bugs on settings2.php (Bug #52)
398
!	Links inserted with HTMLArea now use [wblink--PAGE_ID--] instead of raw URL
399
13-Jun-2005 Ryan Djurovich
400
#	Fixed bug (#88) with news module
401
!	Title of Administration login page now taken from language file (Bug #72)
402
#	Fixed redirection admin/home to admin/start on admin/index.php
403
#	Fixed bug with forgotten password page in admin (Bug #81)
404
25-Apr-2005 Ryan Djurovich
405
#	Fixed numerous bugs with module uninstallation
406
#	Fixed bug when uploading files in Administration -> Media
407
!	Installer no-longer requires you to accept the GNU GPL
408
------------------------------------- 2.5.1 -------------------------------------
409
16-Apr-2005 Ryan Djurovich
410
#	Fixed two bugs with account login/logout
411
------------------------------------- 2.5.1 -------------------------------------
412
15-Apr-2005 Ryan Djurovich
413
#	Fixed bug where non-english characters can get used in page filenames. Many
414
	measuers have been added (including a new file: wb/framework/convert.php),
415
	to prevent any possible errors that can occur in page filenames.
416
#	Fixed invalid meta tags in stock templates (meta tags were not closed)
417
#	Removed lines 401, 402, and 425 of wb/index.php - not needed
418
#	Fixed bug where search and account pages are shown in every block
419
	that is in a template
420
#	Fixed numerous bugs with media home directories feature
421
10-Apr-2005 Ryan Djurovich
422
#	Fixed bugs in account/login.php and logout.php where users
423
	gets redirected to /pages
424
------------------------------------- 2.5.0 -------------------------------------
425
08-Apr-2005 Ryan Djurovich
426
-	Removed section language feature
427
+	Added page language feature (replaces need for sections language feature)
428
#	Fixed bug where pages using menu_link module can have the URL changed
429
-	Page directory no longer stored in link field in pages table, it is now added
430
	when the page_link function is called - this makes changing the pages
431
	directory much easier and quicker
432
!	Pages with visibility of "none" are now no longer directly accessable
433
+	Added new visibility setting "hidden", acts exactly like none did previously
434
!	Template info file can now specify number of menu's available and relative names
435
!	Template info file can now specify number of blocks's available and relative names
436
------------------------------------- 2.4.3 -------------------------------------
437
07-Apr-2005 Ryan Djurovich
438
#	page_filename function has been rewritten using str_replace
439
	function, which should be faster and will allow characters
440
	from other languages into filenames
441
!	Created new media_filename function, which is now used
442
	by all media functions (create,upload,rename) to determine
443
	which characters should be removed from a desired filename
444
+	New button in Administration page list to view specific page
445
#	Updated the page_link function to now be compatible with menu link
446
	module when setting pages directory to root
447
#	Fixed bugs in search when using "Any Words" option
448
#	Fixed bug with news module when pages directory set to root
449
!	Changed URL of documentation website on Administration Start page
450
------------------------------------- 2.4.2 -------------------------------------
451
05-Apr-2005 Ryan Djurovich
452
#	Fixed bug where file could be renamed to nothing in Media
453
!	Optimised Media create folder, upload file, and rename functions
454
#	Fixed bug where stripslashes not run on news post titles in admin
455
05-Apr-2005 Stefan Braunewell
456
#	Fixed bug concerning usage of the private_sql variable
457
#	Fixed bug conerning sub-pages being displayed in menus incorrectly
458
------------------------------------- 2.4.1 -------------------------------------
459
04-Apr-2005 Ryan Djurovich
460
!	Pages with visibility of "none" are again directly accessable
461
#	Fixed bugs regarding renaming files and directories in Media section
462
!	When home folders disabled, all folders now visible in Media section
463
------------------------------------- 2.4.0 -------------------------------------
464
03-Apr-2005 Ryan Djurovich
465
-	Removed recently added visibility setting of "heading", and relative config vars
466
+	Added new "menu" field to pages table, and new setting "multiple menus"
467
	which replaces the need for the menu headings feature
468
+	Added links to top of groups and users sections, linking to each other
469
!	Change menu width in "Round" template to 170px (was 150px)
470
#	Change page "are you sure" deletion message to mention that it will delete
471
	all sub-pages as well
472
#	Fixed many bugs with news module when viewing posts by group
473
!	Pages with visibility of "none" are now no longer directly accessable
474
02-Apr-2005 Ryan Djurovich
475
-	Removed need to specify DB_URL when calling database class
476
#	Stopped fields without a type specified from being shown in form mod
477
#	Changed '/media' to MEDIA_DIRECTORY on HTMLArea popup windows
478
	for insert link and insert image
479
+	Added setting which allows you to specify the default WYSIWYG style
480
+	Added "Server Email" option, to specify what is used in "From" field when
481
	sending emails using the PHP mail function. Default is admins email address.
482
#	Search now excludes pages which have a visibility of none or heading
483
!	Pages are now given modified_when and modified_by when added
484
01-Apr-2005 Ryan Djurovich
485
+	Added option to News module to specify how many posts should be listed
486
	per page (by default it is set to unlimited, which functions like previous version)
487
#	Added stripslashes when display page titles in search
488
+	Page descriptions and last updated date now shown in search by default
489
30-Mar-2005 Ryan Djurovich
490
+	Added new feature for Media home folders, where a folder can be specified
491
	for a specific user or group of users only
492
!	Changed URL of Help button to http://www.websitebaker.org/docs/
493
+	Added new feature for "Page Trash" - two modes available: inline and separate
494
!	When pages are deleted, all sub-pages are now deleted (instead of being moved
495
	up a level)
496
29-Mar-2005 Ryan Djurovich
497
-	Removed Database Settings from Administration Settings (options will not be
498
	available in 3.x, so trying to match interface with WB 3.x plans
499
!	Changed the name of Path Settings to Filesystem Settings in Administration
500
	Settings, and removed ability to change path/url options - matching interface
501
	plans for WB 3.x
502
+	Added same options for OS and file permissions as installer to Settings
503
!	Sessions now named with APP_NAME.'_session_id' (e.g. default is wb_session_id)
504
28-Mar-2005 Ryan Djurovich
505
+	New functions available to templates to simplify creation of them. This aims
506
	to "future-proof" templates for WB 3.x plans.
507
!	Default templates updated to support some of the new functions
508
+	Added field to pages table "page_trail" which stores a list of the pages
509
	parents. This field was needed by the new page_menu function
510
+	Added option for page visibility "heading" to enabled support for multiple
511
	menu's. Also, this helps to "future-proof" templates for WB 3.x plans
512
+	Added option for page visibility "registered", which acts a little like
513
	private, but is still shown in the menu (although users need to log in to view
514
	the pages content)
515
+	Form module submissions now saved to database, and feature now added to
516
	limit number of submissions per hour to prevent spamming
517
+	New field for Form module: email. Allows you to specify their email in
518
	"from" field on module settings.
519
#	Fixed bug when displaying comments in News module (WB Bug #14)
520
+	New "under contruction" message if no pages exist
521
!	Cleaned-up wb/index.php
522
27-Mar-2005 Ryan Djurovich
523
+	Created advanced mkdir and chmod functions
524
#	Fixed bug in media where wrong file/folder is deleted
525
+	Complete overhall of installer - now only one step! It has been greatly
526
	simplified in many ways, has much better validation, reports error much more
527
	nicely, and automatically logs the user into the Administrations
528
+	Must now specify OS type - allows for customizable file permission settings
529
+	Sections can now have a language code assigned to them
530
+	Sections can now have a block name/id assigned to them
531
!	Home section of Administration renamed to Start, to save confusion with saying
532
	Homepage (because this term could either mean the main website or Home section
533
	in	Administration). Also, this aims to unify the interface with WB 3.x plans
534
!	Moved Users and Groups sections under Access section. This aims to unify the
535
	interface with WB 3.x plans, which help to unclutter the menu
536
!	Interface for Settings section has been imporved for usability purposes
537
#	Fixed HTMLArea where no scrollbar for "insert link" and "insert image" dialogs
538
	by placing media list inside an iframe
539
#	Fixed stripslashes problem for viewing news comments
540
!	Added code from Formesque module (an advanced version of the original Form
541
	module, modified by Rudolph Lartey from www.carbonect.com), and made further
542
	interface improvements for select box/checkbox group/radio group options.
543
#	Possibly fixed bugs where an S appears before file and dir modes
544
#	Fixed bug where users can be added with same emails (in Administration)
545
-	Removed support for PEAR, as it was deemed an unnecessary addition which only
546
	makes code more bulky, and removing it will decrease package size a lot
547
+	New "homepage redirect" option so first page is included and not redirected to
548
#	Fixed text not being shown when module uninstalled
549
!	Imporved interface for basic group permissions
550
26-Mar-2005 Stefan Braunewell
551
#	Fixed bug with front-end logins
552
#	Fixed bug when saving intro page 
553
+	Added check on sign-up if e-mail exists (thanks to P. Melief)
554
#	Fixed bugs concerning moving/deleting pages
555
#	Fixed list of parents in page settings
556
#	Fixed mkdir without mode parameter
557
#	Added a check on install to ensure PHP 4.1.x compatibility (thanks to Wanderer)
558
+	Added support for PAGES_DIRECTORY set to root
559
+	Search form now supports quotes (thanks to Manafta)
560
#	Fixed page section ordering
561
#	News items are displayed with name of poster instead of "Unknown"
562
#	Deletion confirmation popup window in media section now shows correct file name
563
------------------------------------- 2.3.1 -------------------------------------
564
03-Fed-2005 Ryan Djurovich
565
+	Now there is two types of "filesystem modes", one for directories and one
566
	for files. Having different settings is very common for most servers, so
567
	this addition should fix many problems people had with 2.3.0.
568
-	Removed filesystem mode options from installation
569
!	Removed duplicate text on installation step 3 for timezone
570
!	All "access files" for the news module now stored in pages/posts instead
571
	of a sub-dir relative to the page (this fixes many bugs)
572
#	Fixed major bugs when deleting pages with sub-pages
573
!	Removed the restrictions that prevent a user for changing a pages level
574
#	Fixed bug with "toggle" plus/minus in IE for pages list
575
#	Fixed some bugs where /pages was not replaced with PAGES_DIRECTORY constant
576
------------------------------------- 2.3.0 -------------------------------------
577
26-Jan-2005 Ryan Djurovich
578
#	Fixed bug in framework/functions.php that made root parent always equal 8
579
#	Added missing braces in lines 182 and 208 of admin/pages/settings2.php
580
#	Fixed SQL-query on line 172, placing a / after $old_link
581
#	Added eregi checks for PAGES_DIRECTORY on lines 140 and 150 of
582
	admin/pages/settings2.php
583
#	Added ordering cleaning to delete_post.php on line 53 for news module
584
!	GMT option is selected for "Default Timezone" in the installer, instead
585
	of the old "Please select" message (which had the same value as GMT)
586
28-Jan-2005 Ryan Djurovich
587
!	Ability to specify the chmod number when WB uploads files, etc.
588
!	Modified file headers (copyright/license notice) so they now look almost the
589
	same, independant of font. Also, it now covers copyright for 2005.
590
30-Jan-2005 Ryan Djurovich
591
#	Added code on wb/admin/pages/delete.php to remove sections from the sections
592
	table when a page is deleted.
593
+	New 'Smart Login' prevents users from using external password managers,
594
	and can be set to remember the users password using cookies.
595
!	SourceForge CVS module now called websitebaker2 (instead of just
596
	websitebaker). Also, all file versions have been reset.
597
01-Fed-2005 Ryan Djurovich
598
!	Added code to prevent from changing a pages level (it simply disables
599
	the select box), to prevent many possible bugs.
600
------------------------------------- 2.2.4 -------------------------------------
601
23-Dec-2004 Ryan Djurovich
602
!	Change 'EXACT_PHRASE' to 'EXACT_MATCH' on line 261 of wb/languages/EN.php
603
#	Fixed multi-language support in search
604
+	Added more detailed options to list of PHP error reporting level's
605
-	Removed ability to change language and PHP error reporting level
606
	on installation to make things easier for newbie's
607
+	Ability to select custom spacer for page filename's
608
!	Changed the way a language code is found on language installation
609
+	Added template permissions to groups
610
#	Fixed bug when trying to change email from Preferences (admin and frontend)
611
#	Fixed bug with auto-selection of "System Default" for Preferences
612
!	News module now use's WYSIWYG for modifying news posts
613
+	Ability to specify both the pages and media target directories
614
------------------------------------ 2.2.3-c ------------------------------------
615
22-Dec-2004 Ryan Djurovich
616
#	Fixed problem with DB password being reset if Settings saved in basic mode
617
------------------------------------ 2.2.3-b ------------------------------------
618
21-Dec-2004 Ryan Djurovich
619
#	Fixed minor bug on admin templates section
620
#	Fixed bug on rename.php and rename2.php in admin media section
621
------------------------------------- 2.2.3 -------------------------------------
622
20-Dec-2004 Ryan Djurovich
623
+	Added WB release version in Administration (top right corner)
624
!	New option to prevent users from adding level 0 pages
625
#	Fixed bug when deleting post's in News module
626
+	Added new field in pages table for "root" parent (level 0 parent), for
627
	extra flexability in creating templates
628
!	Round template now supports unlimited page levels
629
------------------------------------- 2.2.2 -------------------------------------
630
18-Dec-2004 Ryan Djurovich
631
+	New option under Search Settings for selecting custom template for search
632
+	New option when changing page settings to set the target
633
#	Fixed error when saving a user after editing
634
!	Users can now modify sub-page if they dont have permissions on the parent
635
------------------------------------- 2.2.1 -------------------------------------
636
15-Dec-2004 Ryan Djurovich
637
#	Fixed bug when changing password on preferences form (front-end)
638
#	Fixed bug when retrieving user details (administration)
639
#	Added check to see if module, template, or language is in use when deleting
640
#	Fixed up email that is sent to user from a submitted form
641
#	Fixed major problem with module permissions which stopped it from working
642
------------------------------------- 2.2.0 -------------------------------------
643
14-Dec-2004 (Correct date[s] unkown) Ryan Djurovich
644
+	Multiple-level page support
645
+	Multiple section's for pages (including interface)
646
!	Removed text created using two words on all areas
647
	(e.g. {Intro} {PAGE} is now {INTRO_PAGE})
648
	this is for better language support
649
+	Added Languages section
650
!	Moved Templates and Modules under Add-ons section
651
!	Changed name of "Default" template to "Round"
652
+	Added "All CSS" template
653
+	Added "Jump"
654
+	Added 
655
!	Modified "Box" template to support multiple page levels
656
+	Added "Menu Link" module
657
+	Added "News" module
658
+	Added "Code" module
659
+	Added "Form" module
660
+	Added "Wrapper" module
661
!	Changed name of "Normal Page" module to "WYSIWYG"
662
+	Created new admin wrapper script to ease module develpment
663
+	Media now automatically creates index.php file for every
664
	sub-folder made (for security purposes)
665
!	Change "Help" link in Administration menu so it now directs
666
	to the the new Website Baker documentation website found at:
667
	http://www.websitebaker.org/documentation
668
!	Password is now required to change email in preferences
669
+	User can now select custom Language and Date & Time Formats
670
+	Added search functionality, with three different "methods":
671
	1. Using all words  2. Using any words  3. Exact match
672
+	Added native MySQL database support
trunk/wb/admin/pages/settings2.php
123 123
// Work-out what the link should be
124 124
if($parent == '0') {
125 125
	$link = '/'.page_filename($menu_title);
126
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).PAGE_EXTENSION; 
126
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($menu_title).'.php'; 
127 127
} else {
128 128
	$parent_section = '';
129 129
	$parent_titles = array_reverse(get_parent_titles($parent));
......
132 132
	}
133 133
	if($parent_section == '/') { $parent_section = ''; }
134 134
	$link = '/'.$parent_section.page_filename($menu_title);
135
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($menu_title).PAGE_EXTENSION;  
135
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($menu_title).'.php';  
136 136
}
137 137

  
138 138
// Check if a page with same page filename exists
......
174 174
	// First check if we need to create a new file
175 175
	if($old_link != $link) {
176 176
		// Delete old file
177
		$old_filename = WB_PATH.PAGES_DIRECTORY.$old_link.PAGE_EXTENSION;
177
		$old_filename = WB_PATH.PAGES_DIRECTORY.$old_link.'.php';
178 178
		if(file_exists($old_filename)) {
179 179
			unlink($old_filename);
180 180
		}
......
200 200
					// Update level and link
201 201
					$database->query("UPDATE ".TABLE_PREFIX."pages SET link = '$new_sub_link', level = '$new_sub_level' WHERE page_id = '".$sub['page_id']."' LIMIT 1");
202 202
					// Re-write the access file for this page
203
					$old_subpage_file = WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION;
203
					$old_subpage_file = WB_PATH.PAGES_DIRECTORY.$new_sub_link.'.php';
204 204
					if(file_exists($old_subpage_file)) {
205 205
						unlink($old_subpage_file);
206 206
					}
207
					create_access_file(WB_PATH.PAGES_DIRECTORY.$new_sub_link.PAGE_EXTENSION, $sub['page_id'], $new_sub_level);
207
					create_access_file(WB_PATH.PAGES_DIRECTORY.$new_sub_link.'.php', $sub['page_id'], $new_sub_level);
208 208
				}
209 209
			}
210 210
		}
trunk/wb/admin/pages/add.php
68 68
// Work-out what the link and page filename should be
69 69
if($parent == '0') {
70 70
	$link = '/'.page_filename($title);
71
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($title).PAGE_EXTENSION;
71
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($title).'.php';
72 72
} else {
73 73
	$parent_section = '';
74 74
	$parent_titles = array_reverse(get_parent_titles($parent));
......
77 77
	}
78 78
	if($parent_section == '/') { $parent_section = ''; }
79 79
	$link = '/'.$parent_section.page_filename($title);
80
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($title).PAGE_EXTENSION;
80
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.$parent_section.page_filename($title).'.php';
81 81
	make_dir(WB_PATH.PAGES_DIRECTORY.'/'.$parent_section);
82 82
}
83 83

  
84 84
// Check if a page with same page filename exists
85 85
$get_same_page = $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$link'");
86
if($get_same_page->numRows() > 0 OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.PAGE_EXTENSION) OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) {
86
if($get_same_page->numRows() > 0 OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'.php') OR file_exists(WB_PATH.PAGES_DIRECTORY.$link.'/')) {
87 87
	$admin->print_error($MESSAGE['PAGES']['PAGE_EXISTS']);
88 88
}
89 89

  
trunk/wb/admin/settings/template.html
575 575
		<input type="text" name="media_directory" value="{MEDIA_DIRECTORY}" />
576 576
	</td>
577 577
</tr>
578
<!-- The following lines are deactivated as the Page Extension Feature doesn't work on every server
578 579
<tr class="advanced">
579 580
	<td class="setting_name">{TEXT_PAGE_EXTENSION}:</td>
580 581
	<td class="setting_value" colspan="2">
581 582
		<input type="text" name="page_extension" value="{PAGE_EXTENSION}" />
582 583
	</td>
583 584
</tr>
585
-->
584 586
<tr class="advanced">
585 587
	<td class="setting_name">{TEXT_PAGE_SPACER}:</td>
586 588
	<td class="setting_value" colspan="2">
trunk/wb/modules/menu_link/uninstall.php
1 1
<?php
2 2

  
3
// $Id: install.php 519 2007-12-23 14:37:02Z Ruebenwurzel $
3
// $Id$
4 4

  
5 5
/*
6 6

  
7 7

  
trunk/wb/framework/class.admin.php
116 116
			// extract page link from the database
117 117
			$result = @$database->query("SELECT link FROM " .TABLE_PREFIX ."pages WHERE page_id = '" .(int) $_GET['page_id'] ."'");
118 118
			$row = @$result->fetchRow();
119
			if($row) $view_url .= PAGES_DIRECTORY .$row['link'] .PAGE_EXTENSION;
119
			if($row) $view_url .= PAGES_DIRECTORY .$row['link']. '.php';
120 120
		}
121 121

  
122 122
		// Create the menu
trunk/wb/framework/class.wb.php
151 151
	function page_link($link){
152 152
		// Check for :// in the link (used in URL's) as well as mailto:
153 153
		if(strstr($link, '://') == '' AND substr($link, 0, 7) != 'mailto:') {
154
			return WB_URL.PAGES_DIRECTORY.$link.PAGE_EXTENSION;
154
			return WB_URL.PAGES_DIRECTORY.$link.'.php';
155 155
		} else {
156 156
			return $link;
157 157
		}
trunk/wb/framework/class.frontend.php
201 201
			// Check if the user is authenticated
202 202
			if($this->is_authenticated() == false) {
203 203
				// User needs to login first
204
				header("Location: ".WB_URL."/account/login".PAGE_EXTENSION.'?redirect='.$this->link);
204
				header("Location: ".WB_URL."/account/login.php?redirect=".$this->link);
205 205
				exit(0);
206 206
			}
207 207
			// Check if we should show this page
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff