Revision 360
Added by ryan over 19 years ago
branches/2.6.x/LICENSE | ||
---|---|---|
1 |
License |
|
2 |
======= |
|
3 |
Website Baker is released under the GNU General Public License, |
|
4 |
Copyright (C) 2004-2005 Ryan Djurovich. |
|
5 |
Please refer to the COPYING file for a copy of the license. |
|
6 | 0 |
branches/2.6.x/README | ||
---|---|---|
1 |
General Information |
|
2 |
=================== |
|
3 |
Website Baker is a PHP-based content management system |
|
4 |
which enables users to produce websites with ease. |
|
5 |
Features include a template-based front-end, modulated |
|
6 |
and multi-level page support, multi-user administration, |
|
7 |
and much much more! |
|
8 |
|
|
9 |
|
|
10 |
License |
|
11 |
======= |
|
12 |
Website Baker is released under the GNU General Public License, |
|
13 |
Copyright (C) 2004-2006 Ryan Djurovich. |
|
14 |
Please refer to the COPYING file for a copy of the license. |
|
15 |
|
|
16 |
|
|
17 |
Installation |
|
18 |
============ |
|
19 |
Please refer to the INSTALL file for instructions on installation. |
|
20 |
|
|
21 |
|
|
22 |
Usage |
|
23 |
===== |
|
24 |
Before using Website Baker please note: you must not remove/change any |
|
25 |
copyright notices in the any code contained in this package. |
|
26 |
Also, it is appreciated if you leave a link somewhere on your website, |
|
27 |
which links to the Website Baker website. (http://www.websitebaker.org/) |
|
28 |
|
|
29 |
|
|
30 |
Support |
|
31 |
======= |
|
32 |
For information about finding help: |
|
33 |
http://www.websitebaker.org/2/help |
|
34 |
|
|
35 |
|
|
36 |
Bugs |
|
37 |
==== |
|
38 |
To submit a bug: |
|
39 |
http://www.websitebaker.org/2/bugs |
|
40 |
|
|
41 |
|
|
42 |
Contribute |
|
43 |
========== |
|
44 |
For information about how to contribute (donating, etc): |
|
45 |
http://www.websitebaker.org/2/contribute |
|
46 |
|
|
47 | 0 |
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 |
|
471 | 0 |
branches/2.6.x/COPYING | ||
---|---|---|
1 |
GNU GENERAL PUBLIC LICENSE |
|
2 |
Version 2, June 1991 |
|
3 |
|
|
4 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
|
5 |
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
6 |
Everyone is permitted to copy and distribute verbatim copies |
|
7 |
of this license document, but changing it is not allowed. |
|
8 |
|
|
9 |
Preamble |
|
10 |
|
|
11 |
The licenses for most software are designed to take away your |
|
12 |
freedom to share and change it. By contrast, the GNU General Public |
|
13 |
License is intended to guarantee your freedom to share and change free |
|
14 |
software--to make sure the software is free for all its users. This |
|
15 |
General Public License applies to most of the Free Software |
|
16 |
Foundation's software and to any other program whose authors commit to |
|
17 |
using it. (Some other Free Software Foundation software is covered by |
|
18 |
the GNU Library General Public License instead.) You can apply it to |
|
19 |
your programs, too. |
|
20 |
|
|
21 |
When we speak of free software, we are referring to freedom, not |
|
22 |
price. Our General Public Licenses are designed to make sure that you |
|
23 |
have the freedom to distribute copies of free software (and charge for |
|
24 |
this service if you wish), that you receive source code or can get it |
|
25 |
if you want it, that you can change the software or use pieces of it |
|
26 |
in new free programs; and that you know you can do these things. |
|
27 |
|
|
28 |
To protect your rights, we need to make restrictions that forbid |
|
29 |
anyone to deny you these rights or to ask you to surrender the rights. |
|
30 |
These restrictions translate to certain responsibilities for you if you |
|
31 |
distribute copies of the software, or if you modify it. |
|
32 |
|
|
33 |
For example, if you distribute copies of such a program, whether |
|
34 |
gratis or for a fee, you must give the recipients all the rights that |
|
35 |
you have. You must make sure that they, too, receive or can get the |
|
36 |
source code. And you must show them these terms so they know their |
|
37 |
rights. |
|
38 |
|
|
39 |
We protect your rights with two steps: (1) copyright the software, and |
|
40 |
(2) offer you this license which gives you legal permission to copy, |
|
41 |
distribute and/or modify the software. |
|
42 |
|
|
43 |
Also, for each author's protection and ours, we want to make certain |
|
44 |
that everyone understands that there is no warranty for this free |
|
45 |
software. If the software is modified by someone else and passed on, we |
|
46 |
want its recipients to know that what they have is not the original, so |
|
47 |
that any problems introduced by others will not reflect on the original |
|
48 |
authors' reputations. |
|
49 |
|
|
50 |
Finally, any free program is threatened constantly by software |
|
51 |
patents. We wish to avoid the danger that redistributors of a free |
|
52 |
program will individually obtain patent licenses, in effect making the |
|
53 |
program proprietary. To prevent this, we have made it clear that any |
|
54 |
patent must be licensed for everyone's free use or not licensed at all. |
|
55 |
|
|
56 |
The precise terms and conditions for copying, distribution and |
|
57 |
modification follow. |
|
58 |
|
|
59 |
GNU GENERAL PUBLIC LICENSE |
|
60 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
61 |
|
|
62 |
0. This License applies to any program or other work which contains |
|
63 |
a notice placed by the copyright holder saying it may be distributed |
|
64 |
under the terms of this General Public License. The "Program", below, |
|
65 |
refers to any such program or work, and a "work based on the Program" |
|
66 |
means either the Program or any derivative work under copyright law: |
|
67 |
that is to say, a work containing the Program or a portion of it, |
|
68 |
either verbatim or with modifications and/or translated into another |
|
69 |
language. (Hereinafter, translation is included without limitation in |
|
70 |
the term "modification".) Each licensee is addressed as "you". |
|
71 |
|
|
72 |
Activities other than copying, distribution and modification are not |
|
73 |
covered by this License; they are outside its scope. The act of |
|
74 |
running the Program is not restricted, and the output from the Program |
|
75 |
is covered only if its contents constitute a work based on the |
|
76 |
Program (independent of having been made by running the Program). |
|
77 |
Whether that is true depends on what the Program does. |
|
78 |
|
|
79 |
1. You may copy and distribute verbatim copies of the Program's |
|
80 |
source code as you receive it, in any medium, provided that you |
|
81 |
conspicuously and appropriately publish on each copy an appropriate |
|
82 |
copyright notice and disclaimer of warranty; keep intact all the |
|
83 |
notices that refer to this License and to the absence of any warranty; |
|
84 |
and give any other recipients of the Program a copy of this License |
|
85 |
along with the Program. |
|
86 |
|
|
87 |
You may charge a fee for the physical act of transferring a copy, and |
|
88 |
you may at your option offer warranty protection in exchange for a fee. |
|
89 |
|
|
90 |
2. You may modify your copy or copies of the Program or any portion |
|
91 |
of it, thus forming a work based on the Program, and copy and |
|
92 |
distribute such modifications or work under the terms of Section 1 |
|
93 |
above, provided that you also meet all of these conditions: |
|
94 |
|
|
95 |
a) You must cause the modified files to carry prominent notices |
|
96 |
stating that you changed the files and the date of any change. |
|
97 |
|
|
98 |
b) You must cause any work that you distribute or publish, that in |
|
99 |
whole or in part contains or is derived from the Program or any |
|
100 |
part thereof, to be licensed as a whole at no charge to all third |
|
101 |
parties under the terms of this License. |
|
102 |
|
|
103 |
c) If the modified program normally reads commands interactively |
|
104 |
when run, you must cause it, when started running for such |
|
105 |
interactive use in the most ordinary way, to print or display an |
|
106 |
announcement including an appropriate copyright notice and a |
|
107 |
notice that there is no warranty (or else, saying that you provide |
|
108 |
a warranty) and that users may redistribute the program under |
|
109 |
these conditions, and telling the user how to view a copy of this |
|
110 |
License. (Exception: if the Program itself is interactive but |
|
111 |
does not normally print such an announcement, your work based on |
|
112 |
the Program is not required to print an announcement.) |
|
113 |
|
|
114 |
These requirements apply to the modified work as a whole. If |
|
115 |
identifiable sections of that work are not derived from the Program, |
|
116 |
and can be reasonably considered independent and separate works in |
|
117 |
themselves, then this License, and its terms, do not apply to those |
|
118 |
sections when you distribute them as separate works. But when you |
|
119 |
distribute the same sections as part of a whole which is a work based |
|
120 |
on the Program, the distribution of the whole must be on the terms of |
|
121 |
this License, whose permissions for other licensees extend to the |
|
122 |
entire whole, and thus to each and every part regardless of who wrote it. |
|
123 |
|
|
124 |
Thus, it is not the intent of this section to claim rights or contest |
|
125 |
your rights to work written entirely by you; rather, the intent is to |
|
126 |
exercise the right to control the distribution of derivative or |
|
127 |
collective works based on the Program. |
|
128 |
|
|
129 |
In addition, mere aggregation of another work not based on the Program |
|
130 |
with the Program (or with a work based on the Program) on a volume of |
|
131 |
a storage or distribution medium does not bring the other work under |
|
132 |
the scope of this License. |
|
133 |
|
|
134 |
3. You may copy and distribute the Program (or a work based on it, |
|
135 |
under Section 2) in object code or executable form under the terms of |
|
136 |
Sections 1 and 2 above provided that you also do one of the following: |
|
137 |
|
|
138 |
a) Accompany it with the complete corresponding machine-readable |
|
139 |
source code, which must be distributed under the terms of Sections |
|
140 |
1 and 2 above on a medium customarily used for software interchange; or, |
|
141 |
|
|
142 |
b) Accompany it with a written offer, valid for at least three |
|
143 |
years, to give any third party, for a charge no more than your |
|
144 |
cost of physically performing source distribution, a complete |
|
145 |
machine-readable copy of the corresponding source code, to be |
|
146 |
distributed under the terms of Sections 1 and 2 above on a medium |
|
147 |
customarily used for software interchange; or, |
|
148 |
|
|
149 |
c) Accompany it with the information you received as to the offer |
|
150 |
to distribute corresponding source code. (This alternative is |
|
151 |
allowed only for noncommercial distribution and only if you |
|
152 |
received the program in object code or executable form with such |
|
153 |
an offer, in accord with Subsection b above.) |
|
154 |
|
|
155 |
The source code for a work means the preferred form of the work for |
|
156 |
making modifications to it. For an executable work, complete source |
|
157 |
code means all the source code for all modules it contains, plus any |
|
158 |
associated interface definition files, plus the scripts used to |
|
159 |
control compilation and installation of the executable. However, as a |
|
160 |
special exception, the source code distributed need not include |
|
161 |
anything that is normally distributed (in either source or binary |
|
162 |
form) with the major components (compiler, kernel, and so on) of the |
|
163 |
operating system on which the executable runs, unless that component |
|
164 |
itself accompanies the executable. |
|
165 |
|
|
166 |
If distribution of executable or object code is made by offering |
|
167 |
access to copy from a designated place, then offering equivalent |
|
168 |
access to copy the source code from the same place counts as |
|
169 |
distribution of the source code, even though third parties are not |
|
170 |
compelled to copy the source along with the object code. |
|
171 |
|
|
172 |
4. You may not copy, modify, sublicense, or distribute the Program |
|
173 |
except as expressly provided under this License. Any attempt |
|
174 |
otherwise to copy, modify, sublicense or distribute the Program is |
|
175 |
void, and will automatically terminate your rights under this License. |
|
176 |
However, parties who have received copies, or rights, from you under |
|
177 |
this License will not have their licenses terminated so long as such |
|
178 |
parties remain in full compliance. |
|
179 |
|
|
180 |
5. You are not required to accept this License, since you have not |
|
181 |
signed it. However, nothing else grants you permission to modify or |
|
182 |
distribute the Program or its derivative works. These actions are |
|
183 |
prohibited by law if you do not accept this License. Therefore, by |
|
184 |
modifying or distributing the Program (or any work based on the |
|
185 |
Program), you indicate your acceptance of this License to do so, and |
|
186 |
all its terms and conditions for copying, distributing or modifying |
|
187 |
the Program or works based on it. |
|
188 |
|
|
189 |
6. Each time you redistribute the Program (or any work based on the |
|
190 |
Program), the recipient automatically receives a license from the |
|
191 |
original licensor to copy, distribute or modify the Program subject to |
|
192 |
these terms and conditions. You may not impose any further |
|
193 |
restrictions on the recipients' exercise of the rights granted herein. |
|
194 |
You are not responsible for enforcing compliance by third parties to |
|
195 |
this License. |
|
196 |
|
|
197 |
7. If, as a consequence of a court judgment or allegation of patent |
|
198 |
infringement or for any other reason (not limited to patent issues), |
|
199 |
conditions are imposed on you (whether by court order, agreement or |
|
200 |
otherwise) that contradict the conditions of this License, they do not |
|
201 |
excuse you from the conditions of this License. If you cannot |
|
202 |
distribute so as to satisfy simultaneously your obligations under this |
|
203 |
License and any other pertinent obligations, then as a consequence you |
|
204 |
may not distribute the Program at all. For example, if a patent |
|
205 |
license would not permit royalty-free redistribution of the Program by |
|
206 |
all those who receive copies directly or indirectly through you, then |
|
207 |
the only way you could satisfy both it and this License would be to |
|
208 |
refrain entirely from distribution of the Program. |
|
209 |
|
|
210 |
If any portion of this section is held invalid or unenforceable under |
|
211 |
any particular circumstance, the balance of the section is intended to |
|
212 |
apply and the section as a whole is intended to apply in other |
|
213 |
circumstances. |
|
214 |
|
|
215 |
It is not the purpose of this section to induce you to infringe any |
|
216 |
patents or other property right claims or to contest validity of any |
|
217 |
such claims; this section has the sole purpose of protecting the |
|
218 |
integrity of the free software distribution system, which is |
|
219 |
implemented by public license practices. Many people have made |
|
220 |
generous contributions to the wide range of software distributed |
|
221 |
through that system in reliance on consistent application of that |
|
222 |
system; it is up to the author/donor to decide if he or she is willing |
|
223 |
to distribute software through any other system and a licensee cannot |
|
224 |
impose that choice. |
|
225 |
|
|
226 |
This section is intended to make thoroughly clear what is believed to |
|
227 |
be a consequence of the rest of this License. |
|
228 |
|
|
229 |
8. If the distribution and/or use of the Program is restricted in |
|
230 |
certain countries either by patents or by copyrighted interfaces, the |
|
231 |
original copyright holder who places the Program under this License |
|
232 |
may add an explicit geographical distribution limitation excluding |
|
233 |
those countries, so that distribution is permitted only in or among |
|
234 |
countries not thus excluded. In such case, this License incorporates |
|
235 |
the limitation as if written in the body of this License. |
|
236 |
|
|
237 |
9. The Free Software Foundation may publish revised and/or new versions |
|
238 |
of the General Public License from time to time. Such new versions will |
|
239 |
be similar in spirit to the present version, but may differ in detail to |
|
240 |
address new problems or concerns. |
|
241 |
|
|
242 |
Each version is given a distinguishing version number. If the Program |
|
243 |
specifies a version number of this License which applies to it and "any |
|
244 |
later version", you have the option of following the terms and conditions |
|
245 |
either of that version or of any later version published by the Free |
|
246 |
Software Foundation. If the Program does not specify a version number of |
|
247 |
this License, you may choose any version ever published by the Free Software |
|
248 |
Foundation. |
|
249 |
|
|
250 |
10. If you wish to incorporate parts of the Program into other free |
|
251 |
programs whose distribution conditions are different, write to the author |
|
252 |
to ask for permission. For software which is copyrighted by the Free |
|
253 |
Software Foundation, write to the Free Software Foundation; we sometimes |
|
254 |
make exceptions for this. Our decision will be guided by the two goals |
|
255 |
of preserving the free status of all derivatives of our free software and |
|
256 |
of promoting the sharing and reuse of software generally. |
|
257 |
|
|
258 |
NO WARRANTY |
|
259 |
|
|
260 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
|
261 |
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
|
262 |
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
|
263 |
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
|
264 |
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
265 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
|
266 |
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
267 |
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
|
268 |
REPAIR OR CORRECTION. |
|
269 |
|
|
270 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
271 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
272 |
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
|
273 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
|
274 |
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
|
275 |
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
|
276 |
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
|
277 |
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
|
278 |
POSSIBILITY OF SUCH DAMAGES. |
|
279 |
|
|
280 |
END OF TERMS AND CONDITIONS |
|
281 |
|
|
282 |
How to Apply These Terms to Your New Programs |
|
283 |
|
|
284 |
If you develop a new program, and you want it to be of the greatest |
|
285 |
possible use to the public, the best way to achieve this is to make it |
|
286 |
free software which everyone can redistribute and change under these terms. |
|
287 |
|
|
288 |
To do so, attach the following notices to the program. It is safest |
|
289 |
to attach them to the start of each source file to most effectively |
|
290 |
convey the exclusion of warranty; and each file should have at least |
|
291 |
the "copyright" line and a pointer to where the full notice is found. |
|
292 |
|
|
293 |
<one line to give the program's name and a brief idea of what it does.> |
|
294 |
Copyright (C) <year> <name of author> |
|
295 |
|
|
296 |
This program is free software; you can redistribute it and/or modify |
|
297 |
it under the terms of the GNU General Public License as published by |
|
298 |
the Free Software Foundation; either version 2 of the License, or |
|
299 |
(at your option) any later version. |
|
300 |
|
|
301 |
This program is distributed in the hope that it will be useful, |
|
302 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
303 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
304 |
GNU General Public License for more details. |
|
305 |
|
|
306 |
You should have received a copy of the GNU General Public License |
|
307 |
along with this program; if not, write to the Free Software |
|
308 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
309 |
|
|
310 |
|
|
311 |
Also add information on how to contact you by electronic and paper mail. |
|
312 |
|
|
313 |
If the program is interactive, make it output a short notice like this |
|
314 |
when it starts in an interactive mode: |
|
315 |
|
|
316 |
Gnomovision version 69, Copyright (C) year name of author |
|
317 |
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
|
318 |
This is free software, and you are welcome to redistribute it |
|
319 |
under certain conditions; type `show c' for details. |
|
320 |
|
|
321 |
The hypothetical commands `show w' and `show c' should show the appropriate |
|
322 |
parts of the General Public License. Of course, the commands you use may |
|
323 |
be called something other than `show w' and `show c'; they could even be |
|
324 |
mouse-clicks or menu items--whatever suits your program. |
|
325 |
|
|
326 |
You should also get your employer (if you work as a programmer) or your |
|
327 |
school, if any, to sign a "copyright disclaimer" for the program, if |
|
328 |
necessary. Here is a sample; alter the names: |
|
329 |
|
|
330 |
Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
|
331 |
`Gnomovision' (which makes passes at compilers) written by James Hacker. |
|
332 |
|
|
333 |
<signature of Ty Coon>, 1 April 1989 |
|
334 |
Ty Coon, President of Vice |
|
335 |
|
|
336 |
This General Public License does not permit incorporating your program into |
|
337 |
proprietary programs. If your program is a subroutine library, you may |
|
338 |
consider it more useful to permit linking proprietary applications with the |
|
339 |
library. If this is what you want to do, use the GNU Library General |
|
340 |
Public License instead of this License. |
|
341 | 0 |
branches/2.6.x/wb/media/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
header('Location: ../'); |
|
4 |
|
|
5 |
?> |
|
6 | 0 |
branches/2.6.x/wb/config.php | ||
---|---|---|
1 |
<?php ?> |
|
2 | 0 |
branches/2.6.x/wb/modules/htmlarea/uninstall.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 |
// Must include code to stop this file being access directly |
|
27 |
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } |
|
28 |
|
|
29 |
// Delete the editor directory |
|
30 |
rm_full_dir(WB_PATH.'/modules/htmlarea/htmlarea'); |
|
31 |
|
|
32 |
?> |
|
33 | 0 |
branches/2.6.x/wb/modules/htmlarea/htmlarea/index.html | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN"> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<title>HTMLArea -- the free, customizable online editor</title> |
|
5 |
|
|
6 |
<style type="text/css"> |
|
7 |
html, body { font-family: georgia,"times new roman",serif; background-color: #fff; color: #000; } |
|
8 |
.label { text-align: right; padding-right: 0.3em; } |
|
9 |
.bline { border-bottom: 1px solid #aaa; } |
|
10 |
</style> |
|
11 |
</head> |
|
12 |
|
|
13 |
<body> |
|
14 |
<div style="float: right; border: 1px solid #aaa; background-color: #eee; padding: 3px; margin-left: 10px; margin-bottom: 10px;"> |
|
15 |
<table cellspacing="0" cellpadding="0" border="0"> |
|
16 |
<tr> |
|
17 |
<td class="label">Version:</td><td>3.0</td> |
|
18 |
</tr> |
|
19 |
<tr> |
|
20 |
<td class="label">Release:</td><td>rc1 (<a href="release-notes.html">release notes</a>)</td> |
|
21 |
</tr> |
|
22 |
<tr> |
|
23 |
<td class="label bline">Compiled at:</td><td class="bline">Mar 1, 2004 [19:37] GMT</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<td class="label">SourceForge page:</td><td><a href="http://sf.net/projects/itools-htmlarea/">http://sf.net/projects/itools-htmlarea/</a></td> |
|
27 |
</table> |
|
28 |
</div> |
|
29 |
<h1>HTMLArea -- the free<br/>customizable online editor</h1> |
|
30 |
|
|
31 |
<p> |
|
32 |
HTMLArea is a free, customizable online editor. It works inside your |
|
33 |
browser. It uses a non-standard feature implemented in Internet |
|
34 |
Explorer 5.5 or better for Windows and Mozilla 1.3 or better (any |
|
35 |
platform), therefore it will only work in one of these browsers. |
|
36 |
</p> |
|
37 |
|
|
38 |
<p> |
|
39 |
HTMLArea is copyright <a |
|
40 |
href="http://interactivetools.com">InteractiveTools.com</a> and <a |
|
41 |
href="http://dynarch.com">Dynarch.com</a> and it is |
|
42 |
released under a BSD-style license. HTMLArea is created and developed |
|
43 |
upto version 2.03 by InteractiveTools.com. Version 3.0 developed by |
|
44 |
<a href="http://dynarch.com/mishoo/">Mihai Bazon</a> for |
|
45 |
InteractiveTools. It contains code sponsored by third-party companies as well. |
|
46 |
Please see our About Box for details about who sponsored what plugins. |
|
47 |
</p> |
|
48 |
|
|
49 |
<h2>Online demos</h2> |
|
50 |
|
|
51 |
<ul> |
|
52 |
|
|
53 |
<li><a href="examples/core.html">HTMLArea standard</a> -- contains the core |
|
54 |
editor.</li> |
|
55 |
|
|
56 |
<li><a href="examples/table-operations.html">HTMLArea + tables</a> -- |
|
57 |
loads the <tt>TableOperations</tt> plugin which provides some extra |
|
58 |
editing features for tables.</li> |
|
59 |
|
|
60 |
<li><a href="examples/spell-checker.html">HTMLArea + spell checher</a> |
|
61 |
-- loads the <tt>SpellChecker</tt> plugin which provides what its |
|
62 |
name says: a spell checker. This one requires additional support on |
|
63 |
the server-side.</li> |
|
64 |
|
|
65 |
<li><a href="examples/full-page.html">HTMLArea Full HTML Editor</a> -- |
|
66 |
loads the <tt>FullPage</tt> plugin which allows you to edit a full |
|
67 |
HTML page, including <title>, <!DOCTYPE...> and some |
|
68 |
other options.</li> |
|
69 |
|
|
70 |
<li><a href="examples/context-menu.html">HTMLArea with Context |
|
71 |
Menu</a> -- this plugin provides a nice and useful context menu.</li> |
|
72 |
|
|
73 |
<li><a href="examples/fully-loaded.html">HTMLArea fully loaded</a> -- |
|
74 |
all of the above. ;-)</li> |
|
75 |
|
|
76 |
</ul> |
|
77 |
|
|
78 |
<h2>Installation</h2> |
|
79 |
|
|
80 |
<p> |
|
81 |
Installation is (or should be) easy. You need to unpack the ZIP file |
|
82 |
in a directory accessible through your webserver. Supposing you |
|
83 |
unpack in your <tt>DocumentRoot</tt> and your <tt>DocumentRoot</tt> is |
|
84 |
<tt>/var/www/html</tt> as in a standard RedHat installation, you need |
|
85 |
to acomplish the following steps: (the example is for a Unix-like |
|
86 |
operating system) |
|
87 |
</p> |
|
88 |
|
|
89 |
<pre style="margin-left: 2em" |
|
90 |
> |
|
91 |
cd /var/www/html |
|
92 |
unzip /path/to/archive/HTMLArea-3.0-rc1.zip |
|
93 |
mv HTMLArea-3.0-rc1 htmlarea |
|
94 |
find htmlarea/ -type f -exec chmod 644 {} \; |
|
95 |
find htmlarea/ -type d -exec chmod 755 {} \; |
|
96 |
find htmlarea/ -name "*.cgi" -exec chmod 755 {} \;</pre> |
|
97 |
|
|
98 |
<p> |
|
99 |
<strong>Notes.</strong> You may chose to symlink "htmlarea" to "HTMLArea-3.0-rc1", in which case your server needs to be configured to |
|
100 |
"<tt>FollowSymLinks</tt>". You need to make sure that *.cgi files are |
|
101 |
interpreted as CGI scripts. If you want to use the SpellChecker |
|
102 |
plugin you need to have a recent version of Perl installed (I |
|
103 |
recommend 5.8.0) on the server, and the module Text::Aspell, available |
|
104 |
from CPAN. More info in "<a |
|
105 |
href="plugins/SpellChecker/readme-tech.html">plugins/SpellChecker/readme-tech.html</a>". |
|
106 |
</p> |
|
107 |
|
|
108 |
<p>About how to setup your pages to use the editor, please read the |
|
109 |
[outdated yet generally valid] <a |
|
110 |
href="reference.html">documentation</a>.</p> |
|
111 |
|
|
112 |
<h2>Status and links</h2> |
|
113 |
|
|
114 |
<p>HTMLArea has reached version 3.0. As of this version, it |
|
115 |
supports:</p> |
|
116 |
|
|
117 |
<ul> |
|
118 |
|
|
119 |
<li>Customizable toolbar</li> |
|
120 |
|
|
121 |
<li>Easy internationalization</li> |
|
122 |
|
|
123 |
<li>Plugin-based infrastructure</li> |
|
124 |
|
|
125 |
<li>Delivers W3-compliant HTML (with few exceptions)</li> |
|
126 |
|
|
127 |
<li>Has a subset of Microsoft Word's keyboard shortcuts</li> |
|
128 |
|
|
129 |
<li>Full-screen editor</li> |
|
130 |
|
|
131 |
<li>Advanced table operations (by external plugin |
|
132 |
"TableOperations")</li> |
|
133 |
|
|
134 |
<li>Spell checker (by external plugin "SpellChecker")</li> |
|
135 |
|
|
136 |
<li>probably more... ;-)</li> |
|
137 |
|
|
138 |
</ul> |
|
139 |
|
|
140 |
<p>We have a <a |
|
141 |
href="http://sourceforge.net/projects/itools-htmlarea/">project page</a> |
|
142 |
at <a href="http://sourceforge.net">SourceForge.net</a>. There you can |
|
143 |
also find out <a href="http://sourceforge.net/cvs/?group_id=69750">how |
|
144 |
to retrieve the code from CVS</a>, or you can <a |
|
145 |
href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/itools-htmlarea">browse |
|
146 |
the CVS online</a>. We also have a <a |
|
147 |
href="http://sourceforge.net/tracker/?atid=525656&group_id=69750&func=browse">bug |
|
148 |
system</a>, a <a |
|
149 |
href="http://sourceforge.net/tracker/?atid=525658&group_id=69750&func=browse">patch |
|
150 |
tracking system</a> and a <a |
|
151 |
href="http://sourceforge.net/tracker/?atid=525659&group_id=69750&func=browse">feature |
|
152 |
request page</a>.</p> |
|
153 |
|
|
154 |
<p>We invite you to say everything you want about HTMLArea <a |
|
155 |
href="http://www.interactivetools.com/forum/gforum.cgi?forum=14;">on the |
|
156 |
forums</a> at InteractiveTools.com. There you should also find the |
|
157 |
latest news.</p> |
|
158 |
|
|
159 |
<p>Sometimes I post news about the latest developments on <a |
|
160 |
href="http://dynarch.com/mishoo/">my personal homepage</a>.</p> |
|
161 |
|
|
162 |
<h2>"It doesn't work, what's wrong?"</h2> |
|
163 |
|
|
164 |
<p>If it doesn't work, you have several options:</p> |
|
165 |
|
|
166 |
<ul> |
|
167 |
|
|
168 |
<li>Post a message to the forum. Describe your problem in as much |
|
169 |
detail as possible. Include errors you might find in the JavaScript |
|
170 |
console (if you are a Mozilla user), or errors displayed by IE (though |
|
171 |
they're most of the times useless).</li> |
|
172 |
|
|
173 |
<li>If you're positive that you discovered a bug in HTMLArea then feel |
|
174 |
free to fill a bug report in our bug system. If you have the time you |
|
175 |
should check to see if a similar bug was reported or not; it might be |
|
176 |
fixed already in the CVS ;-) If you're positive that a similar bug was |
|
177 |
not yet reported, do fill a bug report and please include as much |
|
178 |
detail as possible, such as your browser, OS, errors from JavaScript |
|
179 |
console, etc.</li> |
|
180 |
|
|
181 |
<li>If you want a new feature to be implemented, post it on the |
|
182 |
features request and someone will hopefully take care of it.</li> |
|
183 |
|
|
184 |
</ul> |
|
185 |
|
|
186 |
<p>You can <a href="mailto:mishoo@infoiasi.ro">contact me directly</a> |
|
187 |
<em>only</em> if you want to pay me for implementing custom features to |
|
188 |
HTMLArea. If you want to sponsor these features (that is, allow them to |
|
189 |
get back into the public HTMLArea distribution) I'll be cheaper. ;-)</p> |
|
190 |
|
|
191 |
<hr /> |
|
192 |
<address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address> |
|
193 |
<!-- Created: Sun Aug 3 14:11:26 EEST 2003 --> |
|
194 |
<!-- hhmts start --> Last modified: Wed Jan 28 11:54:47 EET 2004 <!-- hhmts end --> |
|
195 |
<!-- doc-lang: English --> |
|
196 |
</body> |
|
197 |
</html> |
|
198 |
|
|
199 |
|
branches/2.6.x/wb/modules/htmlarea/htmlarea/reference.html | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN"> |
|
2 |
<html> <head> |
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
4 |
<title>HTMLArea-3.0 Reference</title> |
|
5 |
|
|
6 |
<style type="text/css"> |
|
7 |
@import url(htmlarea.css); |
|
8 |
body { font: 14px verdana,sans-serif; background: #fff; color: #000; } |
|
9 |
h1, h2 { font-family:tahoma,sans-serif; } |
|
10 |
h1 { border-bottom: 2px solid #000; } |
|
11 |
h2 { border-bottom: 1px solid #aaa; } |
|
12 |
h3, h4 { margin-bottom: 0px; font-family: Georgia,serif; font-style: italic; } |
|
13 |
h4 { font-size: 90%; margin-left: 1em; } |
|
14 |
acronym { border-bottom: 1px dotted #063; color: #063; } |
|
15 |
p { margin-left: 2em; margin-top: 0.3em; } |
|
16 |
li p { margin-left: 0px; } |
|
17 |
.abstract { padding: 5px; margin: 0px 10em; font-size: 90%; border: 1px dashed #aaa; background: #eee;} |
|
18 |
li { margin-left: 2em; } |
|
19 |
em { color: #042; } |
|
20 |
a { color: #00f; } |
|
21 |
a:hover { color: #f00; } |
|
22 |
a:active { color: #f80; } |
|
23 |
span.browser { font-weight: bold; color: #864; } |
|
24 |
.fixme { font-size: 20px; font-weight: bold; color: red; background: #fab; |
|
25 |
padding: 5px; text-align: center; } |
|
26 |
.code { |
|
27 |
background: #e4efff; padding: 5px; border: 1px dashed #abc; margin-left: 2em; margin-right: 2em; |
|
28 |
font-family: fixed,"lucidux mono","andale mono","courier new",monospace; |
|
29 |
} |
|
30 |
.note, .warning { font-weight: bold; color: #0a0; font-variant: small-caps; } |
|
31 |
.warning { color: #a00; } |
|
32 |
|
|
33 |
.string { |
|
34 |
color: #06c; |
|
35 |
} /* font-lock-string-face */ |
|
36 |
.comment { |
|
37 |
color: #840; |
|
38 |
} /* font-lock-comment-face */ |
|
39 |
.variable-name { |
|
40 |
color: #000; |
|
41 |
} /* font-lock-variable-name-face */ |
|
42 |
.type { |
|
43 |
color: #008; |
|
44 |
font-weight: bold; |
|
45 |
} /* font-lock-type-face */ |
|
46 |
.reference { |
|
47 |
color: #048; |
|
48 |
} /* font-lock-reference-face */ |
|
49 |
.preprocessor { |
|
50 |
color: #808; |
|
51 |
} /* font-lock-preprocessor-face */ |
|
52 |
.keyword { |
|
53 |
color: #00f; |
|
54 |
font-weight: bold; |
|
55 |
} /* font-lock-keyword-face */ |
|
56 |
.function-name { |
|
57 |
color: #044; |
|
58 |
} /* font-lock-function-name-face */ |
|
59 |
.html-tag { |
|
60 |
font-weight: bold; |
|
61 |
} /* html-tag-face */ |
|
62 |
.html-helper-italic { |
|
63 |
font-style: italic; |
|
64 |
} /* html-helper-italic-face */ |
|
65 |
.html-helper-bold { |
|
66 |
font-weight: bold; |
|
67 |
} /* html-helper-bold-face */ |
|
68 |
|
|
69 |
</style> |
|
70 |
|
|
71 |
<script type="text/javascript"> |
|
72 |
_editor_url = './'; |
|
73 |
_editor_lang = 'en'; |
|
74 |
</script> |
|
75 |
<script type="text/javascript" src="htmlarea.js"></script> |
|
76 |
<script type="text/javascript" src="dialog.js"></script> |
|
77 |
<script tyle="text/javascript" src="lang/en.js"></script> |
|
78 |
|
|
79 |
</head> |
|
80 |
|
|
81 |
<body onload="HTMLArea.replace('TA')"> |
|
82 |
|
|
83 |
|
|
84 |
<h1>HTMLArea-3.0 Documentation</h1> |
|
85 |
|
|
86 |
<div class="abstract" style="color: red; font-weight: bold"> |
|
87 |
|
|
88 |
This documentation contains valid information, but is outdated in the |
|
89 |
terms that it does not covers all the features of HTMLArea. A new |
|
90 |
documentation project will be started, based on LaTeX. |
|
91 |
|
|
92 |
</div> |
|
93 |
|
|
94 |
|
|
95 |
<h2>Introduction</h2> |
|
96 |
|
|
97 |
<h3>What is HTMLArea?</h3> |
|
98 |
|
|
99 |
<p>HTMLArea is a free <acronym title="What You See Is What You Get" |
|
100 |
>WYSIWYG</acronym> editor replacement for <code><textarea></code> |
|
101 |
fields. By adding a few simple lines of JavaScript code to your web page |
|
102 |
you can replace a regular textarea with a rich text editor that lets your |
|
103 |
users do the following:</p> |
|
104 |
|
|
105 |
<ul> |
|
106 |
<li>Format text to be bold, italicized, or underlined.</li> |
|
107 |
<li>Change the face, size, style and color.</li> |
|
108 |
<li>Left, center, or right-justify paragraphs.</li> |
|
109 |
<li>Make bulleted or numbered lists.</li> |
|
110 |
<li>Indent or un-indent paragraphs.</li> |
|
111 |
<li>Insert a horizontal line.</li> |
|
112 |
<li>Insert hyperlinks and images.</li> |
|
113 |
<li>View the raw HTML source of what they're editing.</li> |
|
114 |
<li>and much more...</li> |
|
115 |
</ul> |
|
116 |
|
|
117 |
<p>Some of the interesting features of HTMLArea that set's it apart from |
|
118 |
other web based WYSIWYG editors are as follows:</p> |
|
119 |
|
|
120 |
<ul> |
|
121 |
<li>It's lightweight, fast loading and can transform a regular textarea |
|
122 |
into a rich-text editor with a single line of JavaScript.</li> |
|
123 |
<li>Generates clean, valid HTML.</li> |
|
124 |
<li>It degrades gracefully to older or non-supported browsers |
|
125 |
(they get the original textarea field).</li> |
|
126 |
<li>It's free and can be incorporated into any free or commercial |
|
127 |
program.</li> |
|
128 |
<li>It works with any server-side languages (ASP, PHP, Perl, Java, |
|
129 |
etc).</li> |
|
130 |
<li>It's written in JavaScript and can be easily viewed, modified or |
|
131 |
extended.</li> |
|
132 |
<li>It remembers entered content when a user navigates away and then hits |
|
133 |
"back" in their browser.</li> |
|
134 |
<li>Since it replaces existing textareas it doesn't require a lot of code |
|
135 |
to add it to your pages (just one line).</li> |
|
136 |
<li>Did we mention it was free? ;-)</li> |
|
137 |
</ul> |
|
138 |
|
|
139 |
<h3>Is it really free? What's the catch?</h3> |
|
140 |
|
|
141 |
<p>Yes! It's really free. You can use it, modify it, distribute it with your |
|
142 |
software, or do just about anything you like with it.</p> |
|
143 |
|
|
144 |
<h3>What are the browser requirements?</h3> |
|
145 |
|
|
146 |
<p>HTMLArea requires <span class="browser"><a |
|
147 |
href="http://www.microsoft.com/ie">Internet Explorer</a> >= 5.5</span> |
|
148 |
(Windows only), or <span class="browser"><a |
|
149 |
href="http://mozilla.org">Mozilla</a> >= 1.3-Beta</span> on any platform. |
|
150 |
Any browser based on <a href="http://mozilla.org/newlayout">Gecko</a> will |
|
151 |
also work, provided that Gecko version is at least the one included in |
|
152 |
Mozilla-1.3-Beta (for example, <a |
|
153 |
href="http://galeon.sf.net">Galeon-1.2.8</a>). However, it degrades |
|
154 |
gracefully to other browsers. They will get a regular textarea field |
|
155 |
instead of a WYSIWYG editor.</p> |
|
156 |
|
|
157 |
<h3>Can I see an example of what it looks like?</h3> |
|
158 |
|
|
159 |
<p>Just make sure you're using one of the browsers mentioned above and see |
|
160 |
below.</p> |
|
161 |
|
|
162 |
<form onsubmit="return false;"> |
|
163 |
<textarea id="TA" style="width: 100%; height: 15em;"> |
|
164 |
<p>Here is some sample text in textarea that's been transformed with <font |
|
165 |
color="#0000CC"><b>HTMLArea</b></font>.<br /> |
|
166 |
You can make things <b>bold</b>, <i>italic</i>, <u>underline</u>. You can change the |
|
167 |
<font size="3">size</font> and <b><font color="#0000CC">c</font><font color="#00CC00">o</font><font color="#00CCCC">l</font><font color="#CC0000">o</font><font color="#CC00CC">r</font><font color="#CCCC00">s</font><font color="#CCCCCC">!</font></b> |
|
168 |
And lots more...</p> |
|
169 |
|
|
170 |
<p align="center"><font size="4" color="#ff0000"><b><u>Try HTMLArea |
|
171 |
today!</u></b></font><br /></p> |
|
172 |
</textarea> |
|
173 |
</form> |
|
174 |
|
|
175 |
<h3>Where can I find out more info, download the latest version and talk to |
|
176 |
other HTMLArea users?</h3> |
|
177 |
|
|
178 |
<p>You can find out more about HTMLArea and download the latest version on |
|
179 |
the <a href="http://dynarch.com/htmlarea/">HTMLArea |
|
180 |
homepage</a> and you can talk to other HTMLArea users and post any comments |
|
181 |
or suggestions you have in the <a |
|
182 |
href="http://www.interactivetools.com/iforum/Open_Source_C3/htmlArea_v3.0_-_Alpha_Release_F14/" |
|
183 |
>HTMLArea forum</a>.</p> |
|
184 |
|
|
185 |
<h2>Keyboard shortcuts</h2> |
|
186 |
|
|
187 |
<p>The editor provides the following key combinations:</p> |
|
188 |
|
|
189 |
<ul> |
|
190 |
<li>CTRL-A -- select all</li> |
|
191 |
<li>CTRL-B -- bold</li> |
|
192 |
<li>CTRL-I -- italic</li> |
|
193 |
<li>CTRL-U -- underline</li> |
|
194 |
<li>CTRL-S -- strikethrough</li> |
|
195 |
<li>CTRL-L -- justify left</li> |
|
196 |
<li>CTRL-E -- justify center</li> |
|
197 |
<li>CTRL-R -- justify right</li> |
|
198 |
<li>CTRL-J -- justify full</li> |
|
199 |
<li>CTRL-1 .. CTRL-6 -- headings (<h1> .. <h6>)</li> |
|
200 |
<li>CTRL-0 (zero) -- clean content pasted from Word</li> |
|
201 |
</ul> |
|
202 |
|
|
203 |
<h2>Installation</h2> |
|
204 |
|
|
205 |
<h3>How do I add HTMLArea to my web page?</h3> |
|
206 |
|
|
207 |
<p>It's easy. First you need to upload HTMLArea files to your website. |
|
208 |
Just follow these steps.</p> |
|
209 |
|
|
210 |
<ol> |
|
211 |
<li>Download the latest version from the <a |
|
212 |
href="http://www.interactivetools.com/products/htmlarea/">htmlArea |
|
213 |
homepage</a>.</li> |
|
214 |
<li>Unzip the files onto your local computer (making sure to maintain the |
|
215 |
directory structure contained in the zip).</li> |
|
216 |
<li>Create a new folder on your website called /htmlarea/ (make sure it's |
|
217 |
NOT inside the cgi-bin).</li> |
|
218 |
<li>Transfer all the HTMLArea files from your local computer into the |
|
219 |
/htmlarea/ folder on your website.</li> |
|
220 |
<li>Open the example page /htmlarea/examples/core.html with your browser to make |
|
221 |
sure everything works.</li> |
|
222 |
</ol> |
|
223 |
|
|
224 |
<p>Once htmlArea is on your website all you need to do is add some |
|
225 |
JavaScript to any pages that you want to add WYSIWYG editors to. Here's how |
|
226 |
to do that.</p> |
|
227 |
|
|
228 |
<ol> |
|
229 |
|
|
230 |
<li>Define some global variables. "_editor_url" has to be the absolute |
|
231 |
URL where HTMLArea resides within your |
|
232 |
website; as we discussed, this would be “/htmlarea/”. "_editor_lang" must |
|
233 |
be the language code in which you want HTMLArea to appear. This defaults |
|
234 |
to "en" (English); for a list of supported languages, please look into |
|
235 |
the "lang" subdirectory in the distribution. |
|
236 |
<pre class="code" |
|
237 |
><span class="function-name"><</span><span class="html-tag">script</span> <span class="variable-name">type=</span><span class="string">"text/javascript"</span><span class="function-name">></span> |
|
238 |
_editor_url = <span class="string">"/htmlarea/"</span>; |
|
239 |
_editor_lang = <span class="string">"en"</span>; |
|
240 |
<span class="function-name"><</span><span class="html-tag">/script</span><span class="function-name">></span></pre> |
|
241 |
|
|
242 |
<li>Include the "htmlarea.js" script: |
|
243 |
<pre class="code" |
|
244 |
><span class="function-name"><</span><span class="html-tag">script</span> <span class="variable-name">type=</span><span class="string">"text/javascript"</span> <span class="variable-name">src=</span><span class="string">"/htmlarea/htmlarea.js"</span><span class="function-name">></span><span class="paren-face-match"><</span><span class="html-tag">/script</span><span class="paren-face-match">></span></pre> |
|
245 |
</li> |
|
246 |
|
|
247 |
<li><p>If you want to change all your <textarea>-s into |
|
248 |
HTMLArea-s then you can use the simplest way to create HTMLArea:</p> |
|
249 |
<pre class="code" |
|
250 |
><span class="function-name"><</span><span class="html-tag">script</span> <span class="variable-name">type=</span><span class="string">"text/javascript"</span> <span class="variable-name">defer=</span><span class="string">"1"</span><span class="function-name">></span> |
|
251 |
HTMLArea.replaceAll<span class="function-name">()</span>; |
|
252 |
<span class="paren-face-match"><</span><span class="html-tag">/script</span><span class="paren-face-match">></span></pre> |
|
253 |
<p><span class="note">Note:</span> you can also add the |
|
254 |
<code>HTMLArea.replaceAll()</code> code to the <code>onload</code> |
|
255 |
event handler for the <code>body</code> element, if you find it more appropriate.</p> |
|
256 |
|
|
257 |
<p>A different approach, if you have more than one textarea and only want |
|
258 |
to change one of them, is to use <code>HTMLArea.replace("id")</code> -- |
|
259 |
pass the <code>id</code> of your textarea. Do not use the |
|
260 |
<code>name</code> attribute anymore, it's not a standard solution!</p> |
|
261 |
|
|
262 |
</ol> |
|
263 |
|
|
264 |
<p>This section applies to HTMLArea-3.0 release candidate 1 or later; prior |
|
265 |
to this version, one needed to include more files; however, now HTMLArea is |
|
266 |
able to include other files too (such as stylesheet, language definition |
|
267 |
file, etc.) so you only need to define the editor path and load |
|
268 |
"htmlarea.js". Nice, eh? ;-)</p> |
|
269 |
|
|
270 |
<h3>I want to change the editor settings, how do I do that?</h3> |
|
271 |
|
|
272 |
<p>While it's true that all you need is one line of JavaScript to create an |
|
273 |
htmlArea WYSIWYG editor, you can also specify more config settings in the |
|
274 |
code to control how the editor works and looks. Here's an example of some of |
|
275 |
the available settings:</p> |
|
276 |
|
|
277 |
<pre class="code" |
|
278 |
><span class="keyword">var</span> <span class="variable-name">config</span> = <span class="keyword">new</span> HTMLArea.Config(); <span class="comment">// create a new configuration object |
|
279 |
</span> <span class="comment">// having all the default values |
|
280 |
</span>config.width = '<span class="string">90%</span>'; |
|
281 |
config.height = '<span class="string">200px</span>'; |
|
282 |
|
Also available in: Unified diff
Removing 2.6.x branch