Project

General

Profile

« Previous | Next » 

Revision 546

Added by doc over 16 years ago

added the "users in multiple groups" feature (closes parts of ticket #546)

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

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

  
trunk/wb/admin/pages/settings.php
42 42
$results_array = $results->fetchRow();
43 43
$old_admin_groups = explode(',', $results_array['admin_groups']);
44 44
$old_admin_users = explode(',', $results_array['admin_users']);
45
if(!is_numeric(array_search($admin->get_group_id(), $old_admin_groups)) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) {
45

  
46
$in_old_group = FALSE;
47
foreach($admin->get_groups_id() as $cur_gid){
48
    if (in_array($cur_gid, $old_admin_groups)) {
49
        $in_old_group = TRUE;
50
    }
51
}
52
if((!$in_old_group) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) {
46 53
	$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
47 54
}
48 55

  
......
111 118
}
112 119
// Group list 1 (admin_groups)
113 120
	$admin_groups = explode(',', str_replace('_', '', $results_array['admin_groups']));
114
	if($admin->get_group_id() == 1) {
115
		$query = "SELECT * FROM ".TABLE_PREFIX."groups";
116
	} else {
117
		$query = "SELECT * FROM ".TABLE_PREFIX."groups WHERE group_id != '".$admin->get_group_id()."'";
118
	}
121

  
122
	$query = "SELECT * FROM ".TABLE_PREFIX."groups";
123
	
119 124
	$get_groups = $database->query($query);
120 125
	$template->set_block('main_block', 'group_list_block', 'group_list');
121 126
	// Insert admin group and current group first
......
131 136
									)
132 137
							);
133 138
	$template->parse('group_list', 'group_list_block', true);
134
	if($admin->get_group_id() != 1) {
135
		$template->set_var(array(
136
										'ID' => $admin->get_group_id(),
139
	/*
140
	if(!in_array(1, $admin->get_groups_id())) {
141
		$users_groups = $admin->get_groups_name();
142
		foreach ($admin->get_groups_id() as $users_group_id) {
143
			$template->set_var(array(
144
										'ID' => $users_group_id,
137 145
										'TOGGLE' => '',
138 146
										'DISABLED' => ' disabled',
139 147
										'LINK_COLOR' => '000000',
140 148
										'CURSOR' => 'default',
141
										'NAME' => $admin->get_group_name(),
149
										'NAME' => $users_groups[$users_group_id],
142 150
										'CHECKED' => ' checked'
143 151
										)
144 152
								);
145
		$template->parse('group_list', 'group_list_block', true);
153
			$template->parse('group_list', 'group_list_block', true);
154
		}
146 155
	}
156
	*/
147 157
	while($group = $get_groups->fetchRow()) {
158
		// check if the user is a member of this group
159
		$flag_disabled = '';
160
		$flag_checked =  '';
161
		$flag_cursor =   'pointer';
162
		$flag_color =    '';
163
		if (in_array($group["group_id"], $admin->get_groups_id())) {
164
			$flag_disabled = ' disabled';
165
			$flag_checked =  ' checked';
166
			$flag_cursor =   'default';
167
			$flag_color =    '000000';
168
		}
169

  
148 170
		// Check if the group is allowed to edit pages
149 171
		$system_permissions = explode(',', $group['system_permissions']);
150 172
		if(is_numeric(array_search('pages_modify', $system_permissions))) {
151 173
			$template->set_var(array(
152 174
											'ID' => $group['group_id'],
153 175
											'TOGGLE' => $group['group_id'],
154
											'DISABLED' => '',
155
											'LINK_COLOR' => '',
156
											'CURSOR' => 'pointer',
176
											'DISABLED' => $flag_disabled,
177
											'LINK_COLOR' => $flag_color,
178
											'CURSOR' => $flag_cursor,
157 179
											'NAME' => $group['name'],
158
											'CHECKED' => ''
180
											'CHECKED' => $flag_checked
159 181
											)
160 182
									);
161 183
			if(is_numeric(array_search($group['group_id'], $admin_groups))) {
162 184
				$template->set_var('CHECKED', 'checked');
163 185
			} else {
164
				$template->set_var('CHECKED', '');
186
				if (!$flag_checked) $template->set_var('CHECKED', '');
165 187
			}
166 188
			$template->parse('group_list', 'group_list_block', true);
167 189
		}
168 190
	}
169 191
// Group list 2 (viewing_groups)
170 192
	$viewing_groups = explode(',', str_replace('_', '', $results_array['viewing_groups']));
171
	if($admin->get_group_id() == 1) {
172
		$query = "SELECT * FROM ".TABLE_PREFIX."groups";
173
	} else {
174
		$query = "SELECT * FROM ".TABLE_PREFIX."groups WHERE group_id != '".$admin->get_group_id()."'";
175
	}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff