Project

General

Profile

« Previous | Next » 

Revision 339

Added by ryan over 18 years ago

Creating 2.6.x branch

View differences:

branches/2.6.x/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.6.3 -------------------------------------
14
19-Mar-2006 Stefan Braunewell
15
#	Fixed ticket #146: problems removing groups from viewers list of a page
16
16-Mar-2006 Stefan Braunewell
17
!	Changed link target selection. Now self, top and new. (Ticket #145)
18
#	Fixed ticket #143. Charset setting is now used in admin login and forgot
19
	password pages.
20
#	Some changes to the SQL code in the install script for improved 
21
	compatibility with new MySQL versions
22
#	Fixed ticket #134 - error on browsing media.
23
+	Improved backup module: new choice between full database or WB-related
24
	backup.
25
#	Fixed ticket #141 - admin now sees all folders in media
26
#	Fixed e-mail sending problems due to additional parameter in mail call.
27
#	Applied fix regarding ticket #138: new users now get deleted if
28
	sending e-mail fails.
29
#	Fixed ticket #137: Last Reset timer not reset in frontend forgotten 
30
	password process
31
#	Removed duplicate expression from modules/news/install.php which caused
32
	problems in installation
33

  
34
01-Mar-2006 Stefan Braunewell
35
#	Fixed ticket #68 - Safari problem with displaying all parents.
36
#	Fixed ticket #136 - mailing forgotten password in admin login screen leads 
37
	to fatal error.
38
!	Renamed tag [PROCESSTIME] to [PROCESS_TIME]
39
------------------------------------- 2.6.2 -------------------------------------
40
03-Feb-2006 Stefan Braunewell (very big special thanks to John and Alex)
41
#	Fixed ticket #104 - commas in form field descriptions not allowed.
42
#	Cookie REMEMBER_KEY wasn't cleared in account/logout 
43
	and expiration date is now set to time in the past.
44
#	Smart login not working.
45
!	Changed mail calls to new function $wb->mail.
46
#	Form: ticket 124 added captcha settings check 
47
#	Ticket 118 added formfield type to check for email/text 
48
#	Ticket 115 changed comparision /modules/form/view.php 
49
#	Added correct timecheck in form submissions
50
!	Changed captcha.php call to include timestamp
51
!	Changed the e-mail validation code and added a mail function to class wb.
52
!	Forgotten password: if sending of e-mail fails, restore old password.
53
	Ticket #110
54
!	Added more charset options. Ticket #102 - thanks to ruebenwurzel!
55
!	Character encoding setting also affects admin backend.
56
	Mentioned in ticket #102.
57
!	Reintroduced page languages setting. If switched to off, page
58
	languages are only used to determine the language file for the
59
	universal texts. If on, displayed page and menu are affected by
60
	the language session variable.
61
#	Fixed bugs in show_breadcrumbs code and added parameter "depth"
62
	to set the number of levels to be show.
63
#	Fixed a bug where access settings of registered and private pages
64
	were displayed incorrectly.
65
#	Fixed captcha being cached.
66
#	Added an exit call after every heading("Location:...")
67
	redirector to prevent unwanted execution of code.
68
#	Bug #122. Replaced empty field check by check that setting name is
69
	not "wb_version".
70
#	Replaced all remaining occurrences of '/media' by MEDIA_DIRECTORY - bug #108.
71
#	Fixed bug #99 and two additional instances of typo 
72
	catpcha instead of captcha.
73
#	Fixed some typos
74
#	Fixed some notices and warnings.
75
#	Fixed bug #105 - back buttons in addon detail pages not editable.
76
!	Replace 'admin' by 'wb' in all account pages. 
77
!/#	Moved print_success and print_error code to class.wb.php.
78
	Added correct parameters to these functions in account pages. 
79
------------------------------------- 2.6.1 -------------------------------------
80
12-Dec-2005 Ryan Djurovich
81
#	Fixed security vulnerability in class.login.php
82
#	Fixed typo in EN language file
83
#	Fixed captcha problems (when feature is disabled) in form module and sign-up
84
!	Added charset encoding to admin templates
85
!	Added extra code to check for selection of addon upon uninstalling
86
#	Fixed bugs in RSS news feeder
87
#	Fixed bug with PAGE_DESCRIPTION not being set on any page
88
------------------------------------- 2.6.0 -------------------------------------
89
28-Nov-2005 Ryan Djurovich
90
+	Added default charset option to (advanced) settings
91
#	Form module email fields now have email address validation
92
#	Fixed spacing in form submissions
93
27-Nov-2005 Ryan Djurovich
94
+	Added captcha verification to sign-up form
95
+	Added Captcha to News module
96
24-Nov-2005 Stefan Braunewell
97
!	Applied aportale's patch to use label instead of javascript toggle code
98
20-Nov-2005 Ryan Djurovich
99
!	News mod now hides read more link if no need for it (see ticket #56)
100
+	Added support for mailto: links in the menu link mod
101
#	Added direct-access redirection on some files (see ticket #37)
102
+	Added extra characters to convert.php (see ticket #64)
103
#	Fixed ticket #65 (last_reset check in account/forgot_form.php)
104
29-Sep-2005 Ryan Djurovich
105
!	Cleaned up form buttons in Settings
106
!	Moved some options into Advanced Settings
107
#	Semi-disabled "separate" page trash option
108
+	Created a backup module/tool for backing-up the database
109
	(thanks to John (pcwacht) for the original code)
110
+	Created new "blank template", which can be used in case where you don't
111
	want anything wrapping page-content.
112
19-Sep-2005 Ryan Djurovich
113
+	Added _license field for all add-ons to specify a license
114
!	Renamed _designed_for variables (for all addons) to _platform
115
+	Created addons table for faster internal referencing of installed addons
116
!	Fixed some links, including the "Help" button in Admin
117
#	Used nl2br to display body correctly when viewing form-submissions
118
15-Sep-2005 Stefan Braunewell
119
+	Added table module with columns 'name','type' and 'directory' as an
120
	index.
121
+	Added entry to settings table 'wb_version' which holds the version
122
	number and can be utilized in future upgrade scripts.
123
!	Added upgrade functionality also for templates and languages.
124
#/!	Template/modules installation now respects paths.
125
!	Moved updates from config.php to database.
126
	Created initialize.php (required by config.php) to read settings.
127
11-Sep-2005 Stefan Braunewell
128
!	HTMLArea is now a module instead of a core component. Files moved
129
	from "include" to "modules".
130
+	Implemented Installation of modules on top of an older version. This is 
131
	done via checking $module_version. Instead of install.php, upgrade.php
132
	is then called if it exists in the module package. 
133
	For module developers: $module_version and $new_module_version are 
134
	accessible in upgrade.php to find out what upgrade steps need to be taken.
135
!	Changed column names in mod_news_posts from short,long to content_short,
136
	content_long.
137
09-Sep-2005 Stefan Braunewell
138
+	Added new advanced setting "Rename Files On Upload". File extensions can be
139
	given so that respective files will have a ".txt" appended on media upload.
140
#	Fixed "None found" message bug when user has no top level page edit
141
	rights.
142
#	Fixed missing parent option 'none' - ticket #12 - and a minor scope bug.
143
+	Added breadcrumbs code. Call using $wb->breadcrumbs().
144
+	Added utf-8 character encoding meta tag into all stock templates.
145
#	Fixed bug when changing a page's parent
146
!	Changed the way blocks are treated. Added new frontend class attribute
147
	default_block_content that controls what is shown on pages such as
148
	search, login, etc. (Ticket #16)
149
+	Added support for WYSIWYG editor modules (wysiwygmod)
150
+	When trying to access a registered page, user is automatically redirected
151
	there on successful login.
152
#	Fixed various issues with system search (mainly related to stripslashes()
153
#	Removed stripslashes() in many places in the code. Added check for
154
	magic_quotes_gpc to new wb class method add_slashes(). Now database contest
155
	is independent of magic_quotes setting..
156
05-Sep-2005 Stefan Braunewell
157
#	Fixed bug concerning direct access of preferences page.
158
#	Reworked page visibility and menu item visibility code (frontend login
159
	problem).
160
#	Pages in link list in htmlarea popup are now correctly ordered.
161
#	Fixed bug where group with existing name can be added.
162
04-Sep-2005 Ryan Djurovich
163
+	Added and RSS newsfeed script to the News module
164
04-Sep-2005 Stefan Braunewell
165
!	Rewrote menu function. Parameters are now given as attributes to frontend class.
166
#	Fixed some occurrences of potential direct access path disclosure
167
#	Added directory check to browse.php to prevent xss exploit by trusted users.
168
!	Updated code to reflect move to Subversion repository system.
169
27-Aug-2005 Stefan Braunewell
170
#	Fixed bugs 4,5,6,8,9 in bug tracker
171
!	Removed 'USER_LANGUAGE' and 'GET_LANGUAGE' constants.
172
	A GET['lang'] now sets the session language variable.
173
26-Aug-2005 Stefan Braunewell
174
!	Moved redundant code into the new class functions. Created 
175
	'compatibility.php' for backward compatibility with
176
	modules and templates. Variables and functions can still be accessed
177
	in the old way.
178
!/+	Reorganized core frontend files, added new base class 'wb' from
179
	which 'admin' and the new 'frontend' class inherit. Moved all frontend
180
	function into new class. Completely rewrote core index.php.
181
	Now all variables and functions that are available to templates and
182
	modules are attributes and methods of the frontend and the wb classes
183
------------------------------------- 2.5.2 -------------------------------------
184
23-Jun-2005 Ryan Djurovich
185
!	create_access_file now creates all parent directories if needed
186
#	Fixed bug when moving page with subpages to another level
187
#	Fixed bug when saving "Settings" (in Admin) on Windows/IIS
188
#	Fixed bug where query was not setting error correctly in class.database.php
189
22-Jun-2005 Ryan Djurovich
190
#	Fixed bug where template permissions were not saved when a adding group
191
21-Jun-2005 Ryan Djurovich
192
#	Added htmlspecialchars for modifying WYSIWYG, news, etc. modules (Bug #78)
193
#	Fixed language problems in some area's of Admin. (Bug #70)
194
#	Added a space in website/page keywords (Bug #69)
195
#	Fixed bugs on settings2.php (Bug #52)
196
!	Links inserted with HTMLArea now use [wblink--PAGE_ID--] instead of raw URL
197
13-Jun-2005 Ryan Djurovich
198
#	Fixed bug (#88) with news module
199
!	Title of Administration login page now taken from language file (Bug #72)
200
#	Fixed redirection admin/home to admin/start on admin/index.php
201
#	Fixed bug with forgotten password page in admin (Bug #81)
202
25-Apr-2005 Ryan Djurovich
203
#	Fixed numerous bugs with module uninstallation
204
#	Fixed bug when uploading files in Administration -> Media
205
!	Installer no-longer requires you to accept the GNU GPL
206
------------------------------------- 2.5.1 -------------------------------------
207
16-Apr-2005 Ryan Djurovich
208
#	Fixed two bugs with account login/logout
209
------------------------------------- 2.5.1 -------------------------------------
210
15-Apr-2005 Ryan Djurovich
211
#	Fixed bug where non-english characters can get used in page filenames. Many
212
	measuers have been added (including a new file: wb/framework/convert.php),
213
	to prevent any possible errors that can occur in page filenames.
214
#	Fixed invalid meta tags in stock templates (meta tags were not closed)
215
#	Removed lines 401, 402, and 425 of wb/index.php - not needed
216
#	Fixed bug where search and account pages are shown in every block
217
	that is in a template
218
#	Fixed numerous bugs with media home directories feature
219
10-Apr-2005 Ryan Djurovich
220
#	Fixed bugs in account/login.php and logout.php where users
221
	gets redirected to /pages
222
------------------------------------- 2.5.0 -------------------------------------
223
08-Apr-2005 Ryan Djurovich
224
-	Removed section language feature
225
+	Added page language feature (replaces need for sections language feature)
226
#	Fixed bug where pages using menu_link module can have the URL changed
227
-	Page directory no longer stored in link field in pages table, it is now added
228
	when the page_link function is called - this makes changing the pages
229
	directory much easier and quicker
230
!	Pages with visibility of "none" are now no longer directly accessable
231
+	Added new visibility setting "hidden", acts exactly like none did previously
232
!	Template info file can now specify number of menu's available and relative names
233
!	Template info file can now specify number of blocks's available and relative names
234
------------------------------------- 2.4.3 -------------------------------------
235
07-Apr-2005 Ryan Djurovich
236
#	page_filename function has been rewritten using str_replace
237
	function, which should be faster and will allow characters
238
	from other languages into filenames
239
!	Created new media_filename function, which is now used
240
	by all media functions (create,upload,rename) to determine
241
	which characters should be removed from a desired filename
242
+	New button in Administration page list to view specific page
243
#	Updated the page_link function to now be compatible with menu link
244
	module when setting pages directory to root
245
#	Fixed bugs in search when using "Any Words" option
246
#	Fixed bug with news module when pages directory set to root
247
!	Changed URL of documentation website on Administration Start page
248
------------------------------------- 2.4.2 -------------------------------------
249
05-Apr-2005 Ryan Djurovich
250
#	Fixed bug where file could be renamed to nothing in Media
251
!	Optimised Media create folder, upload file, and rename functions
252
#	Fixed bug where stripslashes not run on news post titles in admin
253
05-Apr-2005 Stefan Braunewell
254
#	Fixed bug concerning usage of the private_sql variable
255
#	Fixed bug conerning sub-pages being displayed in menus incorrectly
256
------------------------------------- 2.4.1 -------------------------------------
257
04-Apr-2005 Ryan Djurovich
258
!	Pages with visibility of "none" are again directly accessable
259
#	Fixed bugs regarding renaming files and directories in Media section
260
!	When home folders disabled, all folders now visible in Media section
261
------------------------------------- 2.4.0 -------------------------------------
262
03-Apr-2005 Ryan Djurovich
263
-	Removed recently added visibility setting of "heading", and relative config vars
264
+	Added new "menu" field to pages table, and new setting "multiple menus"
265
	which replaces the need for the menu headings feature
266
+	Added links to top of groups and users sections, linking to each other
267
!	Change menu width in "Round" template to 170px (was 150px)
268
#	Change page "are you sure" deletion message to mention that it will delete
269
	all sub-pages as well
270
#	Fixed many bugs with news module when viewing posts by group
271
!	Pages with visibility of "none" are now no longer directly accessable
272
02-Apr-2005 Ryan Djurovich
273
-	Removed need to specify DB_URL when calling database class
274
#	Stopped fields without a type specified from being shown in form mod
275
#	Changed '/media' to MEDIA_DIRECTORY on HTMLArea popup windows
276
	for insert link and insert image
277
+	Added setting which allows you to specify the default WYSIWYG style
278
+	Added "Server Email" option, to specify what is used in "From" field when
279
	sending emails using the PHP mail function. Default is admins email address.
280
#	Search now excludes pages which have a visibility of none or heading
281
!	Pages are now given modified_when and modified_by when added
282
01-Apr-2005 Ryan Djurovich
283
+	Added option to News module to specify how many posts should be listed
284
	per page (by default it is set to unlimited, which functions like previous version)
285
#	Added stripslashes when display page titles in search
286
+	Page descriptions and last updated date now shown in search by default
287
30-Mar-2005 Ryan Djurovich
288
+	Added new feature for Media home folders, where a folder can be specified
289
	for a specific user or group of users only
290
!	Changed URL of Help button to http://www.websitebaker.org/docs/
291
+	Added new feature for "Page Trash" - two modes available: inline and separate
292
!	When pages are deleted, all sub-pages are now deleted (instead of being moved
293
	up a level)
294
29-Mar-2005 Ryan Djurovich
295
-	Removed Database Settings from Administration Settings (options will not be
296
	available in 3.x, so trying to match interface with WB 3.x plans
297
!	Changed the name of Path Settings to Filesystem Settings in Administration
298
	Settings, and removed ability to change path/url options - matching interface
299
	plans for WB 3.x
300
+	Added same options for OS and file permissions as installer to Settings
301
!	Sessions now named with APP_NAME.'_session_id' (e.g. default is wb_session_id)
302
28-Mar-2005 Ryan Djurovich
303
+	New functions available to templates to simplify creation of them. This aims
304
	to "future-proof" templates for WB 3.x plans.
305
!	Default templates updated to support some of the new functions
306
+	Added field to pages table "page_trail" which stores a list of the pages
307
	parents. This field was needed by the new page_menu function
308
+	Added option for page visibility "heading" to enabled support for multiple
309
	menu's. Also, this helps to "future-proof" templates for WB 3.x plans
310
+	Added option for page visibility "registered", which acts a little like
311
	private, but is still shown in the menu (although users need to log in to view
312
	the pages content)
313
+	Form module submissions now saved to database, and feature now added to
314
	limit number of submissions per hour to prevent spamming
315
+	New field for Form module: email. Allows you to specify their email in
316
	"from" field on module settings.
317
#	Fixed bug when displaying comments in News module (WB Bug #14)
318
+	New "under contruction" message if no pages exist
319
!	Cleaned-up wb/index.php
320
27-Mar-2005 Ryan Djurovich
321
+	Created advanced mkdir and chmod functions
322
#	Fixed bug in media where wrong file/folder is deleted
323
+	Complete overhall of installer - now only one step! It has been greatly
324
	simplified in many ways, has much better validation, reports error much more
325
	nicely, and automatically logs the user into the Administrations
326
+	Must now specify OS type - allows for customizable file permission settings
327
+	Sections can now have a language code assigned to them
328
+	Sections can now have a block name/id assigned to them
329
!	Home section of Administration renamed to Start, to save confusion with saying
330
	Homepage (because this term could either mean the main website or Home section
331
	in	Administration). Also, this aims to unify the interface with WB 3.x plans
332
!	Moved Users and Groups sections under Access section. This aims to unify the
333
	interface with WB 3.x plans, which help to unclutter the menu
334
!	Interface for Settings section has been imporved for usability purposes
335
#	Fixed HTMLArea where no scrollbar for "insert link" and "insert image" dialogs
336
	by placing media list inside an iframe
337
#	Fixed stripslashes problem for viewing news comments
338
!	Added code from Formesque module (an advanced version of the original Form
339
	module, modified by Rudolph Lartey from www.carbonect.com), and made further
340
	interface improvements for select box/checkbox group/radio group options.
341
#	Possibly fixed bugs where an S appears before file and dir modes
342
#	Fixed bug where users can be added with same emails (in Administration)
343
-	Removed support for PEAR, as it was deemed an unnecessary addition which only
344
	makes code more bulky, and removing it will decrease package size a lot
345
+	New "homepage redirect" option so first page is included and not redirected to
346
#	Fixed text not being shown when module uninstalled
347
!	Imporved interface for basic group permissions
348
26-Mar-2005 Stefan Braunewell
349
#	Fixed bug with front-end logins
350
#	Fixed bug when saving intro page 
351
+	Added check on sign-up if e-mail exists (thanks to P. Melief)
352
#	Fixed bugs concerning moving/deleting pages
353
#	Fixed list of parents in page settings
354
#	Fixed mkdir without mode parameter
355
#	Added a check on install to ensure PHP 4.1.x compatibility (thanks to Wanderer)
356
+	Added support for PAGES_DIRECTORY set to root
357
+	Search form now supports quotes (thanks to Manafta)
358
#	Fixed page section ordering
359
#	News items are displayed with name of poster instead of "Unknown"
360
#	Deletion confirmation popup window in media section now shows correct file name
361
------------------------------------- 2.3.1 -------------------------------------
362
03-Fed-2005 Ryan Djurovich
363
+	Now there is two types of "filesystem modes", one for directories and one
364
	for files. Having different settings is very common for most servers, so
365
	this addition should fix many problems people had with 2.3.0.
366
-	Removed filesystem mode options from installation
367
!	Removed duplicate text on installation step 3 for timezone
368
!	All "access files" for the news module now stored in pages/posts instead
369
	of a sub-dir relative to the page (this fixes many bugs)
370
#	Fixed major bugs when deleting pages with sub-pages
371
!	Removed the restrictions that prevent a user for changing a pages level
372
#	Fixed bug with "toggle" plus/minus in IE for pages list
373
#	Fixed some bugs where /pages was not replaced with PAGES_DIRECTORY constant
374
------------------------------------- 2.3.0 -------------------------------------
375
26-Jan-2005 Ryan Djurovich
376
#	Fixed bug in framework/functions.php that made root parent always equal 8
377
#	Added missing braces in lines 182 and 208 of admin/pages/settings2.php
378
#	Fixed SQL-query on line 172, placing a / after $old_link
379
#	Added eregi checks for PAGES_DIRECTORY on lines 140 and 150 of
380
	admin/pages/settings2.php
381
#	Added ordering cleaning to delete_post.php on line 53 for news module
382
!	GMT option is selected for "Default Timezone" in the installer, instead
383
	of the old "Please select" message (which had the same value as GMT)
384
28-Jan-2005 Ryan Djurovich
385
!	Ability to specify the chmod number when WB uploads files, etc.
386
!	Modified file headers (copyright/license notice) so they now look almost the
387
	same, independant of font. Also, it now covers copyright for 2005.
388
30-Jan-2005 Ryan Djurovich
389
#	Added code on wb/admin/pages/delete.php to remove sections from the sections
390
	table when a page is deleted.
391
+	New 'Smart Login' prevents users from using external password managers,
392
	and can be set to remember the users password using cookies.
393
!	SourceForge CVS module now called websitebaker2 (instead of just
394
	websitebaker). Also, all file versions have been reset.
395
01-Fed-2005 Ryan Djurovich
396
!	Added code to prevent from changing a pages level (it simply disables
397
	the select box), to prevent many possible bugs.
398
------------------------------------- 2.2.4 -------------------------------------
399
23-Dec-2004 Ryan Djurovich
400
!	Change 'EXACT_PHRASE' to 'EXACT_MATCH' on line 261 of wb/languages/EN.php
401
#	Fixed multi-language support in search
402
+	Added more detailed options to list of PHP error reporting level's
403
-	Removed ability to change language and PHP error reporting level
404
	on installation to make things easier for newbie's
405
+	Ability to select custom spacer for page filename's
406
!	Changed the way a language code is found on language installation
407
+	Added template permissions to groups
408
#	Fixed bug when trying to change email from Preferences (admin and frontend)
409
#	Fixed bug with auto-selection of "System Default" for Preferences
410
!	News module now use's WYSIWYG for modifying news posts
411
+	Ability to specify both the pages and media target directories
412
------------------------------------ 2.2.3-c ------------------------------------
413
22-Dec-2004 Ryan Djurovich
414
#	Fixed problem with DB password being reset if Settings saved in basic mode
415
------------------------------------ 2.2.3-b ------------------------------------
416
21-Dec-2004 Ryan Djurovich
417
#	Fixed minor bug on admin templates section
418
#	Fixed bug on rename.php and rename2.php in admin media section
419
------------------------------------- 2.2.3 -------------------------------------
420
20-Dec-2004 Ryan Djurovich
421
+	Added WB release version in Administration (top right corner)
422
!	New option to prevent users from adding level 0 pages
423
#	Fixed bug when deleting post's in News module
424
+	Added new field in pages table for "root" parent (level 0 parent), for
425
	extra flexability in creating templates
426
!	Round template now supports unlimited page levels
427
------------------------------------- 2.2.2 -------------------------------------
428
18-Dec-2004 Ryan Djurovich
429
+	New option under Search Settings for selecting custom template for search
430
+	New option when changing page settings to set the target
431
#	Fixed error when saving a user after editing
432
!	Users can now modify sub-page if they dont have permissions on the parent
433
------------------------------------- 2.2.1 -------------------------------------
434
15-Dec-2004 Ryan Djurovich
435
#	Fixed bug when changing password on preferences form (front-end)
436
#	Fixed bug when retrieving user details (administration)
437
#	Added check to see if module, template, or language is in use when deleting
438
#	Fixed up email that is sent to user from a submitted form
439
#	Fixed major problem with module permissions which stopped it from working
440
------------------------------------- 2.2.0 -------------------------------------
441
14-Dec-2004 (Correct date[s] unkown) Ryan Djurovich
442
+	Multiple-level page support
443
+	Multiple section's for pages (including interface)
444
!	Removed text created using two words on all areas
445
	(e.g. {Intro} {PAGE} is now {INTRO_PAGE})
446
	this is for better language support
447
+	Added Languages section
448
!	Moved Templates and Modules under Add-ons section
449
!	Changed name of "Default" template to "Round"
450
+	Added "All CSS" template
451
+	Added "Jump"
452
+	Added 
453
!	Modified "Box" template to support multiple page levels
454
+	Added "Menu Link" module
455
+	Added "News" module
456
+	Added "Code" module
457
+	Added "Form" module
458
+	Added "Wrapper" module
459
!	Changed name of "Normal Page" module to "WYSIWYG"
460
+	Created new admin wrapper script to ease module develpment
461
+	Media now automatically creates index.php file for every
462
	sub-folder made (for security purposes)
463
!	Change "Help" link in Administration menu so it now directs
464
	to the the new Website Baker documentation website found at:
465
	http://www.websitebaker.org/documentation
466
!	Password is now required to change email in preferences
467
+	User can now select custom Language and Date & Time Formats
468
+	Added search functionality, with three different "methods":
469
	1. Using all words  2. Using any words  3. Exact match
470
+	Added native MySQL database support
0 471

  
branches/2.6.x/wb/languages/EN.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

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

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

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

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

  
24
*/
25

  
26
// Define that this file is loaded
27
if(!defined('LANGUAGE_LOADED')) {
28
	define('LANGUAGE_LOADED', true);
29
}
30

  
31
// Set the language information
32
$language_code = 'EN';
33
$language_name = 'English';
34
$language_version = '2.6';
35
$language_platform = '2.6.x';
36
$language_author = 'Ryan Djurovich';
37
$language_license = 'GNU General Public License';
38

  
39
// Menu titles
40
$MENU['START'] = 'Start';
41
$MENU['PAGES'] = 'Pages';
42
$MENU['MEDIA'] = 'Media';
43
$MENU['ADDONS'] = 'Add-ons';
44
$MENU['MODULES'] = 'Modules';
45
$MENU['TEMPLATES'] = 'Templates';
46
$MENU['LANGUAGES'] = 'Languages';
47
$MENU['PREFERENCES'] = 'Preferences';
48
$MENU['SETTINGS'] = 'Settings';
49
$MENU['ACCESS'] = 'Access';
50
$MENU['USERS'] = 'Users';
51
$MENU['GROUPS'] = 'Groups';
52
$MENU['HELP'] = 'Help';
53
$MENU['VIEW'] = 'View';
54
$MENU['LOGOUT'] = 'Log-out';
55
$MENU['LOGIN'] = 'Login';
56
$MENU['FORGOT'] = 'Retrieve Login Details';
57

  
58
// Section overviews
59
$OVERVIEW['START'] = 'Administration overview';
60
$OVERVIEW['PAGES'] = 'Manage your websites pages...';
61
$OVERVIEW['MEDIA'] = 'Manage files stored in the media folder...';
62
$OVERVIEW['MODULES'] = 'Manage Website Baker modules...';
63
$OVERVIEW['TEMPLATES'] = 'Change the look and feel of your website with templates...';
64
$OVERVIEW['LANGUAGES'] = 'Manage Website Baker languages...';
65
$OVERVIEW['PREFERENCES'] = 'Change preferences such as email address, password, etc... ';
66
$OVERVIEW['SETTINGS'] = 'Changes settings for Website Baker...';
67
$OVERVIEW['USERS'] = 'Manage users who can log-in to Website Baker...';
68
$OVERVIEW['GROUPS'] = 'Manage user groups and their system permissions...';
69
$OVERVIEW['HELP'] = 'Got a questions? Find your answer...';
70
$OVERVIEW['VIEW'] = 'Quickly view and browse your website in a new window...';
71

  
72
// Headings
73
$HEADING['MODIFY_DELETE_PAGE'] = 'Modify/Delete Page';
74
$HEADING['DELETED_PAGES'] = 'Deleted Pages';
75
$HEADING['ADD_PAGE'] = 'Add Page';
76
$HEADING['ADD_HEADING'] = 'Add Heading';
77
$HEADING['MODIFY_PAGE'] = 'Modify Page';
78
$HEADING['MODIFY_PAGE_SETTINGS'] = 'Modify Page Settings';
79
$HEADING['MODIFY_ADVANCED_PAGE_SETTINGS'] = 'Modify Advanced Page Settings';
80
$HEADING['MANAGE_SECTIONS'] = 'Manage Sections';
81
$HEADING['MODIFY_INTRO_PAGE'] = 'Modify Intro Page';
82

  
83
$HEADING['BROWSE_MEDIA'] = 'Browse Media';
84
$HEADING['CREATE_FOLDER'] = 'Create Folder';
85
$HEADING['UPLOAD_FILES'] = 'Upload File(s)';
86

  
87
$HEADING['INSTALL_MODULE'] = 'Install Module';
88
$HEADING['UNINSTALL_MODULE'] = 'Uninstall Module';
89
$HEADING['MODULE_DETAILS'] = 'Module Details';
90

  
91
$HEADING['INSTALL_TEMPLATE'] = 'Install Template';
92
$HEADING['UNINSTALL_TEMPLATE'] = 'Uninstall Template';
93
$HEADING['TEMPLATE_DETAILS'] = 'Template Details';
94

  
95
$HEADING['INSTALL_LANGUAGE'] = 'Install Language';
96
$HEADING['UNINSTALL_LANGUAGE'] = 'Uninstall Language';
97
$HEADING['LANGUAGE_DETAILS'] = 'Language Details';
98

  
99
$HEADING['MY_SETTINGS'] = 'My Settings';
100
$HEADING['MY_EMAIL'] = 'My Email';
101
$HEADING['MY_PASSWORD'] = 'My Password';
102

  
103
$HEADING['GENERAL_SETTINGS'] = 'General Settings';
104
$HEADING['DEFAULT_SETTINGS'] = 'Default Settings';
105
$HEADING['SEARCH_SETTINGS'] = 'Search Settings';
106
$HEADING['FILESYSTEM_SETTINGS'] = 'Filesystem Settings';
107
$HEADING['SERVER_SETTINGS'] = 'Server Settings';
108
$HEADING['ADMINISTRATION_TOOLS'] = 'Administration Tools';
109

  
110
$HEADING['MODIFY_DELETE_USER'] = 'Modify/Delete User';
111
$HEADING['ADD_USER'] = 'Add User';
112
$HEADING['MODIFY_USER'] = 'Modify User';
113

  
114
$HEADING['MODIFY_DELETE_GROUP'] = 'Modify/Delete Group';
115
$HEADING['ADD_GROUP'] = 'Add Group';
116
$HEADING['MODIFY_GROUP'] = 'Modify Group';
117

  
118
// Other text
119
$TEXT['ADD'] = 'Add';
120
$TEXT['MODIFY'] = 'Modify';
121
$TEXT['SETTINGS'] = 'Settings';
122
$TEXT['DELETE'] = 'Delete';
123
$TEXT['SAVE'] = 'Save';
124
$TEXT['RESET'] = 'Reset';
125
$TEXT['LOGIN'] = 'Login';
126
$TEXT['RELOAD'] = 'Reload';
127
$TEXT['CANCEL'] = 'Cancel';
128
$TEXT['NAME'] = 'Name';
129
$TEXT['PLEASE_SELECT'] = 'Please select';
130
$TEXT['TITLE'] = 'Title';
131
$TEXT['PARENT'] = 'Parent';
132
$TEXT['TYPE'] = 'Type';
133
$TEXT['VISIBILITY'] = 'Visibility';
134
$TEXT['PRIVATE'] = 'Private';
135
$TEXT['PUBLIC'] = 'Public';
136
$TEXT['NONE'] = 'None';
137
$TEXT['NONE_FOUND'] = 'None Found';
138
$TEXT['CURRENT'] = 'Current';
139
$TEXT['CHANGE'] = 'Change';
140
$TEXT['WINDOW'] = 'Window';
141
$TEXT['DESCRIPTION'] = 'Description';
142
$TEXT['KEYWORDS'] = 'Keywords';
143
$TEXT['ADMINISTRATORS'] = 'Administrators';
144
$TEXT['PRIVATE_VIEWERS'] = 'Private Viewers';
145
$TEXT['EXPAND'] = 'Expand';
146
$TEXT['COLLAPSE'] = 'Collapse';
147
$TEXT['MOVE_UP'] = 'Move Up';
148
$TEXT['MOVE_DOWN'] = 'Move Down';
149
$TEXT['RENAME'] = 'Rename';
150
$TEXT['MODIFY_SETTINGS'] = 'Modify Settings';
151
$TEXT['MODIFY_CONTENT'] = 'Modify Content';
152
$TEXT['VIEW'] = 'View';
153
$TEXT['UP'] = 'Up';
154
$TEXT['FORGOTTEN_DETAILS'] = 'Forgotten your details?';
155
$TEXT['NEED_TO_LOGIN'] = 'Need to log-in?';
156
$TEXT['SEND_DETAILS'] = 'Send Details';
157
$TEXT['USERNAME'] = 'Username';
158
$TEXT['PASSWORD'] = 'Password';
159
$TEXT['HOME'] = 'Home';
160
$TEXT['TARGET_FOLDER'] = 'Target folder';
161
$TEXT['OVERWRITE_EXISTING'] = 'Overwrite existing';
162
$TEXT['FILE'] = 'File';
163
$TEXT['FILES'] = 'Files';
164
$TEXT['FOLDER'] = 'Folder';
165
$TEXT['FOLDERS'] = 'Folders';
166
$TEXT['CREATE_FOLDER'] = 'Create Folder';
167
$TEXT['UPLOAD_FILES'] = 'Upload File(s)';
168
$TEXT['CURRENT_FOLDER'] = 'Current Folder';
169
$TEXT['TO'] = 'To';
170
$TEXT['FROM'] = 'From';
171
$TEXT['INSTALL'] = 'Install';
172
$TEXT['UNINSTALL'] = 'Uninstall';
173
$TEXT['VIEW_DETAILS'] = 'View Details';
174
$TEXT['DISPLAY_NAME'] = 'Display Name';
175
$TEXT['AUTHOR'] = 'Author';
176
$TEXT['VERSION'] = 'Version';
177
$TEXT['DESIGNED_FOR'] = 'Designed For';
178
$TEXT['DESCRIPTION'] = 'Description';
179
$TEXT['EMAIL'] = 'Email';
180
$TEXT['LANGUAGE'] = 'Language';
181
$TEXT['TIMEZONE'] = 'Timezone';
182
$TEXT['CURRENT_PASSWORD'] = 'Current Password';
183
$TEXT['NEW_PASSWORD'] = 'New Password';
184
$TEXT['RETYPE_NEW_PASSWORD'] = 'Re-type New Password';
185
$TEXT['ACTIVE'] = 'Active';
186
$TEXT['DISABLED'] = 'Disabled';
187
$TEXT['ENABLED'] = 'Enabled';
188
$TEXT['RETYPE_PASSWORD'] = 'Re-type Password';
189
$TEXT['GROUP'] = 'Group';
190
$TEXT['SYSTEM_PERMISSIONS'] = 'System Permissions';
191
$TEXT['MODULE_PERMISSIONS'] = 'Module Permissions';
192
$TEXT['SHOW_ADVANCED'] = 'Show Advanced Options';
193
$TEXT['HIDE_ADVANCED'] = 'Hide Advanced Options';
194
$TEXT['BASIC'] = 'Basic';
195
$TEXT['ADVANCED'] = 'Advanced';
196
$TEXT['WEBSITE'] = 'Website';
197
$TEXT['DEFAULT'] = 'Default';
198
$TEXT['KEYWORDS'] = 'Keywords';
199
$TEXT['TEXT'] = 'Text';
200
$TEXT['HEADER'] = 'Header';
201
$TEXT['FOOTER'] = 'Footer';
202
$TEXT['TEMPLATE'] = 'Template';
203
$TEXT['INSTALLATION'] = 'Installation';
204
$TEXT['DATABASE'] = 'Database';
205
$TEXT['HOST'] = 'Host';
206
$TEXT['INTRO'] = 'Intro';
207
$TEXT['PAGE'] = 'Page';
208
$TEXT['SIGNUP'] = 'Sign-up';
209
$TEXT['PHP_ERROR_LEVEL'] = 'PHP Error Reporting Level';
210
$TEXT['ADMIN'] = 'Admin';
211
$TEXT['PATH'] = 'Path';
212
$TEXT['URL'] = 'URL';
213
$TEXT['FRONTEND'] = 'Front-end';
214
$TEXT['EXTENSION'] = 'Extension';
215
$TEXT['TABLE_PREFIX'] = 'Table Prefix';
216
$TEXT['CHANGES'] = 'Changes';
217
$TEXT['ADMINISTRATION'] = 'Administration';
218
$TEXT['FORGOT_DETAILS'] = 'Forgot Details?';
219
$TEXT['LOGGED_IN'] = 'Logged-In';
220
$TEXT['WELCOME_BACK'] = 'Welcome back';
221
$TEXT['FULL_NAME'] = 'Full Name';
222
$TEXT['ACCOUNT_SIGNUP'] = 'Account Sign-Up';
223
$TEXT['LINK'] = 'Link';
224
$TEXT['TARGET'] = 'Target';
225
$TEXT['NEW_WINDOW'] = 'New Window';
226
$TEXT['SAME_WINDOW'] = 'Same Window';
227
$TEXT['TOP_FRAME'] = 'Top Frame';
228
$TEXT['PAGE_LEVEL_LIMIT'] = 'Page Level Limit';
229
$TEXT['SUCCESS'] = 'Success';
230
$TEXT['ERROR'] = 'Error';
231
$TEXT['ARE_YOU_SURE'] = 'Are you sure?';
232
$TEXT['YES'] = 'Yes';
233
$TEXT['NO'] = 'No';
234
$TEXT['SYSTEM_DEFAULT'] = 'System Default';
235
$TEXT['PAGE_TITLE'] = 'Page Title';
236
$TEXT['MENU_TITLE'] = 'Menu Title';
237
$TEXT['ACTIONS'] = 'Actions';
238
$TEXT['UNKNOWN'] = 'Unknown';
239
$TEXT['BLOCK'] = 'Block';
240
$TEXT['SEARCH'] = 'Search';
241
$TEXT['SEARCHING'] = 'Searching';
242
$TEXT['POST'] = 'Post';
243
$TEXT['COMMENT'] = 'Comment';
244
$TEXT['COMMENTS'] = 'Comments';
245
$TEXT['COMMENTING'] = 'Commenting';
246
$TEXT['SHORT'] = 'Short';
247
$TEXT['LONG'] = 'Long';
248
$TEXT['LOOP'] = 'Loop';
249
$TEXT['FIELD'] = 'Field';
250
$TEXT['REQUIRED'] = 'Required';
251
$TEXT['LENGTH'] = 'Length';
252
$TEXT['MESSAGE'] = 'Message';
253
$TEXT['SUBJECT'] = 'Subject';
254
$TEXT['MATCH'] = 'Match';
255
$TEXT['ALL_WORDS'] = 'All Words';
256
$TEXT['ANY_WORDS'] = 'Any Words';
257
$TEXT['EXACT_MATCH'] = 'Exact Match';
258
$TEXT['SHOW'] = 'Show';
259
$TEXT['HIDE'] = 'Hide';
260
$TEXT['START_PUBLISHING'] = 'Start Publishing';
261
$TEXT['FINISH_PUBLISHING'] = 'Finish Publishing';
262
$TEXT['DATE'] = 'Date';
263
$TEXT['START'] = 'Start';
264
$TEXT['END'] = 'End';
265
$TEXT['IMAGE'] = 'Image';
266
$TEXT['ICON'] = 'Icon';
267
$TEXT['SECTION'] = 'Section';
268
$TEXT['DATE_FORMAT'] = 'Date Format';
269
$TEXT['TIME_FORMAT'] = 'Time Format';
270
$TEXT['RESULTS'] = 'Results';
271
$TEXT['RESIZE'] = 'Re-size';
272
$TEXT['MANAGE'] = 'Manage';
273
$TEXT['CODE'] = 'Code';
274
$TEXT['WIDTH'] = 'Width';
275
$TEXT['HEIGHT'] = 'Height';
276
$TEXT['MORE'] = 'More';
277
$TEXT['READ_MORE'] = 'Read More';
278
$TEXT['CHANGE_SETTINGS'] = 'Change Settings';
279
$TEXT['CURRENT_PAGE'] = 'Current Page';
280
$TEXT['CLOSE'] = 'Close';
281
$TEXT['INTRO_PAGE'] = 'Intro Page';
282
$TEXT['INSTALLATION_URL'] = 'Installation URL';
283
$TEXT['INSTALLATION_PATH'] = 'Installation Path';
284
$TEXT['PAGE_EXTENSION'] = 'Page Extension';
285
$TEXT['NO_RESULTS'] = 'No Results';
286
$TEXT['WEBSITE_TITLE'] = 'Website Title';
287
$TEXT['WEBSITE_DESCRIPTION'] = 'Website Description';
288
$TEXT['WEBSITE_KEYWORDS'] = 'Website Keywords';
289
$TEXT['WEBSITE_HEADER'] = 'Website Header';
290
$TEXT['WEBSITE_FOOTER'] = 'Website Footer';
291
$TEXT['RESULTS_HEADER'] = 'Results Header';
292
$TEXT['RESULTS_LOOP'] = 'Results Loop';
293
$TEXT['RESULTS_FOOTER'] = 'Results Footer';
294
$TEXT['LEVEL'] = 'Level';
295
$TEXT['NOT_FOUND'] = 'Not Found';
296
$TEXT['PAGE_SPACER'] = 'Page Spacer';
297
$TEXT['MATCHING'] = 'Matching';
298
$TEXT['TEMPLATE_PERMISSIONS'] = 'Template Permissions';
299
$TEXT['PAGES_DIRECTORY'] = 'Pages Directory';
300
$TEXT['MEDIA_DIRECTORY'] = 'Media Directory';
301
$TEXT['FILE_MODE'] = 'File Mode';
302
$TEXT['USER'] = 'User';
303
$TEXT['OTHERS'] = 'Others';
304
$TEXT['READ'] = 'Read';
305
$TEXT['WRITE'] = 'Write';
306
$TEXT['EXECUTE'] = 'Execute';
307
$TEXT['SMART_LOGIN'] = 'Smart Login';
308
$TEXT['REMEMBER_ME'] = 'Remember Me';
309
$TEXT['FILESYSTEM_PERMISSIONS'] = 'Filesystem Permissions';
310
$TEXT['DIRECTORIES'] = 'Directories';
311
$TEXT['DIRECTORY_MODE'] = 'Directory Mode';
312
$TEXT['LIST_OPTIONS'] = 'List Options';
313
$TEXT['OPTION'] = 'Option';
314
$TEXT['ALLOW_MULTIPLE_SELECTIONS'] = 'Allow Multiple Selections';
315
$TEXT['TEXTFIELD'] = 'Textfield';
316
$TEXT['TEXTAREA'] = 'Textarea';
317
$TEXT['SELECT_BOX'] = 'Select Box';
318
$TEXT['CHECKBOX_GROUP'] = 'Checkbox Group';
319
$TEXT['RADIO_BUTTON_GROUP'] = 'Radio Button Group';
320
$TEXT['SIZE'] = 'Size';
321
$TEXT['DEFAULT_TEXT'] = 'Default Text';
322
$TEXT['SEPERATOR'] = 'Separator';
323
$TEXT['BACK'] = 'Back';
324
$TEXT['UNDER_CONSTRUCTION'] = 'Under Construction';
325
$TEXT['MULTISELECT'] = 'Multi-select';
326
$TEXT['SHORT_TEXT'] = 'Short Text';
327
$TEXT['LONG_TEXT'] = 'Long Text';
328
$TEXT['HOMEPAGE_REDIRECTION'] = 'Homepage Redirection';
329
$TEXT['HEADING'] = 'Heading';
330
$TEXT['MULTIPLE_MENUS'] = 'Multiple Menus';
331
$TEXT['REGISTERED'] = 'Registered';
332
$TEXT['START'] = 'Start';
333
$TEXT['SECTION_BLOCKS'] = 'Section Blocks';
334
$TEXT['REGISTERED_VIEWERS'] = 'Registered Viewers';
335
$TEXT['ALLOWED_VIEWERS'] = 'Allowed Viewers';
336
$TEXT['SUBMISSION_ID'] = 'Submission ID';
337
$TEXT['SUBMISSIONS'] = 'Submissions';
338
$TEXT['SUBMITTED'] = 'Submitted';
339
$TEXT['MAX_SUBMISSIONS_PER_HOUR'] = 'Max. Submissions Per Hour';
340
$TEXT['SUBMISSIONS_STORED_IN_DATABASE'] = 'Submissions Stored In Database';
341
$TEXT['EMAIL_ADDRESS'] = 'Email Address';
342
$TEXT['CUSTOM'] = 'Custom';
343
$TEXT['ANONYMOUS'] = 'Anonymous';
344
$TEXT['SERVER_OPERATING_SYSTEM'] = 'Server Operating System';
345
$TEXT['WORLD_WRITEABLE_FILE_PERMISSIONS'] = 'World-writeable file permissions';
346
$TEXT['LINUX_UNIX_BASED'] = 'Linux/Unix based';
347
$TEXT['WINDOWS'] = 'Windows';
348
$TEXT['HOME_FOLDER'] = 'Home Folder';
349
$TEXT['HOME_FOLDERS'] = 'Home Folders';
350
$TEXT['PAGE_TRASH'] = 'Page Trash';
351
$TEXT['INLINE'] = 'In-line';
352
$TEXT['SEPARATE'] = 'Separate';
353
$TEXT['DELETED'] = 'Deleted';
354
$TEXT['VIEW_DELETED_PAGES'] = 'View Deleted Pages';
355
$TEXT['EMPTY_TRASH'] = 'Empty Trash';
356
$TEXT['TRASH_EMPTIED'] = 'Trash Emptied';
357
$TEXT['ADD_SECTION'] = 'Add Section';
358
$TEXT['POST_HEADER'] = 'Post Header';
359
$TEXT['POST_FOOTER'] = 'Post Footer';
360
$TEXT['POSTS_PER_PAGE'] = 'Posts Per Page';
361
$TEXT['RESIZE_IMAGE_TO'] = 'Resize Image To';
362
$TEXT['UNLIMITED'] = 'Unlimited';
363
$TEXT['OF'] = 'Of';
364
$TEXT['OUT_OF'] = 'Out Of';
365
$TEXT['NEXT'] = 'Next';
366
$TEXT['PREVIOUS'] = 'Previous';
367
$TEXT['NEXT_PAGE'] = 'Next Page';
368
$TEXT['PREVIOUS_PAGE'] = 'Previous Page';
369
$TEXT['ON'] = 'On';
370
$TEXT['LAST_UPDATED_BY'] = 'Last Updated By';
371
$TEXT['RESULTS_FOR'] = 'Results For';
372
$TEXT['TIME'] = 'Time';
373
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Style';
374
$TEXT['WYSIWYG_EDITOR'] = "WYSIWYG Editor";
375
$TEXT['SERVER_EMAIL'] = 'Server Email';
376
$TEXT['MENU'] = 'Menu';
377
$TEXT['MANAGE_GROUPS'] = 'Manage Groups';
378
$TEXT['MANAGE_USERS'] = 'Manage Users';
379
$TEXT['PAGE_LANGUAGES'] = 'Page Languages';
380
$TEXT['HIDDEN'] = 'Hidden';
381
$TEXT['MAIN'] = 'Main';
382
$TEXT['RENAME_FILES_ON_UPLOAD'] = 'Rename Files On Upload';
383
$TEXT['APP_NAME'] = 'Application Name';
384
$TEXT['SESSION_IDENTIFIER'] = 'Session Identifier';
385
$TEXT['BACKUP'] = 'Backup';
386
$TEXT['RESTORE'] = 'Restore';
387
$TEXT['BACKUP_DATABASE'] = 'Backup Database';
388
$TEXT['RESTORE_DATABASE'] = 'Restore Database';
389
$TEXT['BACKUP_ALL_TABLES'] = 'Backup all tables in database';
390
$TEXT['BACKUP_WB_SPECIFIC'] = 'Backup only WB-specific tables';
391
$TEXT['BACKUP_MEDIA'] = 'Backup Media';
392
$TEXT['RESTORE_MEDIA'] = 'Restore Media';
393
$TEXT['ADMINISTRATION_TOOL'] = 'Administration tool';
394
$TEXT['CAPTCHA_VERIFICATION'] = 'Captcha Verification';
395
$TEXT['VERIFICATION'] = 'Verification';
396
$TEXT['DEFAULT_CHARSET'] = 'Default Charset';
397
$TEXT['CHARSET'] = 'Charset';
398

  
399

  
400
// Success/error messages
401
$MESSAGE['FRONTEND']['SORRY_NO_VIEWING_PERMISSIONS'] = 'Sorry, you do not have permissions to view this page';
402

  
403
$MESSAGE['ADMIN']['INSUFFICIENT_PRIVELLIGES'] = 'Insufficient privelliges to be here';
404

  
405
$MESSAGE['LOGIN']['BOTH_BLANK'] = 'Please enter your username and password below';
406
$MESSAGE['LOGIN']['USERNAME_BLANK'] = 'Please enter a username';
407
$MESSAGE['LOGIN']['PASSWORD_BLANK'] = 'Please enter a password';
408
$MESSAGE['LOGIN']['USERNAME_TOO_SHORT'] = 'Supplied username to short';
409
$MESSAGE['LOGIN']['PASSWORD_TOO_SHORT'] = 'Supplied password to short';
410
$MESSAGE['LOGIN']['USERNAME_TOO_LONG'] = 'Supplied username to long';
411
$MESSAGE['LOGIN']['PASSWORD_TOO_LONG'] = 'Supplied password to long';
412
$MESSAGE['LOGIN']['AUTHENTICATION_FAILED'] = 'Username or password incorrect';
413

  
414
$MESSAGE['SIGNUP']['NO_EMAIL'] = 'You must enter an email address';
415

  
416
$MESSAGE['FORGOT_PASS']['NO_DATA'] = 'Please enter your email address below';
417
$MESSAGE['FORGOT_PASS']['EMAIL_NOT_FOUND'] = 'The email that you entered cannot be found in the database';
418
$MESSAGE['FORGOT_PASS']['CANNOT_EMAIL'] = 'Unable to email password, please contact system administrator';
419
$MESSAGE['FORGOT_PASS']['PASSWORD_RESET'] = 'Your username and password have been sent to your email address';
420
$MESSAGE['FORGOT_PASS']['ALREADY_RESET'] = 'Password cannot be reset more than once per hour, sorry';
421

  
422
$MESSAGE['START']['WELCOME_MESSAGE'] = 'Welcome to Website Baker Administration';
423
$MESSAGE['START']['INSTALL_DIR_EXISTS'] = 'Warning, Installation Directory Still Exists!';
424
$MESSAGE['START']['CURRENT_USER'] = 'You are currently logged in as:';
425

  
426
$MESSAGE['SETTINGS']['UNABLE_OPEN_CONFIG'] = 'Unable to open the configuration file';
427
$MESSAGE['SETTINGS']['UNABLE_WRITE_CONFIG'] = 'Cannot write to configuration file';
428
$MESSAGE['SETTINGS']['SAVED'] = 'Settings saved successfully';
429
$MESSAGE['SETTINGS']['MODE_SWITCH_WARNING'] = 'Please Note: Pressing this button resets all unsaved changes';
430
$MESSAGE['SETTINGS']['WORLD_WRITEABLE_WARNING'] = 'Please note: this is only recommended for testing environments';
431

  
432
$MESSAGE['USERS']['ADDED'] = 'User added successfully';
433
$MESSAGE['USERS']['SAVED'] = 'User saved successfully';
434
$MESSAGE['USERS']['DELETED'] = 'User deleted successfully';
435
$MESSAGE['USERS']['NO_GROUP'] = 'No group was selected';
436
$MESSAGE['USERS']['USERNAME_TOO_SHORT'] = 'The username you entered was too short';
437
$MESSAGE['USERS']['PASSWORD_TOO_SHORT'] = 'The password you entered was too short';
438
$MESSAGE['USERS']['PASSWORD_MISMATCH'] = 'The passwords you entered do not match';
439
$MESSAGE['USERS']['INVALID_EMAIL'] = 'The email address you entered is invalid';
440
$MESSAGE['USERS']['EMAIL_TAKEN'] = 'The email you entered is already in use';
441
$MESSAGE['USERS']['USERNAME_TAKEN'] = 'The username you entered is already taken';
442
$MESSAGE['USERS']['CHANGING_PASSWORD'] = 'Please note: You should only enter values in the above fields if you wish to change this users password';
443
$MESSAGE['USERS']['CONFIRM_DELETE'] = 'Are you sure you want to delete the selected user?';
444

  
445
$MESSAGE['GROUPS']['ADDED'] = 'Group added successfully';
446
$MESSAGE['GROUPS']['SAVED'] = 'Group saved successfully';
447
$MESSAGE['GROUPS']['DELETED'] = 'Group deleted successfully';
448
$MESSAGE['GROUPS']['GROUP_NAME_BLANK'] = 'Group name is blank';
449
$MESSAGE['GROUPS']['CONFIRM_DELETE'] = 'Are you sure you want to delete the selected group (and any users that belong to it)?';
450
$MESSAGE['GROUPS']['NO_GROUPS_FOUND'] = 'No groups found';
451
$MESSAGE['GROUPS']['GROUP_NAME_EXISTS'] = 'Group name already exists';
452

  
453
$MESSAGE['PREFERENCES']['DETAILS_SAVED'] = 'Details saved successfully';
454
$MESSAGE['PREFERENCES']['EMAIL_UPDATED'] = 'Email updated successfully';
455
$MESSAGE['PREFERENCES']['CURRENT_PASSWORD_INCORRECT'] = 'The (current) password you entered is incorrect';
456
$MESSAGE['PREFERENCES']['PASSWORD_CHANGED'] = 'Password changed successfully';
457

  
458
$MESSAGE['TEMPLATES']['CHANGE_TEMPLATE_NOTICE'] = 'Please note: to change the template you must go to the Settings section';
459

  
460
$MESSAGE['MEDIA']['DIR_DOT_DOT_SLASH'] = 'Cannot include ../ in the folder name';
461
$MESSAGE['MEDIA']['DIR_DOES_NOT_EXIST'] = 'Directory does not exist';
462
$MESSAGE['MEDIA']['TARGET_DOT_DOT_SLASH'] = 'Cannot have ../ in the folder target';
463
$MESSAGE['MEDIA']['NAME_DOT_DOT_SLASH'] = 'Cannot include ../ in the name';
464
$MESSAGE['MEDIA']['NAME_INDEX_PHP'] = 'Cannot use index.php as the name';
465
$MESSAGE['MEDIA']['NONE_FOUND'] = 'No media found in the current folder';
466
$MESSAGE['MEDIA']['FILE_NOT_FOUND'] = 'File not found';
467
$MESSAGE['MEDIA']['DELETED_FILE'] = 'File deleted successfully';
468
$MESSAGE['MEDIA']['DELETED_DIR'] = 'Folder deleted successfully';
469
$MESSAGE['MEDIA']['CONFIRM_DELETE'] = 'Are you sure you want to delete the following file or folder?';
470
$MESSAGE['MEDIA']['CANNOT_DELETE_FILE'] = 'Cannot delete the selected file';
471
$MESSAGE['MEDIA']['CANNOT_DELETE_DIR'] = 'Cannot delete the selected folder';
472
$MESSAGE['MEDIA']['BLANK_NAME'] = 'You did not enter a new name';
473
$MESSAGE['MEDIA']['BLANK_EXTENSION'] = 'You did not enter a file extension';
474
$MESSAGE['MEDIA']['RENAMED'] = 'Rename successful';
475
$MESSAGE['MEDIA']['CANNOT_RENAME'] = 'Rename unsuccessful';
476
$MESSAGE['MEDIA']['FILE_EXISTS'] = 'A file matching the name you entered already exists';
477
$MESSAGE['MEDIA']['DIR_EXISTS'] = 'A folder matching the name you entered already exists';
478
$MESSAGE['MEDIA']['DIR_MADE'] = 'Folder created successfully';
479
$MESSAGE['MEDIA']['DIR_NOT_MADE'] = 'Unable to create folder';
480
$MESSAGE['MEDIA']['SINGLE_UPLOADED'] = ' file was successfully uploaded';
481
$MESSAGE['MEDIA']['UPLOADED'] = ' files were successfully uploaded';
482

  
483
$MESSAGE['PAGES']['ADDED'] = 'Page added successfully';
484
$MESSAGE['PAGES']['ADDED_HEADING'] = 'Page heading added successfully';
485
$MESSAGE['PAGES']['PAGE_EXISTS'] = 'A page with the same or similar title exists';
486
$MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE'] = 'Error creating access file in the /pages directory (insufficient privileges)';
487
$MESSAGE['PAGES']['CANNOT_DELETE_ACCESS_FILE'] = 'Error deleting access file in the /pages directory (insufficient privileges)';
488
$MESSAGE['PAGES']['NOT_FOUND'] = 'Page not found';
489
$MESSAGE['PAGES']['SAVED'] = 'Page saved successfully';
490
$MESSAGE['PAGES']['SAVED_SETTINGS'] = 'Page settings saved successfully';
491
$MESSAGE['PAGES']['NOT_SAVED'] = 'Error saving page';
492
$MESSAGE['PAGES']['DELETE_CONFIRM'] = 'Are you sure you want to delete the selected page (and all of its sub-pages)';
493
$MESSAGE['PAGES']['DELETED'] = 'Page deleted successfully';
494
$MESSAGE['PAGES']['RESTORED'] = 'Page restored successfully';
495
$MESSAGE['PAGES']['BLANK_PAGE_TITLE'] = 'Please enter a page title';
496
$MESSAGE['PAGES']['BLANK_MENU_TITLE'] = 'Please enter a menu title';
497
$MESSAGE['PAGES']['REORDERED'] = 'Page re-ordered successfully';
498
$MESSAGE['PAGES']['CANNOT_REORDER'] = 'Error re-ordering page';
499
$MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS'] = 'You do not have permissions to modify this page';
500
$MESSAGE['PAGES']['INTRO_NOT_WRITABLE'] = 'Cannot write to file /pages/intro.php (insufficient privileges)';
501
$MESSAGE['PAGES']['INTRO_SAVED'] = 'Intro page saved successfully';
502
$MESSAGE['PAGES']['LAST_MODIFIED'] = 'Last modification by';
503
$MESSAGE['PAGES']['INTRO_LINK'] = 'Click HERE to modify the intro page';
504
$MESSAGE['PAGES']['SECTIONS_PROPERTIES_SAVED'] = 'Section properties saved successfully';
505
$MESSAGE['PAGES']['RETURN_TO_PAGES'] = 'Return to pages';
506

  
507
$MESSAGE['GENERIC']['FILL_IN_ALL'] = 'Please go back and fill-in all fields';
508
$MESSAGE['GENERIC']['FILE_TYPE'] = 'Please note that the file you upload must be of the following format:';
509
$MESSAGE['GENERIC']['FILE_TYPES'] = 'Please note that the file you upload must be in one of the following formats:';
510
$MESSAGE['GENERIC']['CANNOT_UPLOAD'] = 'Cannot upload file';
511
$MESSAGE['GENERIC']['ALREADY_INSTALLED'] = 'Already installed';
512
$MESSAGE['GENERIC']['NOT_INSTALLED'] = 'Not installed';
513
$MESSAGE['GENERIC']['CANNOT_UNINSTALL'] = 'Cannot uninstall';
514
$MESSAGE['GENERIC']['CANNOT_UNZIP'] = 'Cannot unzip file';
515
$MESSAGE['GENERIC']['INSTALLED'] = 'Installed successfully';
516
$MESSAGE['GENERIC']['UPGRADED'] = 'Upgraded successfully';
517
$MESSAGE['GENERIC']['UNINSTALLED'] = 'Uninstalled successfully';
518
$MESSAGE['GENERIC']['BAD_PERMISSIONS'] = 'Unable to write to the target directory';
519
$MESSAGE['GENERIC']['INVALID'] = 'The file you uploaded is invalid';
520
$MESSAGE['GENERIC']['CANNOT_UNINSTALL_IN_USE'] = 'Cannot Uninstall: the selected file is in use';
521
$MESSAGE['GENERIC']['WEBSITE_UNDER_CONSTRUCTION'] = 'Website Under Construction';
522
$MESSAGE['GENERIC']['PLEASE_CHECK_BACK_SOON'] = 'Please check back soon...';
523
$MESSAGE['GENERIC']['PLEASE_BE_PATIENT'] = 'Please be patient, this might take a while.';
524
$MESSAGE['GENERIC']['ERROR_OPENING_FILE'] = 'Error opening file.';
525

  
526
$MESSAGE['MOD_FORM']['REQUIRED_FIELDS'] = 'You must enter details for the following fields';
527
$MESSAGE['MOD_FORM']['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.';
528
$MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'] = 'The verification number (also known as Captcha) that you entered is incorrect. If you are having problems reading the Captcha, please email: '.SERVER_EMAIL;
529

  
530
$MESSAGE['MOD_RELOAD']['PLEASE_SELECT'] = 'Please selected which add-ons you would like to have reloaded';
531
$MESSAGE['MOD_RELOAD']['MODULES_RELOADED'] = 'Modules reloaded successfully';
532
$MESSAGE['MOD_RELOAD']['TEMPLATES_RELOADED'] = 'Templates reloaded successfully';
533
$MESSAGE['MOD_RELOAD']['LANGUAGES_RELOADED'] = 'Languages reloaded successfully';
534

  
535
?>
0 536

  
branches/2.6.x/wb/languages/index.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

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

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

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

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

  
24
*/
25

  
26
require('../config.php');
27
header('Location: '.WB_URL.'/');
28

  
29
?>
0 30

  
branches/2.6.x/wb/admin/pages/settings.php
1
<?php
2

  
3
/*
4

  
5
 Website Baker Project <http://www.websitebaker.org/>
6
 Copyright (C) 2004-2006, Ryan Djurovich
7

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

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

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

  
22
*/
23

  
24
// Get page id
25
if(!isset($_GET['page_id']) OR !is_numeric($_GET['page_id'])) {
26
	header("Location: index.php");
27
	exit(0);
28
} else {
29
	$page_id = $_GET['page_id'];
30
}
31

  
32
// Create new admin object
33
require('../../config.php');
34
require_once(WB_PATH.'/framework/class.admin.php');
35
$admin = new admin('Pages', 'pages_settings');
36

  
37
// Get perms
38
$database = new database();
39
$results = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'");
40
$results_array = $results->fetchRow();
41
$old_admin_groups = explode(',', $results_array['admin_groups']);
42
$old_admin_users = explode(',', $results_array['admin_users']);
43
if(!is_numeric(array_search($admin->get_group_id(), $old_admin_groups)) AND !is_numeric(array_search($admin->get_user_id(), $old_admin_users))) {
44
	$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']);
45
}
46

  
47
// Get page details
48
$database = new database();
49
$query = "SELECT * FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'";
50
$results = $database->query($query);
51
if($database->is_error()) {
52
	$admin->print_header();
53
	$admin->print_error($database->get_error());
54
}
55
if($results->numRows() == 0) {
56
	$admin->print_header();
57
	$admin->print_error($MESSAGE['PAGES']['NOT_FOUND']);
58
}
59
$results_array = $results->fetchRow();
60

  
61
// Get display name of person who last modified the page
62
$user=$admin->get_user_details($results_array['modified_by']);
63

  
64
// Convert the unix ts for modified_when to human a readable form
65
if($results_array['modified_when'] != 0) {
66
	$modified_ts = gmdate(TIME_FORMAT.', '.DATE_FORMAT, $results_array['modified_when']+TIMEZONE);
67
} else {
68
	$modified_ts = 'Unknown';
69
}
70

  
71
// Setup template object, parse vars to it, then parse it
72
$template = new Template(ADMIN_PATH.'/pages');
73
$template->set_file('page', 'settings.html');
74
$template->set_block('page', 'main_block', 'main');
75
$template->set_var(array(
76
								'PAGE_ID' => $results_array['page_id'],
77
								'PAGE_TITLE' => ($results_array['page_title']),
78
								'MENU_TITLE' => ($results_array['menu_title']),
79
								'DESCRIPTION' => ($results_array['description']),
80
								'KEYWORDS' => ($results_array['keywords']),
81
								'MODIFIED_BY' => $user['display_name'],
82
								'MODIFIED_BY_USERNAME' => $user['username'],
83
								'MODIFIED_WHEN' => $modified_ts,
84
								'ADMIN_URL' => ADMIN_URL
85
								)
86
						);
87

  
88
// Work-out if we should show the "manage sections" link
89
$query_sections = $database->query("SELECT section_id FROM ".TABLE_PREFIX."sections WHERE page_id = '$page_id' AND module = 'menu_link'");
90
if($query_sections->numRows() > 0) {
91
	$template->set_var('DISPLAY_MANAGE_SECTIONS', 'none');
92
} elseif(MANAGE_SECTIONS == 'enabled') {
93
	$template->set_var('TEXT_MANAGE_SECTIONS', $HEADING['MANAGE_SECTIONS']);
94
} else {
95
	$template->set_var('DISPLAY_MANAGE_SECTIONS', 'none');
96
}
97

  
98
// Visibility
99
if($results_array['visibility'] == 'public') {
100
	$template->set_var('PUBLIC_SELECTED', ' selected');
101
} elseif($results_array['visibility'] == 'private') {
102
	$template->set_var('PRIVATE_SELECTED', ' selected');
103
} elseif($results_array['visibility'] == 'registered') {
104
	$template->set_var('REGISTERED_SELECTED', ' selected');
105
} elseif($results_array['visibility'] == 'hidden') {
106
	$template->set_var('HIDDEN_SELECTED', ' selected');
107
} elseif($results_array['visibility'] == 'none') {
108
	$template->set_var('NO_VIS_SELECTED', ' selected');
109
}
110
// Group list 1 (admin_groups)
111
	$admin_groups = explode(',', str_replace('_', '', $results_array['admin_groups']));
112
	if($admin->get_group_id() == 1) {
113
		$query = "SELECT * FROM ".TABLE_PREFIX."groups";
114
	} else {
115
		$query = "SELECT * FROM ".TABLE_PREFIX."groups WHERE group_id != '".$admin->get_group_id()."'";
116
	}
117
	$get_groups = $database->query($query);
118
	$template->set_block('main_block', 'group_list_block', 'group_list');
119
	// Insert admin group and current group first
120
	$admin_group_name = $get_groups->fetchRow();
121
	$template->set_var(array(
122
									'ID' => 1,
123
									'TOGGLE' => '',
124
									'DISABLED' => ' disabled',
125
									'LINK_COLOR' => '000000',
126
									'CURSOR' => 'default',
127
									'NAME' => $admin_group_name['name'],
128
									'CHECKED' => ' checked'
129
									)
130
							);
131
	$template->parse('group_list', 'group_list_block', true);
132
	if($admin->get_group_id() != 1) {
133
		$template->set_var(array(
134
										'ID' => $admin->get_group_id(),
135
										'TOGGLE' => '',
136
										'DISABLED' => ' disabled',
137
										'LINK_COLOR' => '000000',
138
										'CURSOR' => 'default',
139
										'NAME' => $admin->get_group_name(),
140
										'CHECKED' => ' checked'
141
										)
142
								);
143
		$template->parse('group_list', 'group_list_block', true);
144
	}
145
	while($group = $get_groups->fetchRow()) {
146
		// Check if the group is allowed to edit pages
147
		$system_permissions = explode(',', $group['system_permissions']);
148
		if(is_numeric(array_search('pages_modify', $system_permissions))) {
149
			$template->set_var(array(
150
											'ID' => $group['group_id'],
151
											'TOGGLE' => $group['group_id'],
152
											'DISABLED' => '',
153
											'LINK_COLOR' => '',
154
											'CURSOR' => 'pointer',
155
											'NAME' => $group['name'],
156
											'CHECKED' => ''
157
											)
158
									);
159
			if(is_numeric(array_search($group['group_id'], $admin_groups))) {
160
				$template->set_var('CHECKED', 'checked');
161
			} else {
162
				$template->set_var('CHECKED', '');
163
			}
164
			$template->parse('group_list', 'group_list_block', true);
165
		}
166
	}
167
// Group list 2 (viewing_groups)
168
	$viewing_groups = explode(',', str_replace('_', '', $results_array['viewing_groups']));
169
	if($admin->get_group_id() == 1) {
170
		$query = "SELECT * FROM ".TABLE_PREFIX."groups";
171
	} else {
172
		$query = "SELECT * FROM ".TABLE_PREFIX."groups WHERE group_id != '".$admin->get_group_id()."'";
173
	}
174
	$get_groups = $database->query($query);
175
	$template->set_block('main_block', 'group_list_block2', 'group_list2');
176
	// Insert admin group and current group first
177
	$admin_group_name = $get_groups->fetchRow();
178
	$template->set_var(array(
179
									'ID' => 1,
180
									'TOGGLE' => '',
181
									'DISABLED' => ' disabled',
182
									'LINK_COLOR' => '000000',
183
									'CURSOR' => 'default',
184
									'NAME' => $admin_group_name['name'],
185
									'CHECKED' => ' checked'
186
									)
187
							);
188
	$template->parse('group_list2', 'group_list_block2', true);
189
	if($admin->get_group_id() != 1) {
190
		$template->set_var(array(
191
										'ID' => $admin->get_group_id(),
192
										'TOGGLE' => '',
193
										'DISABLED' => ' disabled',
194
										'LINK_COLOR' => '000000',
195
										'CURSOR' => 'default',
196
										'NAME' => $admin->get_group_name(),
197
										'CHECKED' => ' checked'
198
										)
199
								);
200
		$template->parse('group_list2', 'group_list_block2', true);
201
	}
202
	while($group = $get_groups->fetchRow()) {
203
		$template->set_var(array(
204
										'ID' => $group['group_id'],
205
										'TOGGLE' => $group['group_id'],
206
										'DISABLED' => '',
207
										'LINK_COLOR' => '',
208
										'CURSOR' => 'pointer',
209
										'NAME' => $group['name'],
210
										)
211
								);
212
		if(is_numeric(array_search($group['group_id'], $viewing_groups))) {
213
			$template->set_var('CHECKED', 'checked');
214
		} else {
215
			$template->set_var('CHECKED', '');
216
		}
217
		$template->parse('group_list2', 'group_list_block2', true);
218
	}
219
// Show private viewers
220
if($results_array['visibility'] == 'private' OR $results_array['visibility'] == 'registered') {
221
	$template->set_var('DISPLAY_VIEWERS', '');
222
} else {
223
	$template->set_var('DISPLAY_VIEWERS', 'none');
224
}
225

  
226
// Parent page list
227
$database = new database();
228
function parent_list($parent) {
229
	global $admin, $database, $template, $results_array;
230
	$query = "SELECT * FROM ".TABLE_PREFIX."pages WHERE parent = '$parent' ORDER BY position ASC";
231
	$get_pages = $database->query($query);
232
	while($page = $get_pages->fetchRow()) {
233
		// If the current page cannot be parent, then its children neither
234
		$list_next_level = true;
235
		// Stop users from adding pages with a level of more than the set page level limit
236
		if($page['level']+1 < PAGE_LEVEL_LIMIT) {
237
			// Get user perms
238
			$admin_groups = explode(',', str_replace('_', '', $page['admin_groups']));
239
			$admin_users = explode(',', str_replace('_', '', $page['admin_users']));
240
			if(is_numeric(array_search($admin->get_group_id(), $admin_groups)) OR is_numeric(array_search($admin->get_user_id(), $admin_users))) {
241
				$can_modify = true;
242
			} else {
243
				$can_modify = false;
244
			}
245
			// Title -'s prefix
246
			$title_prefix = '';
247
			for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - '; }
248
			$template->set_var(array(
249
											'ID' => $page['page_id'],
250
											'TITLE' => ($title_prefix.$page['page_title'])
251
											)
252
									);
253
			if($results_array['parent'] == $page['page_id']) {
254
				$template->set_var('SELECTED', ' selected');
255
			} elseif($results_array['page_id'] == $page['page_id']) {
256
				$template->set_var('SELECTED', ' disabled');
257
				$list_next_level=false;
258
			} elseif($can_modify != true) {
259
				$template->set_var('SELECTED', ' disabled');
260
			} else {
261
				$template->set_var('SELECTED', '');
262
			}
263
			$template->parse('page_list2', 'page_list_block2', true);
264
		}
265
		if ($list_next_level)
266
			parent_list($page['page_id']);
267
	}
268
}
269
$template->set_block('main_block', 'page_list_block2', 'page_list2');
270
if($admin->get_permission('pages_add_l0') == true OR $results_array['level'] == 0) {
271
	if($results_array['parent'] == 0) { $selected = ' selected'; } else { $selected = ''; }
272
	$template->set_var(array(
273
									'ID' => '0',
274
									'TITLE' => $TEXT['NONE'],
275
									'SELECTED' => $selected
276
									)
277
							);
278
	$template->parse('page_list2', 'page_list_block2', true);
279
}
280
parent_list(0);
281

  
282
if($modified_ts == 'Unknown') {
283
	$template->set_var('DISPLAY_MODIFIED', 'hide');
284
} else {
285
	$template->set_var('DISPLAY_MODIFIED', '');
286
}
287
// Templates list
288
$template->set_block('main_block', 'template_list_block', 'template_list');
289
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template'");
290
if($result->numRows() > 0) {
291
	while($addon = $result->fetchRow()) { 
292
		// Check if the user has perms to use this template
293
		if($addon['directory'] == $results_array['template'] OR $admin->get_permission($addon['directory'], 'template') == true) {
294
			$template->set_var('VALUE', $addon['directory']);
295
			$template->set_var('NAME', $addon['name']);
296
			if($addon['directory'] == $results_array['template']) {
297
				$template->set_var('SELECTED', ' selected');
298
			} else {
299
				$template->set_var('SELECTED', '');
300
			}
301
			$template->parse('template_list', 'template_list_block', true);
302
		}
303
	}
304
}
305

  
306
// Menu list
307
if(MULTIPLE_MENUS == false) {
308
	$template->set_var('DISPLAY_MENU_LIST', 'none');
309
}
310
// Include template info file (if it exists)
311
if($results_array['template'] != '') {
312
	$template_location = WB_PATH.'/templates/'.$results_array['template'].'/info.php';
313
} else {
314
	$template_location = WB_PATH.'/templates/'.DEFAULT_TEMPLATE.'/info.php';
315
}
316
if(file_exists($template_location)) {
317
	require($template_location);
318
}
319
// Check if $menu is set
320
if(!isset($menu[1]) OR $menu[1] == '') {
321
	// Make our own menu list
322
	$menu[1] = $TEXT['MAIN'];
323
}
324
// Add menu options to the list
325
$template->set_block('main_block', 'menu_list_block', 'menu_list');
326
foreach($menu AS $number => $name) {
327
	$template->set_var('NAME', $name);
328
	$template->set_var('VALUE', $number);
329
	if($results_array['menu'] == $number) {
330
		$template->set_var('SELECTED', 'selected');
331
	} else {
332
		$template->set_var('SELECTED', '');
333
	}
334
	$template->parse('menu_list', 'menu_list_block', true);
335
}
336

  
337
// Language list
338
if($handle = opendir(WB_PATH.'/languages/')) {
339
	$template->set_block('main_block', 'language_list_block', 'language_list');
340
	while (false !== ($file = readdir($handle))) {
341
		if($file != '.' AND $file != '..' AND $file != '.svn' AND $file != 'index.php') {
342
			// Include the languages info file
343
			require(WB_PATH.'/languages/'.$file);
344
			// Work-out if this language is selected
345
			if($language_code == $results_array['language']) { $selected = ' selected'; } else { $selected = ''; }
346
			// Set the language info
347
			$template->set_var(array('VALUE' => $language_code, 'SELECTED' => $selected, 'NAME' => $language_name));
348
			// Parse row
349
			$template->parse('language_list', 'language_list_block', true);
350
		}
351
	}
352
}
353
// Restore to original language
354
require(WB_PATH.'/languages/'.LANGUAGE.'.php');
355

  
356
// Select disabled if searching is disabled
357
if($results_array['searching'] == 0) {
358
	$template->set_var('SEARCHING_DISABLED', ' selected');
359
}
360
// Select what the page target is
361
switch ($results_array['target']) {
362
	case '_top':
363
		$template->set_var('TOP_SELECTED', ' selected');
364
		break;
365
	case '_self':
366
		$template->set_var('SELF_SELECTED', ' selected');
367
		break;
368
	case '_blank':
369
		$template->set_var('BLANK_SELECTED', ' selected');
370
		break;
371
}
372
	
373

  
374
// Insert language text
375
$template->set_var(array(
376
								'HEADING_MODIFY_PAGE_SETTINGS' => $HEADING['MODIFY_PAGE_SETTINGS'],
377
								'TEXT_CURRENT_PAGE' => $TEXT['CURRENT_PAGE'],
378
								'TEXT_MODIFY' => $TEXT['MODIFY'],
379
								'TEXT_MODIFY_PAGE' => $HEADING['MODIFY_PAGE'],
380
								'LAST_MODIFIED' => $MESSAGE['PAGES']['LAST_MODIFIED'],
381
								'TEXT_PAGE_TITLE' => $TEXT['PAGE_TITLE'],
382
								'TEXT_MENU_TITLE' => $TEXT['MENU_TITLE'],
383
								'TEXT_TYPE' => $TEXT['TYPE'],
384
								'TEXT_MENU' => $TEXT['MENU'],
385
								'TEXT_PARENT' => $TEXT['PARENT'],
386
								'TEXT_VISIBILITY' => $TEXT['VISIBILITY'],
387
								'TEXT_PUBLIC' => $TEXT['PUBLIC'],
388
								'TEXT_PRIVATE' => $TEXT['PRIVATE'],
389
								'TEXT_REGISTERED' => $TEXT['REGISTERED'],
390
								'TEXT_NONE' => $TEXT['NONE'],
391
								'TEXT_HIDDEN' => $TEXT['HIDDEN'],
392
								'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],
393
								'TEXT_TARGET' => $TEXT['TARGET'],
394
								'TEXT_SYSTEM_DEFAULT' => $TEXT['SYSTEM_DEFAULT'],
395
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
396
								'TEXT_NEW_WINDOW' => $TEXT['NEW_WINDOW'],
397
								'TEXT_SAME_WINDOW' => $TEXT['SAME_WINDOW'],
398
								'TEXT_TOP_FRAME' => $TEXT['TOP_FRAME'],
399
								'TEXT_ADMINISTRATORS' => $TEXT['ADMINISTRATORS'],
400
								'TEXT_ALLOWED_VIEWERS' => $TEXT['ALLOWED_VIEWERS'],
401
								'TEXT_DESCRIPTION' => $TEXT['DESCRIPTION'],
402
								'TEXT_KEYWORDS' => $TEXT['KEYWORDS'],
403
								'TEXT_SEARCHING' => $TEXT['SEARCHING'],
404
								'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
405
								'TEXT_ENABLED' => $TEXT['ENABLED'],
406
								'TEXT_DISABLED' => $TEXT['DISABLED'],
407
								'TEXT_SAVE' => $TEXT['SAVE'],
408
								'TEXT_RESET' => $TEXT['RESET'],
409
								'LAST_MODIFIED' => $MESSAGE['PAGES']['LAST_MODIFIED'],
410
								'HEADING_MODIFY_PAGE' => $HEADING['MODIFY_PAGE']
411
								)
412
						);
413

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff