diff --git a/docs/create.sql b/docs/create.sql
index d84bf7cb0..c5059171a 100644
--- a/docs/create.sql
+++ b/docs/create.sql
@@ -454,7 +454,6 @@ CREATE TABLE page (
#
INSERT INTO page VALUES (1,0,'Home',3,3,1,1,1,1,0,1,0,1,'','home');
-INSERT INTO page VALUES (5,3,'Reserved',1,1,1,1,NULL,1,0,1,0,1,NULL,'page_2.1');
INSERT INTO page VALUES (6,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL);
INSERT INTO page VALUES (7,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL);
INSERT INTO page VALUES (8,0,'Reserved',0,0,1,1,NULL,1,0,1,0,1,NULL,NULL);
@@ -1186,6 +1185,7 @@ CREATE TABLE submission (
image varchar(255) default NULL,
attachment varchar(255) default NULL,
status varchar(30) default NULL,
+ convertCarriageReturns int(11) NOT NULL default '0',
PRIMARY KEY (submissionId)
) TYPE=MyISAM;
diff --git a/docs/legal.txt b/docs/legal.txt
index 312bcecf3..9f2fcbcb9 100644
--- a/docs/legal.txt
+++ b/docs/legal.txt
@@ -2,11 +2,34 @@ WebGUI is Copyright 2001 Plain Black Software. All rights reserved.
WebGUI is a trademark of Plain Black Software.
-WebGUI may be distributed under the GNU General Public license. A copy of that license is distributed with this code in a file called "license.txt". If you are unable to retrieve that license for any reason, you may find a copy of it here: http://www.opensource.org/licenses/gpl-license.html
+WebGUI is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
-For more information about Plain Black Software or WebGUI, please visit http://www.plainblack.com or email info@plainblack.com.
+WebGUI is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details. However, support may be
+purchased from Plain Black Software at
+http://www.plainblack.com/index.pl/support_programs
-It is illegal to remove or tamper with the notices at the top of each file, or this file, or the license file. The notice at the top of each file looks like the following:
+You should have received a copy of the GNU General Public License
+along with this program in a file called "license.txt". If not you can
+download it at http://www.opensource.org/licenses/gpl-license.html or
+write to:
+
+ Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330
+ Boston, MA 02111-1307
+ USA
+
+For more information about Plain Black Software or WebGUI, please visit
+http://www.plainblack.com or email info@plainblack.com.
+
+It is illegal to remove or tamper with the notices at the top of each
+file, or this file, or the license file. The notice at the top of each
+file looks like the following:
#-------------------------------------------------------------------
# WebGUI is Copyright 2001 Plain Black Software.
diff --git a/docs/previousVersion.sql b/docs/previousVersion.sql
index 989860b2f..d84bf7cb0 100644
--- a/docs/previousVersion.sql
+++ b/docs/previousVersion.sql
@@ -106,6 +106,7 @@ CREATE TABLE SQLReport (
DSN varchar(255) default NULL,
username varchar(255) default NULL,
identifier varchar(255) default NULL,
+ convertCarriageReturns int(11) NOT NULL default '0',
PRIMARY KEY (widgetId)
) TYPE=MyISAM;
@@ -330,20 +331,34 @@ INSERT INTO help VALUES (14,'US English','Delete','Widget','This function perman
INSERT INTO help VALUES (15,'US English','Delete','Group','As the function suggests you\'ll be deleting a group and removing all users from the group. Be careful not to orphan users from pages they should have access to by deleting a group that is in use.\r\n\r\nAs with any delete operation, you are prompted to be sure you wish to proceed with the delete. If you answer yes, the delete will proceed and there is no recovery possible. If you answer no you\'ll be returned to the prior screen.','0');
INSERT INTO help VALUES (16,'US English','Add','Style','Styles are WebGUI macro enabled. See Using Macros for more information.\r\n\r\nStyle Name\r\nA unique name to describe what this style looks like at a glance. The name has no effect on the actual look of the style.\r\n\r\nHeader\r\nThe header is the start of the look of your site. It is helpful to look at your design and cut it into three pieces. The top and left of your design is the header. The center part is the content, and the right and bottom is the footer. Cut the HTML from your header and paste it in the space provided.\r\n\r\nIf you are in need of assistance for creating a look for your site, or if you need help cutting apart your design, Plain Black Software provides support services for a small fee.\r\n\r\nMany people will add WebGUI macros to their header for automated navigation, and other features.\r\n\r\nFooter\r\nThe footer is the end of the look for your site. It is the right and bottom portion of your design. You may also place WebGUI macros in your footer.\r\n\r\nStyle Sheet\r\nPlace your style sheet entries here. Style sheets are used to control colors, sizes, and other properties of the elements on your site. See Using Style Sheets for more information.\r\n\r\nAdvanced Users: for greater performance create your stylesheet on the file system (call it something like webgui.css) and add an entry like this to this area: \r\n<link href=\"/webgui.css\" rel=\"stylesheet\" rev=\"stylesheet\" type=\"text/css\">','18,19');
INSERT INTO help VALUES (17,'US English','Add','Group','See Manage Group for a description of grouping functions and the default groups.\r\n\r\nGroup Name\r\nA name for the group. It is best if the name is descriptive so you know what it is at a glance.\r\n\r\nDescription\r\nA longer description of the group so that other admins and content managers (or you if you forget) will know what the purpose of this group is.','0');
-INSERT INTO help VALUES (22,'US English','Edit','SQL Report','Title\r\nSee Add SQL Report for details.\r\n\r\nDisplay Title?\r\nSee Add SQL Report for details.\r\n\r\nProcess Macros\r\nSee Add SQL Report for details.\r\n\r\nDescription\r\nSee Add SQL Report for details.\r\n\r\nTemplate\r\nSee Add SQL Report for details.\r\n\r\nQuery\r\nSee Add SQL Report for details.\r\n\r\nDSN\r\nSee Add SQL Report for details.\r\n\r\nDatabase User\r\nSee Add SQL Report for details.\r\n\r\nDatabase Password\r\nSee Add SQL Report for details.\r\n','19,14,21');
+INSERT INTO help VALUES (22,'US English','Edit','SQL Report','Title\r\nSee Add SQL Report for details.\r\n\r\nDisplay Title?\r\nSee Add SQL Report for details.\r\n\r\nProcess Macros\r\nSee Add SQL Report for details.\r\n\r\nDescription\r\nSee Add SQL Report for details.\r\n\r\nTemplate\r\nSee Add SQL Report for details.\r\n\r\nQuery\r\nSee Add SQL Report for details.\r\n\r\nDSN\r\nSee Add SQL Report for details.\r\n\r\nDatabase User\r\nSee Add SQL Report for details.\r\n\r\nDatabase Password\r\nSee Add SQL Report for details.\r\n\r\nConvert carriage returns?\r\nSee Add SQL Report for details.\r\n\r\n','19,14,21');
INSERT INTO help VALUES (18,'US English','Using','Style Sheets','Cascading Style Sheets (CSS) are a great way to manage the look and feel of any web site. They are used extensively in WebGUI.\r\n\r\nIf you are unfamiliar with how to use CSS, Plain Black Software provides training classes on XHTML and CSS. Alternatively, Bradsoft makes an excellent CSS editor called Top Style.\r\n\r\nThe following is a list of classes used to control the look of WebGUI:\r\n\r\nA\r\nThe links throughout the style.\r\n\r\nBODY\r\nThe default setup of all pages within a style.\r\n\r\nH1\r\nThe headers on every page.\r\n\r\n.accountOptions\r\nThe links that appear under the login and account update forms.\r\n\r\n.adminBar \r\nThe bar that appears at the top of the page when you\'re in admin mode.\r\n\r\n.boardMenu \r\nThe menu on the message boards.\r\n\r\n.boardMessage \r\nThe full message text.\r\n\r\n.boardTitle \r\nThe title of the message board.\r\n\r\n.content\r\nThe main content area on all pages of the style.\r\n\r\n.crumbTrail \r\nThe crumb trail (if you\'re using that macro).\r\n\r\n.eventTitle \r\nThe title of an individual event.\r\n\r\n.faqQuestion\r\nAn F.A.Q. question. To distinguish it from an answer.\r\n\r\n.formDescription \r\nThe tags on all forms next to the form elements. \r\n\r\n.formSubtext \r\nThe tags below some form elements.\r\n\r\n.highlight \r\nDenotes a highlighted item, such as which message you are viewing within a list.\r\n\r\n.horizontalMenu \r\nThe horizontal menu (if you use a horizontal menu macro).\r\n\r\n.loginBox\r\nThe login box macro.\r\n\r\n.pagination \r\nThe Previous and Next links on pages with pagination.\r\n\r\n.pollAnswer \r\nAn answer on a poll.\r\n\r\n.pollColor \r\nThe color of the percentage bar on a poll.\r\n\r\n.pollQuestion \r\nThe question on a poll.\r\n\r\n.tableData \r\nThe data rows on things like message boards and user contributions.\r\n\r\n.tableHeader \r\nThe headings of columns on things like message boards and user contributions.\r\n\r\n.verticalMenu \r\nThe vertical menu (if you use a verticall menu macro).\r\n\r\n','11,16');
-INSERT INTO help VALUES (19,'US English','Using','Macros','WebGUI macros are used to create dynamic content within otherwise static content. For instance, you may wish to show which user is logged in on every page, or you may wish to have a dynamically built menu or crumb trail. \r\n\r\nMacros always begin with a carrot (^) and follow with one other character. The following is a description of all the macros in the WebGUI system.\r\n\r\n^^ - Carrot\r\nSince the carrot symbol is used to start all macros, this macro is in place just in case you really wanted to use a carrot somewhere.\r\n\r\n^/ - System URL\r\nThe URL to the gateway script (including the domain for this site). This is often used within pages so that if your development server is on a domain different than your production server that your URLs will still worked when moved.\r\n\r\n^@ - Username\r\nThe username of the currently logged in user.\r\n\r\n^# - User ID\r\nThe user id of the currently logged in user.\r\n\r\n^* - Random Number\r\nA randomly generated number. This is often used on images (such as banner ads) that you want to ensure do not cache.\r\n\r\n^a - My Account Link\r\nA link to your account information.\r\n\r\n^C - Crumb Trail\r\nA dynamically generated crumb trail to the current page.\r\n\r\n^D - Date\r\nThe current date and time.\r\n\r\n^f - Full Menu (Vertical)\r\nDisplays a complete menu listing for all pages on the site, sort of like a site map.\r\n\r\n^F - 2 Level Menu (Vertical)\r\nDisplays the first two levels of the menuing hierarchy at all times.\r\n\r\n^h - 3 Level Menu (Vertical)\r\nDisplays the first three levels of the menuing hierarchy at all times.\r\n\r\n^H - Home Link\r\nA link to the home page of this site.\r\n\r\n^L - Login\r\nA small login form.\r\n\r\n^M - Current Menu (Vertical)\r\nA vertical menu containing the sub-pages at the current level.\r\n\r\n^m - Current Menu (Horizontal)\r\nA horizontal menu containing the sub-pages at the current level.\r\n\r\n^T - Top Level Menu (Vertical)\r\nA vertical menu containing the main pages of the site (aka the sub-pages from the home page).\r\n\r\n^t - Top Level Menu (Horizontal)\r\nA vertical menu containing the main pages of the site (aka the sub-pages from the home page).\r\n\r\n','11,16,12');
-INSERT INTO help VALUES (20,'US English','Add','SQL Report','SQL Reports are perhaps the most powerful widget in the WebGUI arsenal. They allow a user to query data from any database that they have access to. This is great for getting sales figures from your Accounting database or even summarizing all the message boards on your web site.\r\n\r\nTitle\r\nThe title of this report.\r\n\r\nDisplay Title?\r\nDo you wish to display the title of the report? If so, check the box.\r\n\r\nProcess Macros\r\nDo you wish to process WebGUI Macros on this report? If so, check the box.\r\n\r\nDescription\r\nDescribe the content of this report so your users will better understand what the report is all about.\r\n\r\nTemplate\r\nLayout a template of how this report should look. Usually you\'ll use HTML tables to generate a report. An example is included below.\r\n\r\nThere are 11 special macro characters used in generating SQL Reports. They are ^-, ^0, ^1, ^2, ^3, ^4, ^5, ^6, ^7, ^8, and ^9. These macros will be processed regardless of whether you checked the process macros box above. The ^- macro represents split points in the document where the report will begin and end looping. The numeric macros represent the data fields that will be returned from your query. Note that you may only have 10 fields returned per row in your query.\r\n\r\nSample Template:\r\n<table>\r\n<tr><th>Employee Name</th><th>Employee #</th><th>Vacation Days Remaining</th><th>Monthly Salary</th></tr>\r\n^-\r\n<tr><td>^0</td><td>^1</td><td>^2</td><td>^3</td></tr>\r\n^-\r\n</table>\r\n\r\nQuery\r\nThis is a standard SQL query. If you are unfamiliar with SQL, Plain Black Software provides training courses in SQL and database management.\r\n\r\nDSN\r\nData Source Name is the unique identifier that Perl uses to describe the location of your database. It takes the format of DBI:[driver]:[database name]:[host]. \r\n\r\nExample: DBI:mysql:WebGUI:localhost\r\n\r\nDatabase User\r\nThe username you use to connect to the DSN.\r\n\r\nDatabase Password\r\nThe password you use to connect to the DSN.\r\n','19,14,21');
+INSERT INTO help VALUES (19,'US English','Using','Macros','WebGUI macros are used to create dynamic content within otherwise static content. For instance, you may wish to show which user is logged in on every page, or you may wish to have a dynamically built menu or crumb trail. \r\n\r\nMacros always begin with a carat (^) and follow with one other character. The following is a description of all the macros in the WebGUI system.\r\n\r\n^^ - Carat\r\nSince the carat symbol is used to start all macros, this macro is in place just in case you really wanted to use a carat somewhere.\r\n\r\n^/ - System URL\r\nThe URL to the gateway script (including the domain for this site). This is often used within pages so that if your development server is on a domain different than your production server that your URLs will still worked when moved.\r\n\r\n^@ - Username\r\nThe username of the currently logged in user.\r\n\r\n^# - User ID\r\nThe user id of the currently logged in user.\r\n\r\n^* - Random Number\r\nA randomly generated number. This is often used on images (such as banner ads) that you want to ensure do not cache.\r\n\r\n^a - My Account Link\r\nA link to your account information.\r\n\r\n^C - Crumb Trail\r\nA dynamically generated crumb trail to the current page.\r\n\r\n^D - Date\r\nThe current date and time.\r\n\r\n^f - Full Menu (Vertical)\r\nDisplays a complete menu listing for all pages on the site, sort of like a site map.\r\n\r\n^F - 2 Level Menu (Vertical)\r\nDisplays the first two levels of the menuing hierarchy at all times.\r\n\r\n^h - 3 Level Menu (Vertical)\r\nDisplays the first three levels of the menuing hierarchy at all times.\r\n\r\n^H - Home Link\r\nA link to the home page of this site.\r\n\r\n^L - Login\r\nA small login form.\r\n\r\n^M - Current Menu (Vertical)\r\nA vertical menu containing the sub-pages at the current level.\r\n\r\n^m - Current Menu (Horizontal)\r\nA horizontal menu containing the sub-pages at the current level.\r\n\r\n^P - Previous Menu (Vertical)\r\nA vertical menu containing the sub-pages at the previous level.\r\n\r\n^p - Previous Menu (Horizontal)\r\nA horizontal menu containing the sub-pages at the previous level.\r\n\r\n^r - Make Page Printable\r\nCreates a link to remove the style from a page to make it printable.\r\n\r\n^T - Top Level Menu (Vertical)\r\nA vertical menu containing the main pages of the site (aka the sub-pages from the home page).\r\n\r\n^t - Top Level Menu (Horizontal)\r\nA vertical menu containing the main pages of the site (aka the sub-pages from the home page).\r\n\r\n','11,16,12');
+INSERT INTO help VALUES (20,'US English','Add','SQL Report','SQL Reports are perhaps the most powerful widget in the WebGUI arsenal. They allow a user to query data from any database that they have access to. This is great for getting sales figures from your Accounting database or even summarizing all the message boards on your web site.\r\n\r\nTitle\r\nThe title of this report.\r\n\r\nDisplay Title?\r\nDo you wish to display the title of the report? If so, check the box.\r\n\r\nProcess Macros\r\nDo you wish to process WebGUI Macros on this report? If so, check the box.\r\n\r\nDescription\r\nDescribe the content of this report so your users will better understand what the report is all about.\r\n\r\nTemplate\r\nLayout a template of how this report should look. Usually you\'ll use HTML tables to generate a report. An example is included below.\r\n\r\nThere are 11 special macro characters used in generating SQL Reports. They are ^-, ^0, ^1, ^2, ^3, ^4, ^5, ^6, ^7, ^8, and ^9. These macros will be processed regardless of whether you checked the process macros box above. The ^- macro represents split points in the document where the report will begin and end looping. The numeric macros represent the data fields that will be returned from your query. Note that you may only have 10 fields returned per row in your query.\r\n\r\nSample Template:\r\n<table>\r\n<tr><th>Employee Name</th><th>Employee #</th><th>Vacation Days Remaining</th><th>Monthly Salary</th></tr>\r\n^-\r\n<tr><td>^0</td><td>^1</td><td>^2</td><td>^3</td></tr>\r\n^-\r\n</table>\r\n\r\nQuery\r\nThis is a standard SQL query. If you are unfamiliar with SQL, Plain Black Software provides training courses in SQL and database management.\r\n\r\nDSN\r\nData Source Name is the unique identifier that Perl uses to describe the location of your database. It takes the format of DBI:[driver]:[database name]:[host]. \r\n\r\nExample: DBI:mysql:WebGUI:localhost\r\n\r\nDatabase User\r\nThe username you use to connect to the DSN.\r\n\r\nDatabase Password\r\nThe password you use to connect to the DSN.\r\n\r\nConvert carriage returns?\r\nDo you wish to convert the carriage returns in the resultant data to HTML breaks (<br>).\r\n','19,14,21');
INSERT INTO help VALUES (21,'US English','Using','Widget','Widgets are the true power of WebGUI. Widgets are tiny pluggable applications built to run under WebGUI. Message boards and polls are examples of widgets.\r\n\r\nTo add a widget to a page, first go to that page, then select Add Content... from the upper left corner of your screen. Each widget has it\'s own help so be sure to read the help if you\'re not sure how to use a widget.\r\n','0');
INSERT INTO help VALUES (23,'US English','Add','Article','Articles are the Swiss Army knife of WebGUI. Most pieces of static content can be added via the Article widget.\r\n\r\nTitle\r\nWhat\'s the title for this content? Even if you don\'t wish the title to appear, it\'s a good idea to title your content so that if it is ever copied to the clipboard it will have a name.\r\n\r\nDisplay the title?\r\nDo you wish to display the title listed above?\r\n\r\nProcess macros?\r\nDo you wish to process WebGUI macros on this article? Unchecking this box will not process macros and will speed up page execution.\r\n\r\nStart Date\r\nWhat date do you want this article to appear on the site? Dates are in the format of MM/DD/YYYY. You can use the JavaScript wizard to choose your date from a calendar by clicking on the set date button. By default the date is set to 01/01/2000.\r\n\r\nEnd Date\r\nWhat date do you want this article to be removed from the site? By default the date is set to 100 years in the future, 01/01/2100.\r\n\r\nBody\r\nThe body of the article is where all the content goes. You may feel free to add HTML tags as necessary to format your content. Be sure to put a <p> between paragraphs to add white space to your content.\r\n\r\nImage\r\nChoose an image (.jpg, .gif, .png) file from your hard drive. This file will be uploaded to the server and displayed in the upper-right corner of your article.\r\n\r\nLink Title\r\nIf you wish to add a link to your article, enter the title of the link in this field. \r\n\r\nExample: Google\r\n\r\nLink URL\r\nIf you added a link title, now add the URL (uniform resource locator) here. \r\n\r\nExample: http://www.google.com\r\n\r\nAttachment\r\nIf you wish to attach a word processor file, a zip file, or any other file for download by your users, then choose it from your hard drive.\r\n','14,21');
INSERT INTO help VALUES (24,'US English','Edit','Article','Title\r\nSee Add Article for details.\r\n\r\nDisplay the title?\r\nSee Add Article for details.\r\n\r\nProcess macros?\r\nSee Add Article for details.\r\n\r\nStart Date\r\nSee Add Article for details.\r\n\r\nEnd Date\r\nSee Add Article for details.\r\n\r\nBody\r\nSee Add Article for details.\r\n\r\nImage\r\nSee Add Article for details.\r\n\r\nLink Title\r\nSee Add Article for details.\r\n\r\nLink URL\r\nSee Add Article for details.\r\n\r\nAttachment\r\nSee Add Article for details.\r\n','14,21');
INSERT INTO help VALUES (25,'US English','Add','Extra Column','Extra columns allow you to change the layout of your page for one page only. If you wish to have multiple columns on all your pages. Perhaps you should consider altering the style applied to your pages. \r\n\r\nColumns are always added from left to right. Therefore any existing content will be on the left of the new column.\r\n\r\nSpacer\r\nSpacer is the amount of space between your existing content and your new column. It is measured in pixels.\r\n\r\nWidth\r\nWidth is the actual width of the new column to be added. Width is measured in pixels.\r\n\r\nStyleSheet Class\r\nBy default the content style (which is the style the body of your site should be using) that is applied to all columns. However, if you\'ve created a style specifically for columns, then feel free to modify this class.\r\n','14,21,9,18');
INSERT INTO help VALUES (26,'US English','Edit','Extra Column','Spacer\r\nSee Add Extra Column for details.\r\n\r\nWidth\r\nSee Add Extra Column for details.\r\n\r\nStyleSheet Class\r\nSee Add Extra Column for details.\r\n','14,21,9,18');
INSERT INTO help VALUES (27,'US English','Add','Widget','You can add widgets by selecting from the Add Content pulldown menu.','0');
-INSERT INTO help VALUES (28,'US English','Add','Poll','Polls can be used to get the impressions of your users on various topics.\r\n\r\nTitle\r\nThe title of the poll. Even if you don\'t wish to display the title you should fill out this field so this poll will have a name if it is ever placed in the clipboard.\r\n\r\nDisplay the title?\r\nDo you wish to disply the title?\r\n\r\nDescription\r\nYou may provide a description for this poll, or give the user some background information.\r\n\r\nActive\r\nIf this box is checked, then users will be able to vote. Otherwise they\'ll only be able to see the results of the poll.\r\n\r\nWho can vote?\r\nChoose a group that can vote on this poll.\r\n\r\nGraph Width\r\nThe width of the poll results graph. The width is measured in pixels.\r\n\r\nQuestion\r\nWhat is the question you\'d like to ask your users?\r\n\r\nAnswers\r\nEnter the possible answers to your question. Enter only one answer per line. Polls are only capable of 20 possible answers.\r\n','14,21');
-INSERT INTO help VALUES (29,'US English','Edit','Poll','Title\r\nSee Add Poll for details.\r\n\r\nDisplay the title?\r\nSee Add Poll for details.\r\n\r\nDescription\r\nSee Add Poll for details.\r\n\r\nActive\r\nSee Add Poll for details.\r\n\r\nWho can vote?\r\nSee Add Poll for details.\r\n\r\nGraph Width\r\nSee Add Poll for details.\r\n\r\nQuestion\r\nSee Add Poll for details.\r\n\r\nAnswers\r\nSee Add Poll for details.\r\n','14,21');
-INSERT INTO help VALUES (30,'US English','Add','Site Map','Site maps are used to provide additional navigation in WebGUI. You could set up a traditional site map that would display a hierarchical view of all the pages in the site. On the other hand, you could use site maps to provide extra navigation at certain levels in your site.\r\n\r\nTitle\r\nWhat title would you give to this site map? You should fill this field out even if you don\'t wish it to be displayed.\r\n\r\nDisplay Title\r\nShould the title be displayed?\r\n\r\nDescription\r\nEnter a description as to why this site map is here and what purpose it serves.\r\n\r\nStarting from this level?\r\nIf the site map should display the page tree starting from this level, then check this box. If you wish the site map to start from the home page then uncheck it.\r\n\r\nShow only one level?\r\nShould the site map display only the current level of pages or all pages from this point forward? \r\n','14,21');
-INSERT INTO help VALUES (31,'US English','Edit','Site Map','Title\r\nSee Add Site Map for details.\r\n\r\nDisplay Title\r\nSee Add Site Map for details.\r\n\r\nDescription\r\nSee Add Site Map for details.\r\n\r\nStarting from this level?\r\nSee Add Site Map for details.\r\n\r\nShow only one level?\r\nSee Add Site Map for details.\r\n','14,21');
+INSERT INTO help VALUES (28,'US English','Add','Poll','Polls can be used to get the impressions of your users on various topics.\r\n\r\nTitle\r\nThe title of the poll. Even if you don\'t wish to display the title you should fill out this field so this poll will have a name if it is ever placed in the clipboard.\r\n\r\nDisplay the title?\r\nDo you wish to disply the title?\r\n\r\nDescription\r\nYou may provide a description for this poll, or give the user some background information.\r\n\r\nActive\r\nIf this box is checked, then users will be able to vote. Otherwise they\'ll only be able to see the results of the poll.\r\n\r\nWho can vote?\r\nChoose a group that can vote on this poll.\r\n\r\nGraph Width\r\nThe width of the poll results graph. The width is measured in pixels.\r\n\r\nQuestion\r\nWhat is the question you\'d like to ask your users?\r\n\r\nAnswers\r\nEnter the possible answers to your question. Enter only one answer per line. Polls are only capable of 20 possible answers.\r\n','14,21,19');
+INSERT INTO help VALUES (29,'US English','Edit','Poll','Title\r\nSee Add Poll for details.\r\n\r\nDisplay the title?\r\nSee Add Poll for details.\r\n\r\nDescription\r\nSee Add Poll for details.\r\n\r\nActive\r\nSee Add Poll for details.\r\n\r\nWho can vote?\r\nSee Add Poll for details.\r\n\r\nGraph Width\r\nSee Add Poll for details.\r\n\r\nQuestion\r\nSee Add Poll for details.\r\n\r\nAnswers\r\nSee Add Poll for details.\r\n','14,21,19');
+INSERT INTO help VALUES (30,'US English','Add','Site Map','Site maps are used to provide additional navigation in WebGUI. You could set up a traditional site map that would display a hierarchical view of all the pages in the site. On the other hand, you could use site maps to provide extra navigation at certain levels in your site.\r\n\r\nTitle\r\nWhat title would you give to this site map? You should fill this field out even if you don\'t wish it to be displayed.\r\n\r\nDisplay Title\r\nShould the title be displayed?\r\n\r\nDescription\r\nEnter a description as to why this site map is here and what purpose it serves.\r\n\r\nStarting from this level?\r\nIf the site map should display the page tree starting from this level, then check this box. If you wish the site map to start from the home page then uncheck it.\r\n\r\nShow only one level?\r\nShould the site map display only the current level of pages or all pages from this point forward? \r\n','14,21,19');
+INSERT INTO help VALUES (31,'US English','Edit','Site Map','Title\r\nSee Add Site Map for details.\r\n\r\nDisplay Title\r\nSee Add Site Map for details.\r\n\r\nDescription\r\nSee Add Site Map for details.\r\n\r\nStarting from this level?\r\nSee Add Site Map for details.\r\n\r\nShow only one level?\r\nSee Add Site Map for details.\r\n','14,21,19');
+INSERT INTO help VALUES (32,'US English','Add','Message Board','Message boards, also called Forums and/or Discussions, are a great way to add community to any site or intranets. Many companies use message boards internally to collaborate on projects.\r\n\r\nTitle\r\nThe name of this board.\r\n\r\nDisplay the title?\r\nDo you wish to display the title?\r\n\r\nDescription\r\nBriefly describe what should be displayed on this message board.\r\n\r\nWho can post?\r\nWhat group can post to this message board?\r\n\r\nMessages Per Page\r\nWhen a visitor first comes to a message board s/he will be presented with a listing of all the topics (aka threads) of the message board. If a board is popular, it will quickly have many topics. The messages per page attribute allows you to specify how many topics should be shown on one page.\r\n\r\nEdit Timeout\r\nHow long after a user has posted to the board will their message be available for them to edit. This timeout is measured in hours.\r\n\r\nNote: Don\'t set this limit too high. One of the great things about message boards is that they are an accurate record of a discussion. If you allow editing for a long time, then a user has a chance to go back and change his/her mind a long time after the original statement was made.\r\n','14,21,19');
+INSERT INTO help VALUES (33,'US English','Edit','Message Board','Title\r\nSee Add Message Board for details.\r\n\r\nDisplay the title?\r\nSee Add Message Board for details.\r\n\r\nDescription\r\nSee Add Message Board for details.\r\n\r\nWho can post?\r\nSee Add Message Board for details.\r\n\r\nMessages Per Page\r\nSee Add Message Board for details.\r\n\r\nEdit Timeout\r\nSee Add Message Board for details.\r\n','14,21,19');
+INSERT INTO help VALUES (34,'US English','Add','Link List','Link lists are just what they sound like, a list of links. Many sites have a links section, and this just automates the process.\r\n\r\nTitle\r\nWhat is the title of this link list?\r\n\r\nDisplay the title?\r\nDo you wish to display the title of this list?\r\n\r\nProcess macros?\r\nDo you wish to process macros on the contents of this link list? Turning this off will increase performance slightly on busy sites.\r\n\r\nDescription\r\nDescribe the purpose of the links in this list.','14,21,19');
+INSERT INTO help VALUES (35,'US English','Edit','Link List','Title\r\nSee Add Link List for details.\r\n\r\nDisplay the title?\r\nSee Add Link List for details.\r\n\r\nProcess macros?\r\nSee Add Link List for details.\r\n\r\nDescription\r\nSee Add Link List for details.\r\n\r\nAdding / Editing Links\r\nYou\'ll notice at the bottom of the Edit screen that there are some options to add, edit, delete and reorder the links in your link lists. This process works exactly as the process for doing the same with widgets and pages. The three properties of links are name, url, and description.\r\n','14,21,19');
+INSERT INTO help VALUES (36,'US English','Add','Syndicated Content','Syndicated content is content that is pulled from another site using the RDF/RSS specification. This technology is often used to pull headlines from various news sites like CNN and Slashdot. It can, of course, be used for other things like sports scores, stock market info, etc.\r\n\r\nYou can find a list of syndicated content at http://my.userland.com. You will need to register with an account to browse their listing of content. Also, the list contained there is by no means a complete list of all the syndicated content on the internet.\r\n\r\nTitle\r\nWhat is the title for this content? This is often the title of the site that the content comes from.\r\n\r\nDisplay the title?\r\nDo you wish to display the title?\r\n\r\nDescription\r\nBriefly describe the content being pulled so that your users will know what they are seeing.\r\n\r\nURL to RSS file\r\nProvide the exact URL (starting with http://) to the syndicated content\'s RDF or RSS file. The syndicated content will be downloaded from this URL hourly.','14,21');
+INSERT INTO help VALUES (37,'US English','Edit','Syndicated Content','Title\r\nSee Add Syndicated Content for details.\r\n\r\nDisplay the title?\r\nSee Add Syndicated Content for details.\r\n\r\nDescription\r\nSee Add Syndicated Content for details.\r\n\r\nURL to RSS file\r\nSee Add Syndicated Content for details.\r\n','14,21');
+INSERT INTO help VALUES (38,'US English','Add','Events Calendar','Events calendars are used on many intranets to keep track of internal dates that affect a whole organization. Also events calendars on consumer sites are a great way to let your customers know what events you\'ll be attending and what promotions you\'ll be having.\r\n\r\nTitle\r\nWhat is the title of this events calendar?\r\n\r\nDisplay the title?\r\nDo you want the title to be displayed?\r\n\r\nProcess macros?\r\nDo you wish to process WebGUI macros in the content of the events calendar? Turning this off can increase performance on busy sites.\r\n\r\nDescription\r\nBriefly describe what this events calendar details.\r\n','14,21,19');
+INSERT INTO help VALUES (39,'US English','Edit','Events Calendar','Title\r\nSee Add Events Calendar for details.\r\n\r\nDisplay the title?\r\nSee Add Events Calendar for details.\r\n\r\nProcess macros?\r\nSee Add Events Calendar for details.\r\n\r\nDescription\r\nSee Add Events Calendar for details.\r\n\r\nAdd / Edit Events\r\nOn the edit screen you\'ll notice that there are options to add, edit, and delete the events in your events calendar. The properties for events are name, description, start date, and end date.\r\n\r\nNote: Events that have already happened will not be displayed on the events calendar.','14,21,19');
+INSERT INTO help VALUES (40,'US English','Add','F.A.Q.','It seems that almost every web site, intranet, and extranet in the world has a frequently asked questions area. This widget helps you build one too.\r\n\r\nTitle\r\nWhat is the title for this FAQ section?\r\n\r\nDisplay the title?\r\nDo you wish to display the title?\r\n\r\nProcess macros?\r\nDo you wish to process macros contained in the FAQ content? Turning this off will increase performance on busy sites.\r\n\r\nDescription\r\nBriefly describe what this FAQ covers.\r\n','14,21,19');
+INSERT INTO help VALUES (41,'US English','Edit','F.A.Q.','Title\r\nSee Add F.A.Q. for details.\r\n\r\nDisplay the title?\r\nSee Add F.A.Q. for details.\r\n\r\nProcess macros?\r\nSee Add F.A.Q. for details.\r\n\r\nDescription\r\nSee Add F.A.Q. for details.\r\n\r\nAdd / Edit Questions\r\nOn the edit screen you\'ll notice options for adding, editing, deleting, and reordering the questions in your FAQ. The two properties of FAQ questions are question and answer.\r\n\r\n','14,21,19');
+INSERT INTO help VALUES (42,'US English','Add','Search (MnoGo)','The Mno Go Search engine is one of the most popular and powerful open-source search engines on the market. It is so good that we figured that there was no reason to reinvent the wheel so we incorperated it into WebGUI.\r\n\r\nTitle\r\nWhat is the title of this search?\r\n\r\nDisplay the title?\r\nDo you want to display the title?\r\n\r\nDescription\r\nBriefly describe what is available through this search engine.\r\n\r\nDSN\r\nData Source Name is the unique identifier that Perl uses to describe the location of your database. It takes the format of DBI:[driver]:[database name]:[host]. This DSN needs to point to where your Mno Go Indexer stored the spider results. If you are uncertain how to set up the Mno Go Search Engine and Indexer Plain Black Software provides support and training services.\r\n\r\nExample: DBI:mysql:WebGUI:localhost\r\n\r\nDatabase User\r\nThe username you use to connect to the DSN.\r\n\r\nDatabase Password\r\nThe password you use to connect to the DSN.\r\n','14,21');
+INSERT INTO help VALUES (43,'US English','Edit','Search (MnoGo)','Title\r\nSee Add Search (MnoGo) for details.\r\n\r\nDisplay the title?\r\nSee Add Search (MnoGo) for details.\r\n\r\nDescription\r\nSee Add Search (MnoGo) for details.\r\n\r\nDSN\r\nSee Add Search (MnoGo) for details.\r\n\r\nDatabase User\r\nSee Add Search (MnoGo) for details.\r\n\r\nDatabase Password\r\nSee Add Search (MnoGo) for details.\r\n','14,21');
+INSERT INTO help VALUES (44,'US English','Add','User Submission System','User submission systems are a great way to add a sense of community to any site as well as get free content from your users.\r\n\r\nTitle\r\nWhat is the title for this user submission system?\r\n\r\nDisplay the title?\r\nWould you like the title displayed?\r\n\r\nDescription\r\nBriefly describe why this user submission system is here and what should be submitted to it.\r\n\r\nWho can contribute?\r\nWhat group is allowed to contribute content?\r\n\r\nSubmissions Per Page\r\nHow many submissions should be listed per page in the submissions index?\r\n\r\nDefault Status\r\nShould submissions be set to approved, pending, or denied by default?\r\n\r\nNote: If you set the default status to pending, then be prepared to monitor the pending queue under the Admin menu.\r\n','14,21');
+INSERT INTO help VALUES (45,'US English','Edit','User Submission System','Title\r\nSee Add User Submission System for details.\r\n\r\nDisplay the title?\r\nSee Add User Submission System for details.\r\n\r\nDescription\r\nSee Add User Submission System for details.\r\n\r\nWho can contribute?\r\nSee Add User Submission System for details.\r\n\r\nSubmissions Per Page\r\nSee Add User Submission System for details.\r\n\r\nDefault Status\r\nSee Add User Submission System for details.\r\n','14,21');
#
# Table structure for table 'incrementer'
diff --git a/docs/upgrade-0.11.0_0.12.0.sql b/docs/upgrade-0.11.0_0.12.0.sql
deleted file mode 100644
index 9360dad9b..000000000
--- a/docs/upgrade-0.11.0_0.12.0.sql
+++ /dev/null
@@ -1,47 +0,0 @@
-alter table SQLReport add column convertCarriageReturns int not null default 0;
-delete from help;
-INSERT INTO help VALUES (1,'US English','Add','Page','Think of pages as containers for content. For instance, if you want to write a letter to the editor of your favorite magazine you\'d get out a notepad (or open a word processor) and start filling it with your thoughts. The same is true with WebGUI. Create a page, then add your content to the page.\r\n\r\nTitle\r\nThe title of the page is what your users will use to navigate through the site. Titles should be descriptive, but not very long.\r\n\r\nMeta Tags\r\nMeta tags are used by some search engines to associate key words to a particular page. There is a great site called Meta Tag Builder that will help you build meta tags if you\'ve never done it before.\r\n\r\nAdvanced Users: If you have other things (like JavaScript) you usually put in the <head> area of your pages, you may put them here as well.','0');
-INSERT INTO help VALUES (2,'US English','Edit','Page','Title\r\nSee Add Page for details.\r\n\r\nMeta Tags\r\nSee Add Page for details.\r\n\r\nStyle\r\nBy default, when you create a page, it inherits a few traits from its parent. One of those traits is style. Choose from the list of styles if you would like to change the appearance of this page. See Add Style for more details.\r\n\r\nIf you check the box next to the style pull-down menu, all of the pages below this page will take on the style you\'ve chosen for this page.\r\n\r\nPage URL\r\nWhen you create a page a url for the page is generated based on the page title. If you are unhappy with the url that was chosen, you can change it here.\r\n\r\nOwner\r\nThe owner of a page is usually the person who created the page. If you\'d like to give ownership of a page to a different content manager, then change the name here. Be careful though, once you change ownership of the page, you won\'t be able to get it back unless you are an administrator.\r\n\r\nOwner can view?\r\nCan the owner view the page or not?\r\n\r\nOwner can edit?\r\nCan the owner edit the page or not? Be careful, if you decide that the owner cannot edit the page and you do not belong to the page group, then you\'ll lose the ability to edit this page.\r\n\r\nGroup\r\nA group is assigned to every page for additional privilege control. Pick a group from the pull-down menu.\r\n\r\nGroup can view?\r\nCan members of this group view this page?\r\n\r\nGroup can edit?\r\nCan members of this group edit this page?\r\n\r\nAnybody can view?\r\nCan any visitor or member regardless of the group and owner view this page?\r\n\r\nAnybody can edit?\r\nCan any visitor or member regardless of the group and owner edit this page?\r\n\r\n','9');
-INSERT INTO help VALUES (3,'US English','Delete','Page','Deleting a page can create a big mess if you are uncertain about what you are doing. When you delete a page you are also deleting the content it contains, all sub-pages connected to this page, and all the content they contain. Be certain that you have already moved all the content you wish to keep before you delete a page.\r\n\r\nAs with any delete operation, you are prompted to be sure you wish to proceed with the delete. If you answer yes, the delete will proceed and there is no recovery possible. If you answer no you\'ll be returned to the prior screen.','0');
-INSERT INTO help VALUES (4,'US English','Delete','Style','When you delete a style all pages using that style will be reverted to the fail safe (default) style. To ensure uninterrupted viewing, you should be sure that no pages are using a style before you delete it.\r\n\r\nAs with any delete operation, you are prompted to be sure you wish to proceed with the delete. If you answer yes, the delete will proceed and there is no recovery possible. If you answer no you\'ll be returned to the prior screen.','0');
-INSERT INTO help VALUES (5,'US English','Add','User','See Manage Users for additional details.\r\n\r\nUsername\r\nUsername is a unique identifier for a user. Sometimes called a handle, it is also how the user will be known on the site. (Note: Administrators have unlimited power in the WebGUI system. This also means they are capable of breaking the system. If you rename or create a user, be careful not to use a username already in existance.)\r\n\r\nPassword\r\nA password is used to ensure that the user is who s/he says s/he is.\r\n\r\nEmail Address\r\nThe user\'s email address. This must only be specified if the user will partake in functions that require email.\r\n\r\nICQ UIN\r\nThe ICQ UIN is the \"User ID Number\" on the ICQ network. ICQ is a very popular instant messaging platform.\r\n\r\nGroups\r\nGroups displays which groups the user is in. Groups that are highlighted are groups that the user is assigned to. Those that are not highlighted are other groups that can be assigned. Note that you must hold down CTRL to select multiple groups.','0');
-INSERT INTO help VALUES (6,'US English','Edit','User','Username\r\nSee Add User for details.\r\n\r\nPassword\r\nSee Add User for details.\r\n\r\nEmail Address\r\nSee Add User for details.\r\n\r\nICQ UIN\r\nSee Add User for details.\r\n\r\nGroups\r\nSee Add User for details.\r\n\r\n','0');
-INSERT INTO help VALUES (7,'US English','Delete','User','There is no need to ever actually delete a user. If you are concerned with locking out a user, then simply change their password. If you truely wish to delete a user, then please keep in mind that there are consequences. If you delete a user any content that they added to the site via widgets (like message boards and user contributions) will remain on the site. However, if another user tries to visit the deleted user\'s profile they will get an error message. Also if the user ever is welcomed back to the site, there is no way to give him/her access to his/her old content items except by re-adding the user to the users table manually.\r\nAs with any delete operation, you are prompted to be sure you wish to proceed with the delete. If you answer yes, the delete will proceed and there is no recovery possible. If you answer no you\'ll be returned to the prior screen.','0');
-INSERT INTO help VALUES (8,'US English','Manage','User','Users are the accounts in the system that are given rights to do certain things. There are two default users built into the system: Admin and Visitor.\r\n\r\nAdmin\r\nAdmin is exactly what you\'d expect. It is a user with unlimited rights in the WebGUI environment. If it can be done, this user has the rights to do it.\r\n\r\nVisitor\r\nVisitor is exactly the opposite of Admin. Visitor has no rights what-so-ever. By default any user who is not logged in is seen as the user Visitor.','0');
-INSERT INTO help VALUES (9,'US English','Manage','Style','Styles are used to manage the look and feel of your WebGUI pages. With WebGUI, you can have an unlimited number of styles, so your site can take on as many looks as you like. You could have some pages that look like your company\'s brochure, and some pages that look like Yahoo!®. You could even have some pages that look like pages in a book. Using style management, you have ultimate control over all your designs.\r\n\r\nThere are three styles built in to WebGUI: Fail Safe, Plain Black Software, and Yahoo!®. These styles are not meant to be edited, but rather to give you samples of what\'s possible.\r\n\r\nFail Safe\r\nWhen you delete a style that is still in use on some pages, the Fail Safe style will be applied to those pages. This style has a white background and simple navigation.\r\n\r\nPlain Black Software\r\nThis is the simple design used on the Plain Black Software site.\r\n\r\nYahoo!®\r\nThis is the design of the Yahoo!® site. (Yahoo!® has not given us permission to use their design. It is simply an example.)','0');
-INSERT INTO help VALUES (10,'US English','Manage','Group','Groups are used to subdivide privileges and responsibilities within the WebGUI system. For instance, you may be building a site for a classroom situation. In that case you might set up a different group for each class that you teach. You would then apply those groups to the pages that are designed for each class.\r\n\r\nThere are four groups built into WebGUI. They are Admins, Content Managers, Visitors, and Registered Users.\r\n\r\nAdmins\r\nAdmins are users who have unlimited privileges within WebGUI. A user should only be added to the admin group if they oversee the system. Usually only one to three people will be added to this group.\r\n\r\nContent Managers\r\nContent managers are users who have privileges to add, edit, and delete content from various areas on the site. The content managers group should not be used to control individual content areas within the site, but to determine whether a user can edit content at all. You should set up additional groups to separate content areas on the site.\r\n\r\nRegistered Users\r\nWhen users are added to the system they are put into the registered users group. A user should only be removed from this group if their account is deleted or if you wish to punish a troublemaker.\r\n\r\nVisitors\r\nVisitors are users who are not logged in using an account on the system. Also, if you wish to punish a registered user you could remove him/her from the Registered Users group and insert him/her into the Visitors group.','0');
-INSERT INTO help VALUES (11,'US English','Edit','Style','Style Name\r\nSee Add Style for details.\r\n\r\nHeader\r\nSee Add Style for details.\r\n\r\nFooter\r\nSee Add Style for details.\r\n\r\nStyle Sheet\r\nSee Add Style for details.\r\n\r\n','18,19');
-INSERT INTO help VALUES (12,'US English','Edit','Settings','Settings are items that allow you to adjust WebGUI to your particular needs.\r\n\r\nPath to WebGUI Extras\r\nThe web-path to the directory containing WebGUI images and javascript files.\r\n\r\nSession Timeout\r\nThe time (in seconds) that a user session remains active (before needing to log in again). This timeout is reset each time a visitor hits a page. Therefore if you set the timeout for 8 hours, a user would have to log in again if s/he hadn\'t visited the site for 8 hours.\r\n\r\n1800 = half hour\r\n3600 = 1 hour\r\n28000 = 8 hours\r\n86400 = 1 day\r\n604800 = 1 week\r\n1209600 = 2 weeks\r\n\r\nMaximum Attachment Size\r\nThe maximum size of files allowed to be uploaded to this site. This applies to all widgets that allow uploaded files and images (like Article and User Contributions). This size is measured in kilobytes.\r\n\r\nWeb Attachment Path\r\nThe web-path of the directory where attachments are to be stored.\r\n\r\nServer Attachment Path\r\nThe local path of the directory where attachments are to be stored. (Perhaps /var/www/public/uploads) Be sure that the web server has the rights to write to that directory.\r\n\r\nSMTP Server\r\nThis is the address of your local mail server. It is needed for all features that use the Internet email system (such as password recovery).\r\n\r\nCompany Name\r\nThe name of your company. It will appear on all emails and anywhere you use the Company Name macro.\r\n\r\nCompany Email Address\r\nA general email address at your company. This is the address that all automated messages will come from. It can also be used via the WebGUI macro system.\r\n\r\nCompany URL\r\nThe primary URL of your company. This will appear on all automated emails sent from the WebGUI system. It is also available via the WebGUI macro system.\r\n\r\n\r\n','19');
-INSERT INTO help VALUES (13,'US English','Edit','Group','Group Name\r\nSee Add Group for details.\r\n\r\nDescription\r\nSee Add Group for details.\r\n','0');
-INSERT INTO help VALUES (14,'US English','Delete','Widget','This function permanently deletes the selected widget from a page. If you are unsure whether you wish to delete this content you may be better served to cut the content to the clipboard until you are certain you wish to delete it.\r\n\r\nAs with any delete operation, you are prompted to be sure you wish to proceed with the delete. If you answer yes, the delete will proceed and there is no recovery possible. If you answer no you\'ll be returned to the prior screen.','0');
-INSERT INTO help VALUES (15,'US English','Delete','Group','As the function suggests you\'ll be deleting a group and removing all users from the group. Be careful not to orphan users from pages they should have access to by deleting a group that is in use.\r\n\r\nAs with any delete operation, you are prompted to be sure you wish to proceed with the delete. If you answer yes, the delete will proceed and there is no recovery possible. If you answer no you\'ll be returned to the prior screen.','0');
-INSERT INTO help VALUES (16,'US English','Add','Style','Styles are WebGUI macro enabled. See Using Macros for more information.\r\n\r\nStyle Name\r\nA unique name to describe what this style looks like at a glance. The name has no effect on the actual look of the style.\r\n\r\nHeader\r\nThe header is the start of the look of your site. It is helpful to look at your design and cut it into three pieces. The top and left of your design is the header. The center part is the content, and the right and bottom is the footer. Cut the HTML from your header and paste it in the space provided.\r\n\r\nIf you are in need of assistance for creating a look for your site, or if you need help cutting apart your design, Plain Black Software provides support services for a small fee.\r\n\r\nMany people will add WebGUI macros to their header for automated navigation, and other features.\r\n\r\nFooter\r\nThe footer is the end of the look for your site. It is the right and bottom portion of your design. You may also place WebGUI macros in your footer.\r\n\r\nStyle Sheet\r\nPlace your style sheet entries here. Style sheets are used to control colors, sizes, and other properties of the elements on your site. See Using Style Sheets for more information.\r\n\r\nAdvanced Users: for greater performance create your stylesheet on the file system (call it something like webgui.css) and add an entry like this to this area: \r\n<link href=\"/webgui.css\" rel=\"stylesheet\" rev=\"stylesheet\" type=\"text/css\">','18,19');
-INSERT INTO help VALUES (17,'US English','Add','Group','See Manage Group for a description of grouping functions and the default groups.\r\n\r\nGroup Name\r\nA name for the group. It is best if the name is descriptive so you know what it is at a glance.\r\n\r\nDescription\r\nA longer description of the group so that other admins and content managers (or you if you forget) will know what the purpose of this group is.','0');
-INSERT INTO help VALUES (22,'US English','Edit','SQL Report','Title\r\nSee Add SQL Report for details.\r\n\r\nDisplay Title?\r\nSee Add SQL Report for details.\r\n\r\nProcess Macros\r\nSee Add SQL Report for details.\r\n\r\nDescription\r\nSee Add SQL Report for details.\r\n\r\nTemplate\r\nSee Add SQL Report for details.\r\n\r\nQuery\r\nSee Add SQL Report for details.\r\n\r\nDSN\r\nSee Add SQL Report for details.\r\n\r\nDatabase User\r\nSee Add SQL Report for details.\r\n\r\nDatabase Password\r\nSee Add SQL Report for details.\r\n\r\nConvert carriage returns?\r\nSee Add SQL Report for details.\r\n\r\n','19,14,21');
-INSERT INTO help VALUES (18,'US English','Using','Style Sheets','Cascading Style Sheets (CSS) are a great way to manage the look and feel of any web site. They are used extensively in WebGUI.\r\n\r\nIf you are unfamiliar with how to use CSS, Plain Black Software provides training classes on XHTML and CSS. Alternatively, Bradsoft makes an excellent CSS editor called Top Style.\r\n\r\nThe following is a list of classes used to control the look of WebGUI:\r\n\r\nA\r\nThe links throughout the style.\r\n\r\nBODY\r\nThe default setup of all pages within a style.\r\n\r\nH1\r\nThe headers on every page.\r\n\r\n.accountOptions\r\nThe links that appear under the login and account update forms.\r\n\r\n.adminBar \r\nThe bar that appears at the top of the page when you\'re in admin mode.\r\n\r\n.boardMenu \r\nThe menu on the message boards.\r\n\r\n.boardMessage \r\nThe full message text.\r\n\r\n.boardTitle \r\nThe title of the message board.\r\n\r\n.content\r\nThe main content area on all pages of the style.\r\n\r\n.crumbTrail \r\nThe crumb trail (if you\'re using that macro).\r\n\r\n.eventTitle \r\nThe title of an individual event.\r\n\r\n.faqQuestion\r\nAn F.A.Q. question. To distinguish it from an answer.\r\n\r\n.formDescription \r\nThe tags on all forms next to the form elements. \r\n\r\n.formSubtext \r\nThe tags below some form elements.\r\n\r\n.highlight \r\nDenotes a highlighted item, such as which message you are viewing within a list.\r\n\r\n.horizontalMenu \r\nThe horizontal menu (if you use a horizontal menu macro).\r\n\r\n.loginBox\r\nThe login box macro.\r\n\r\n.pagination \r\nThe Previous and Next links on pages with pagination.\r\n\r\n.pollAnswer \r\nAn answer on a poll.\r\n\r\n.pollColor \r\nThe color of the percentage bar on a poll.\r\n\r\n.pollQuestion \r\nThe question on a poll.\r\n\r\n.tableData \r\nThe data rows on things like message boards and user contributions.\r\n\r\n.tableHeader \r\nThe headings of columns on things like message boards and user contributions.\r\n\r\n.verticalMenu \r\nThe vertical menu (if you use a verticall menu macro).\r\n\r\n','11,16');
-INSERT INTO help VALUES (19,'US English','Using','Macros','WebGUI macros are used to create dynamic content within otherwise static content. For instance, you may wish to show which user is logged in on every page, or you may wish to have a dynamically built menu or crumb trail. \r\n\r\nMacros always begin with a carat (^) and follow with one other character. The following is a description of all the macros in the WebGUI system.\r\n\r\n^^ - Carat\r\nSince the carat symbol is used to start all macros, this macro is in place just in case you really wanted to use a carat somewhere.\r\n\r\n^/ - System URL\r\nThe URL to the gateway script (including the domain for this site). This is often used within pages so that if your development server is on a domain different than your production server that your URLs will still worked when moved.\r\n\r\n^@ - Username\r\nThe username of the currently logged in user.\r\n\r\n^# - User ID\r\nThe user id of the currently logged in user.\r\n\r\n^* - Random Number\r\nA randomly generated number. This is often used on images (such as banner ads) that you want to ensure do not cache.\r\n\r\n^a - My Account Link\r\nA link to your account information.\r\n\r\n^C - Crumb Trail\r\nA dynamically generated crumb trail to the current page.\r\n\r\n^D - Date\r\nThe current date and time.\r\n\r\n^f - Full Menu (Vertical)\r\nDisplays a complete menu listing for all pages on the site, sort of like a site map.\r\n\r\n^F - 2 Level Menu (Vertical)\r\nDisplays the first two levels of the menuing hierarchy at all times.\r\n\r\n^h - 3 Level Menu (Vertical)\r\nDisplays the first three levels of the menuing hierarchy at all times.\r\n\r\n^H - Home Link\r\nA link to the home page of this site.\r\n\r\n^L - Login\r\nA small login form.\r\n\r\n^M - Current Menu (Vertical)\r\nA vertical menu containing the sub-pages at the current level.\r\n\r\n^m - Current Menu (Horizontal)\r\nA horizontal menu containing the sub-pages at the current level.\r\n\r\n^P - Previous Menu (Vertical)\r\nA vertical menu containing the sub-pages at the previous level.\r\n\r\n^p - Previous Menu (Horizontal)\r\nA horizontal menu containing the sub-pages at the previous level.\r\n\r\n^r - Make Page Printable\r\nCreates a link to remove the style from a page to make it printable.\r\n\r\n^T - Top Level Menu (Vertical)\r\nA vertical menu containing the main pages of the site (aka the sub-pages from the home page).\r\n\r\n^t - Top Level Menu (Horizontal)\r\nA vertical menu containing the main pages of the site (aka the sub-pages from the home page).\r\n\r\n','11,16,12');
-INSERT INTO help VALUES (20,'US English','Add','SQL Report','SQL Reports are perhaps the most powerful widget in the WebGUI arsenal. They allow a user to query data from any database that they have access to. This is great for getting sales figures from your Accounting database or even summarizing all the message boards on your web site.\r\n\r\nTitle\r\nThe title of this report.\r\n\r\nDisplay Title?\r\nDo you wish to display the title of the report? If so, check the box.\r\n\r\nProcess Macros\r\nDo you wish to process WebGUI Macros on this report? If so, check the box.\r\n\r\nDescription\r\nDescribe the content of this report so your users will better understand what the report is all about.\r\n\r\nTemplate\r\nLayout a template of how this report should look. Usually you\'ll use HTML tables to generate a report. An example is included below.\r\n\r\nThere are 11 special macro characters used in generating SQL Reports. They are ^-, ^0, ^1, ^2, ^3, ^4, ^5, ^6, ^7, ^8, and ^9. These macros will be processed regardless of whether you checked the process macros box above. The ^- macro represents split points in the document where the report will begin and end looping. The numeric macros represent the data fields that will be returned from your query. Note that you may only have 10 fields returned per row in your query.\r\n\r\nSample Template:\r\n<table>\r\n<tr><th>Employee Name</th><th>Employee #</th><th>Vacation Days Remaining</th><th>Monthly Salary</th></tr>\r\n^-\r\n<tr><td>^0</td><td>^1</td><td>^2</td><td>^3</td></tr>\r\n^-\r\n</table>\r\n\r\nQuery\r\nThis is a standard SQL query. If you are unfamiliar with SQL, Plain Black Software provides training courses in SQL and database management.\r\n\r\nDSN\r\nData Source Name is the unique identifier that Perl uses to describe the location of your database. It takes the format of DBI:[driver]:[database name]:[host]. \r\n\r\nExample: DBI:mysql:WebGUI:localhost\r\n\r\nDatabase User\r\nThe username you use to connect to the DSN.\r\n\r\nDatabase Password\r\nThe password you use to connect to the DSN.\r\n\r\nConvert carriage returns?\r\nDo you wish to convert the carriage returns in the resultant data to HTML breaks (<br>).\r\n','19,14,21');
-INSERT INTO help VALUES (21,'US English','Using','Widget','Widgets are the true power of WebGUI. Widgets are tiny pluggable applications built to run under WebGUI. Message boards and polls are examples of widgets.\r\n\r\nTo add a widget to a page, first go to that page, then select Add Content... from the upper left corner of your screen. Each widget has it\'s own help so be sure to read the help if you\'re not sure how to use a widget.\r\n','0');
-INSERT INTO help VALUES (23,'US English','Add','Article','Articles are the Swiss Army knife of WebGUI. Most pieces of static content can be added via the Article widget.\r\n\r\nTitle\r\nWhat\'s the title for this content? Even if you don\'t wish the title to appear, it\'s a good idea to title your content so that if it is ever copied to the clipboard it will have a name.\r\n\r\nDisplay the title?\r\nDo you wish to display the title listed above?\r\n\r\nProcess macros?\r\nDo you wish to process WebGUI macros on this article? Unchecking this box will not process macros and will speed up page execution.\r\n\r\nStart Date\r\nWhat date do you want this article to appear on the site? Dates are in the format of MM/DD/YYYY. You can use the JavaScript wizard to choose your date from a calendar by clicking on the set date button. By default the date is set to 01/01/2000.\r\n\r\nEnd Date\r\nWhat date do you want this article to be removed from the site? By default the date is set to 100 years in the future, 01/01/2100.\r\n\r\nBody\r\nThe body of the article is where all the content goes. You may feel free to add HTML tags as necessary to format your content. Be sure to put a <p> between paragraphs to add white space to your content.\r\n\r\nImage\r\nChoose an image (.jpg, .gif, .png) file from your hard drive. This file will be uploaded to the server and displayed in the upper-right corner of your article.\r\n\r\nLink Title\r\nIf you wish to add a link to your article, enter the title of the link in this field. \r\n\r\nExample: Google\r\n\r\nLink URL\r\nIf you added a link title, now add the URL (uniform resource locator) here. \r\n\r\nExample: http://www.google.com\r\n\r\nAttachment\r\nIf you wish to attach a word processor file, a zip file, or any other file for download by your users, then choose it from your hard drive.\r\n','14,21');
-INSERT INTO help VALUES (24,'US English','Edit','Article','Title\r\nSee Add Article for details.\r\n\r\nDisplay the title?\r\nSee Add Article for details.\r\n\r\nProcess macros?\r\nSee Add Article for details.\r\n\r\nStart Date\r\nSee Add Article for details.\r\n\r\nEnd Date\r\nSee Add Article for details.\r\n\r\nBody\r\nSee Add Article for details.\r\n\r\nImage\r\nSee Add Article for details.\r\n\r\nLink Title\r\nSee Add Article for details.\r\n\r\nLink URL\r\nSee Add Article for details.\r\n\r\nAttachment\r\nSee Add Article for details.\r\n','14,21');
-INSERT INTO help VALUES (25,'US English','Add','Extra Column','Extra columns allow you to change the layout of your page for one page only. If you wish to have multiple columns on all your pages. Perhaps you should consider altering the style applied to your pages. \r\n\r\nColumns are always added from left to right. Therefore any existing content will be on the left of the new column.\r\n\r\nSpacer\r\nSpacer is the amount of space between your existing content and your new column. It is measured in pixels.\r\n\r\nWidth\r\nWidth is the actual width of the new column to be added. Width is measured in pixels.\r\n\r\nStyleSheet Class\r\nBy default the content style (which is the style the body of your site should be using) that is applied to all columns. However, if you\'ve created a style specifically for columns, then feel free to modify this class.\r\n','14,21,9,18');
-INSERT INTO help VALUES (26,'US English','Edit','Extra Column','Spacer\r\nSee Add Extra Column for details.\r\n\r\nWidth\r\nSee Add Extra Column for details.\r\n\r\nStyleSheet Class\r\nSee Add Extra Column for details.\r\n','14,21,9,18');
-INSERT INTO help VALUES (27,'US English','Add','Widget','You can add widgets by selecting from the Add Content pulldown menu.','0');
-INSERT INTO help VALUES (28,'US English','Add','Poll','Polls can be used to get the impressions of your users on various topics.\r\n\r\nTitle\r\nThe title of the poll. Even if you don\'t wish to display the title you should fill out this field so this poll will have a name if it is ever placed in the clipboard.\r\n\r\nDisplay the title?\r\nDo you wish to disply the title?\r\n\r\nDescription\r\nYou may provide a description for this poll, or give the user some background information.\r\n\r\nActive\r\nIf this box is checked, then users will be able to vote. Otherwise they\'ll only be able to see the results of the poll.\r\n\r\nWho can vote?\r\nChoose a group that can vote on this poll.\r\n\r\nGraph Width\r\nThe width of the poll results graph. The width is measured in pixels.\r\n\r\nQuestion\r\nWhat is the question you\'d like to ask your users?\r\n\r\nAnswers\r\nEnter the possible answers to your question. Enter only one answer per line. Polls are only capable of 20 possible answers.\r\n','14,21,19');
-INSERT INTO help VALUES (29,'US English','Edit','Poll','Title\r\nSee Add Poll for details.\r\n\r\nDisplay the title?\r\nSee Add Poll for details.\r\n\r\nDescription\r\nSee Add Poll for details.\r\n\r\nActive\r\nSee Add Poll for details.\r\n\r\nWho can vote?\r\nSee Add Poll for details.\r\n\r\nGraph Width\r\nSee Add Poll for details.\r\n\r\nQuestion\r\nSee Add Poll for details.\r\n\r\nAnswers\r\nSee Add Poll for details.\r\n','14,21,19');
-INSERT INTO help VALUES (30,'US English','Add','Site Map','Site maps are used to provide additional navigation in WebGUI. You could set up a traditional site map that would display a hierarchical view of all the pages in the site. On the other hand, you could use site maps to provide extra navigation at certain levels in your site.\r\n\r\nTitle\r\nWhat title would you give to this site map? You should fill this field out even if you don\'t wish it to be displayed.\r\n\r\nDisplay Title\r\nShould the title be displayed?\r\n\r\nDescription\r\nEnter a description as to why this site map is here and what purpose it serves.\r\n\r\nStarting from this level?\r\nIf the site map should display the page tree starting from this level, then check this box. If you wish the site map to start from the home page then uncheck it.\r\n\r\nShow only one level?\r\nShould the site map display only the current level of pages or all pages from this point forward? \r\n','14,21,19');
-INSERT INTO help VALUES (31,'US English','Edit','Site Map','Title\r\nSee Add Site Map for details.\r\n\r\nDisplay Title\r\nSee Add Site Map for details.\r\n\r\nDescription\r\nSee Add Site Map for details.\r\n\r\nStarting from this level?\r\nSee Add Site Map for details.\r\n\r\nShow only one level?\r\nSee Add Site Map for details.\r\n','14,21,19');
-INSERT INTO help VALUES (32,'US English','Add','Message Board','Message boards, also called Forums and/or Discussions, are a great way to add community to any site or intranets. Many companies use message boards internally to collaborate on projects.\r\n\r\nTitle\r\nThe name of this board.\r\n\r\nDisplay the title?\r\nDo you wish to display the title?\r\n\r\nDescription\r\nBriefly describe what should be displayed on this message board.\r\n\r\nWho can post?\r\nWhat group can post to this message board?\r\n\r\nMessages Per Page\r\nWhen a visitor first comes to a message board s/he will be presented with a listing of all the topics (aka threads) of the message board. If a board is popular, it will quickly have many topics. The messages per page attribute allows you to specify how many topics should be shown on one page.\r\n\r\nEdit Timeout\r\nHow long after a user has posted to the board will their message be available for them to edit. This timeout is measured in hours.\r\n\r\nNote: Don\'t set this limit too high. One of the great things about message boards is that they are an accurate record of a discussion. If you allow editing for a long time, then a user has a chance to go back and change his/her mind a long time after the original statement was made.\r\n','14,21,19');
-INSERT INTO help VALUES (33,'US English','Edit','Message Board','Title\r\nSee Add Message Board for details.\r\n\r\nDisplay the title?\r\nSee Add Message Board for details.\r\n\r\nDescription\r\nSee Add Message Board for details.\r\n\r\nWho can post?\r\nSee Add Message Board for details.\r\n\r\nMessages Per Page\r\nSee Add Message Board for details.\r\n\r\nEdit Timeout\r\nSee Add Message Board for details.\r\n','14,21,19');
-INSERT INTO help VALUES (34,'US English','Add','Link List','Link lists are just what they sound like, a list of links. Many sites have a links section, and this just automates the process.\r\n\r\nTitle\r\nWhat is the title of this link list?\r\n\r\nDisplay the title?\r\nDo you wish to display the title of this list?\r\n\r\nProcess macros?\r\nDo you wish to process macros on the contents of this link list? Turning this off will increase performance slightly on busy sites.\r\n\r\nDescription\r\nDescribe the purpose of the links in this list.','14,21,19');
-INSERT INTO help VALUES (35,'US English','Edit','Link List','Title\r\nSee Add Link List for details.\r\n\r\nDisplay the title?\r\nSee Add Link List for details.\r\n\r\nProcess macros?\r\nSee Add Link List for details.\r\n\r\nDescription\r\nSee Add Link List for details.\r\n\r\nAdding / Editing Links\r\nYou\'ll notice at the bottom of the Edit screen that there are some options to add, edit, delete and reorder the links in your link lists. This process works exactly as the process for doing the same with widgets and pages. The three properties of links are name, url, and description.\r\n','14,21,19');
-INSERT INTO help VALUES (36,'US English','Add','Syndicated Content','Syndicated content is content that is pulled from another site using the RDF/RSS specification. This technology is often used to pull headlines from various news sites like CNN and Slashdot. It can, of course, be used for other things like sports scores, stock market info, etc.\r\n\r\nYou can find a list of syndicated content at http://my.userland.com. You will need to register with an account to browse their listing of content. Also, the list contained there is by no means a complete list of all the syndicated content on the internet.\r\n\r\nTitle\r\nWhat is the title for this content? This is often the title of the site that the content comes from.\r\n\r\nDisplay the title?\r\nDo you wish to display the title?\r\n\r\nDescription\r\nBriefly describe the content being pulled so that your users will know what they are seeing.\r\n\r\nURL to RSS file\r\nProvide the exact URL (starting with http://) to the syndicated content\'s RDF or RSS file. The syndicated content will be downloaded from this URL hourly.','14,21');
-INSERT INTO help VALUES (37,'US English','Edit','Syndicated Content','Title\r\nSee Add Syndicated Content for details.\r\n\r\nDisplay the title?\r\nSee Add Syndicated Content for details.\r\n\r\nDescription\r\nSee Add Syndicated Content for details.\r\n\r\nURL to RSS file\r\nSee Add Syndicated Content for details.\r\n','14,21');
-INSERT INTO help VALUES (38,'US English','Add','Events Calendar','Events calendars are used on many intranets to keep track of internal dates that affect a whole organization. Also events calendars on consumer sites are a great way to let your customers know what events you\'ll be attending and what promotions you\'ll be having.\r\n\r\nTitle\r\nWhat is the title of this events calendar?\r\n\r\nDisplay the title?\r\nDo you want the title to be displayed?\r\n\r\nProcess macros?\r\nDo you wish to process WebGUI macros in the content of the events calendar? Turning this off can increase performance on busy sites.\r\n\r\nDescription\r\nBriefly describe what this events calendar details.\r\n','14,21,19');
-INSERT INTO help VALUES (39,'US English','Edit','Events Calendar','Title\r\nSee Add Events Calendar for details.\r\n\r\nDisplay the title?\r\nSee Add Events Calendar for details.\r\n\r\nProcess macros?\r\nSee Add Events Calendar for details.\r\n\r\nDescription\r\nSee Add Events Calendar for details.\r\n\r\nAdd / Edit Events\r\nOn the edit screen you\'ll notice that there are options to add, edit, and delete the events in your events calendar. The properties for events are name, description, start date, and end date.\r\n\r\nNote: Events that have already happened will not be displayed on the events calendar.','14,21,19');
-INSERT INTO help VALUES (40,'US English','Add','F.A.Q.','It seems that almost every web site, intranet, and extranet in the world has a frequently asked questions area. This widget helps you build one too.\r\n\r\nTitle\r\nWhat is the title for this FAQ section?\r\n\r\nDisplay the title?\r\nDo you wish to display the title?\r\n\r\nProcess macros?\r\nDo you wish to process macros contained in the FAQ content? Turning this off will increase performance on busy sites.\r\n\r\nDescription\r\nBriefly describe what this FAQ covers.\r\n','14,21,19');
-INSERT INTO help VALUES (41,'US English','Edit','F.A.Q.','Title\r\nSee Add F.A.Q. for details.\r\n\r\nDisplay the title?\r\nSee Add F.A.Q. for details.\r\n\r\nProcess macros?\r\nSee Add F.A.Q. for details.\r\n\r\nDescription\r\nSee Add F.A.Q. for details.\r\n\r\nAdd / Edit Questions\r\nOn the edit screen you\'ll notice options for adding, editing, deleting, and reordering the questions in your FAQ. The two properties of FAQ questions are question and answer.\r\n\r\n','14,21,19');
-INSERT INTO help VALUES (42,'US English','Add','Search (MnoGo)','The Mno Go Search engine is one of the most popular and powerful open-source search engines on the market. It is so good that we figured that there was no reason to reinvent the wheel so we incorperated it into WebGUI.\r\n\r\nTitle\r\nWhat is the title of this search?\r\n\r\nDisplay the title?\r\nDo you want to display the title?\r\n\r\nDescription\r\nBriefly describe what is available through this search engine.\r\n\r\nDSN\r\nData Source Name is the unique identifier that Perl uses to describe the location of your database. It takes the format of DBI:[driver]:[database name]:[host]. This DSN needs to point to where your Mno Go Indexer stored the spider results. If you are uncertain how to set up the Mno Go Search Engine and Indexer Plain Black Software provides support and training services.\r\n\r\nExample: DBI:mysql:WebGUI:localhost\r\n\r\nDatabase User\r\nThe username you use to connect to the DSN.\r\n\r\nDatabase Password\r\nThe password you use to connect to the DSN.\r\n','14,21');
-INSERT INTO help VALUES (43,'US English','Edit','Search (MnoGo)','Title\r\nSee Add Search (MnoGo) for details.\r\n\r\nDisplay the title?\r\nSee Add Search (MnoGo) for details.\r\n\r\nDescription\r\nSee Add Search (MnoGo) for details.\r\n\r\nDSN\r\nSee Add Search (MnoGo) for details.\r\n\r\nDatabase User\r\nSee Add Search (MnoGo) for details.\r\n\r\nDatabase Password\r\nSee Add Search (MnoGo) for details.\r\n','14,21');
-INSERT INTO help VALUES (44,'US English','Add','User Submission System','User submission systems are a great way to add a sense of community to any site as well as get free content from your users.\r\n\r\nTitle\r\nWhat is the title for this user submission system?\r\n\r\nDisplay the title?\r\nWould you like the title displayed?\r\n\r\nDescription\r\nBriefly describe why this user submission system is here and what should be submitted to it.\r\n\r\nWho can contribute?\r\nWhat group is allowed to contribute content?\r\n\r\nSubmissions Per Page\r\nHow many submissions should be listed per page in the submissions index?\r\n\r\nDefault Status\r\nShould submissions be set to approved, pending, or denied by default?\r\n\r\nNote: If you set the default status to pending, then be prepared to monitor the pending queue under the Admin menu.\r\n','14,21');
-INSERT INTO help VALUES (45,'US English','Edit','User Submission System','Title\r\nSee Add User Submission System for details.\r\n\r\nDisplay the title?\r\nSee Add User Submission System for details.\r\n\r\nDescription\r\nSee Add User Submission System for details.\r\n\r\nWho can contribute?\r\nSee Add User Submission System for details.\r\n\r\nSubmissions Per Page\r\nSee Add User Submission System for details.\r\n\r\nDefault Status\r\nSee Add User Submission System for details.\r\n','14,21');
diff --git a/docs/upgrade-0.12.0_1.0.0.sql b/docs/upgrade-0.12.0_1.0.0.sql
new file mode 100644
index 000000000..9707974e6
--- /dev/null
+++ b/docs/upgrade-0.12.0_1.0.0.sql
@@ -0,0 +1,3 @@
+alter table submission add column convertCarriageReturns int not null;
+alter table Article add column convertCarriageReturns int not null;
+
diff --git a/etc/WebGUI.conf b/etc/WebGUI.conf
index 4ff0cb101..cbe1dd612 100644
--- a/etc/WebGUI.conf
+++ b/etc/WebGUI.conf
@@ -1,4 +1,4 @@
dsn = DBI:mysql:WebGUI
dbuser = webgui
dbpass = password
-logfile = /data/webgui-`date +%Y%m%d`.log
+logfile = /data/webgui.log
diff --git a/lib/WebGUI/Config.pm b/lib/Data/Config.pm
similarity index 99%
rename from lib/WebGUI/Config.pm
rename to lib/Data/Config.pm
index 789b2b2b1..576f44c36 100644
--- a/lib/WebGUI/Config.pm
+++ b/lib/Data/Config.pm
@@ -1,5 +1,4 @@
-package WebGUI::Config;
-# This package was originally Data::Config
+package Data::Config;
use strict;
use Carp;
diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm
index 823161b29..be99f29a3 100644
--- a/lib/WebGUI.pm
+++ b/lib/WebGUI.pm
@@ -1,4 +1,5 @@
package WebGUI;
+our $VERSION = "1.0.0";
#-------------------------------------------------------------------
# WebGUI is Copyright 2001 Plain Black Software.
@@ -52,7 +53,8 @@ sub _displayAdminBar {
$session{page}{url}.'?op=listStyles'=>'Manage Styles',
$session{page}{url}.'?op=listUsers'=>'Manage Users',
$session{env}{SCRIPT_NAME}.'/clipboard'=>'View Clipboard',
- $session{env}{SCRIPT_NAME}.'/trash'=>'View Trash'
+ $session{env}{SCRIPT_NAME}.'/trash'=>'View Trash',
+ $session{page}{url}.'?op=purgeTrash'=>'Empty Trash'
);
}
%hash = ( $session{page}{url}=>'Admin...',
diff --git a/lib/WebGUI/ErrorHandler.pm b/lib/WebGUI/ErrorHandler.pm
index 1fb4e2b8c..4d7101f19 100644
--- a/lib/WebGUI/ErrorHandler.pm
+++ b/lib/WebGUI/ErrorHandler.pm
@@ -1,4 +1,4 @@
-package ErrorHandler;
+package WebGUI::ErrorHandler;
#-------------------------------------------------------------------
# WebGUI is Copyright 2001 Plain Black Software.
@@ -15,25 +15,65 @@ use WebGUI::Session;
#-------------------------------------------------------------------
sub fatalError {
- my ($key, $logfile);
- print Session::httpHeader();
- $logfile = FileHandle->new(">".$session{config}{logfile}) or die "Can't open log file.";
- print $logfile localtime(time);
- print "WebGUI Fatal Error
Something unexpected happened that caused this system to fault. Please send this message to ";#.$session{setting}{adminEmail}."
"; + my ($key, $log, $cgi, $logfile, $config); + if (exists $session{cgi}) { + $cgi = $session{cgi}; + } else { + use CGI; + $cgi = CGI->new; + } + print $cgi->header; + if (exists $session{config}{logfile}) { + $logfile = $session{config}{logfile}; + } else { + use Data::Config; + $config = new Data::Config '../etc/WebGUI.conf'; + $logfile = $config->param('logfile'); + } + $log = FileHandle->new(">>$logfile") or die "Can't open log file."; + print "
";
print $0." at ".localtime(time)." reported:
";
+ print $log localtime(time)." ".$0." ".$_[0]."\n";
print $_[0];
print "
| ";
print "Level 1 ".join(" ",caller(1)); + print $log "\t".join(",",caller(1))."\n"; print " | "."Level 2 ".join(" ",caller(2)); + print $log "\t".join(",",caller(2))."\n"; print " | "."Level 3 ".join(" ",caller(3)); - print " | "."Level 4 ".join(" ",caller(4)); - print " |


'; + $output .= '

![]() ![]() | ';
- #$output .= ''.$data[1].' | '; - $output .= ''.$data[1].' | '; - $output .= ''.$data[2].' |
![]() ![]() | ';
+ #$row[$i] .= ''.$data[1].' | '; + $row[$i] .= ''.$data[1].' | '; + $row[$i] .= ''.$data[2].' |

'.$data{linkTitle}.''; diff --git a/lib/WebGUI/Widget/EventsCalendar.pm b/lib/WebGUI/Widget/EventsCalendar.pm index 7a7f19393..b7666fab3 100644 --- a/lib/WebGUI/Widget/EventsCalendar.pm +++ b/lib/WebGUI/Widget/EventsCalendar.pm @@ -18,6 +18,12 @@ use WebGUI::SQL; use WebGUI::Utility; use WebGUI::Widget; +#------------------------------------------------------------------- +sub purge { + WebGUI::SQL->write("delete from event where widgetId=$_[0]",$_[1]); + purgeWidget($_[0],$_[1]); +} + #------------------------------------------------------------------- sub widgetName { return "Events Calendar"; @@ -193,12 +199,12 @@ sub www_view { %data = WebGUI::SQL->quickHash("select * from widget where widget.widgetId='$widgetId'",$session{dbh}); if (defined %data) { if ($data{displayTitle}) { - $output = "
';
}
- $sth = WebGUI::SQL->read("select name, description, date_format(startDate,'%M'), date_format(startDate,'%e'), date_format(startDate,'%Y'), date_format(endDate,'%e') from event where widgetId='$widgetId' and startDate>now() order by startDate",$session{dbh});
+ $sth = WebGUI::SQL->read("select name, description, date_format(startDate,'%M'), date_format(startDate,'%e'), date_format(startDate,'%Y'), date_format(endDate,'%e') from event where widgetId='$widgetId' and to_days(startDate)>(to_days(now())-1) order by startDate",$session{dbh});
while (@event = $sth->array) {
$output .= "$event[2] $event[3]";
if ($event[3] ne $event[5]) {
diff --git a/lib/WebGUI/Widget/ExtraColumn.pm b/lib/WebGUI/Widget/ExtraColumn.pm
index cee9ff7a1..3339d2371 100644
--- a/lib/WebGUI/Widget/ExtraColumn.pm
+++ b/lib/WebGUI/Widget/ExtraColumn.pm
@@ -17,6 +17,12 @@ use WebGUI::SQL;
use WebGUI::Utility;
use WebGUI::Widget;
+#-------------------------------------------------------------------
+sub purge {
+ WebGUI::SQL->write("delete from ExtraColumn where widgetId=$_[0]",$_[1]);
+ purgeWidget($_[0],$_[1]);
+}
+
#-------------------------------------------------------------------
sub widgetName {
return "Extra Column";
diff --git a/lib/WebGUI/Widget/FAQ.pm b/lib/WebGUI/Widget/FAQ.pm
index d01a37a69..61538d4d6 100644
--- a/lib/WebGUI/Widget/FAQ.pm
+++ b/lib/WebGUI/Widget/FAQ.pm
@@ -29,6 +29,12 @@ sub _reorderQuestions {
$sth->finish;
}
+#-------------------------------------------------------------------
+sub purge {
+ WebGUI::SQL->write("delete from faqQuestion where widgetId=$_[0]",$_[1]);
+ purgeWidget($_[0],$_[1]);
+}
+
#-------------------------------------------------------------------
sub widgetName {
return "F.A.Q.";
@@ -103,7 +109,7 @@ sub www_deleteQuestion {
my ($output);
if (WebGUI::Privilege::canEditPage()) {
$output = 'Please Confirm
';
- $output = 'Are you certain that you want to delete this question?
'; diff --git a/lib/WebGUI/Widget/MessageBoard.pm b/lib/WebGUI/Widget/MessageBoard.pm index dbfd8aa33..051a1c93d 100644 --- a/lib/WebGUI/Widget/MessageBoard.pm +++ b/lib/WebGUI/Widget/MessageBoard.pm @@ -43,6 +43,13 @@ sub _traverseReplyTree { return $html; } +#------------------------------------------------------------------- +sub purge { + WebGUI::SQL->write("delete from message where widgetId=$_[0]",$_[1]); + WebGUI::SQL->write("delete from MessageBoard where widgetId=$_[0]",$_[1]); + purgeWidget($_[0],$_[1]); +} + #------------------------------------------------------------------- sub widgetName { return "Message Board"; @@ -310,18 +317,12 @@ sub www_showMessage { #------------------------------------------------------------------- sub www_view { - my ($sth, @data, $html, %board, $itemsPerPage, $currentPage, $totalItems); + my ($sth, @data, $html, %board, $itemsPerPage, $i, @row, $pn); %board = _getBoardProperties($_[0]); $itemsPerPage = $board{messagesPerPage}; - if ($session{form}{pageNumber} < 1) { - $currentPage = 1; - } else { - $currentPage = $session{form}{pageNumber}; - } if ($board{description} ne "") { $html .= $board{description}.'
'; } - ($totalItems) = WebGUI::SQL->quickArray("select count(*) from message where widgetId=$_[0]",$session{dbh}); $html .= '
| '; if ($board{displayTitle}) { $html .= $board{title}; @@ -329,32 +330,34 @@ sub www_view { $html .= ' | Post New Message |
| Subject | Author | Thread Started | Replies | Last Reply |
| '.$data[1].' | '.$data[3].' | '.$data[4].' | '.$data[2].' | '.$data[5].' |
'; @@ -52,7 +52,7 @@ sub _viewResults { %poll = WebGUI::SQL->quickHash("select * from widget,Poll where widget.widgetId=Poll.widgetId and widget.widgetId='$widgetId'",$session{dbh}); if (defined %poll) { if ($poll{displayTitle} == 1) { - $output = "
'; @@ -73,6 +73,13 @@ sub _viewResults { return $output; } +#------------------------------------------------------------------- +sub purge { + WebGUI::SQL->write("delete from pollAnswer where widgetId=$_[0]",$_[1]); + WebGUI::SQL->write("delete from Poll where widgetId=$_[0]",$_[1]); + purgeWidget($_[0],$_[1]); +} + #------------------------------------------------------------------- sub widgetName { return "Poll"; diff --git a/lib/WebGUI/Widget/SQLReport.pm b/lib/WebGUI/Widget/SQLReport.pm index d3cc01968..c96009501 100644 --- a/lib/WebGUI/Widget/SQLReport.pm +++ b/lib/WebGUI/Widget/SQLReport.pm @@ -11,6 +11,7 @@ package WebGUI::Widget::SQLReport; #------------------------------------------------------------------- use strict; +use WebGUI::ErrorHandler; use WebGUI::Macro; use WebGUI::Privilege; use WebGUI::Session; @@ -18,6 +19,12 @@ use WebGUI::SQL; use WebGUI::Utility; use WebGUI::Widget; +#------------------------------------------------------------------- +sub purge { + WebGUI::SQL->write("delete from SQLReport where widgetId=$_[0]",$_[1]); + purgeWidget($_[0],$_[1]); +} + #------------------------------------------------------------------- sub widgetName { return "SQL Report"; @@ -108,7 +115,7 @@ sub www_view { %data = WebGUI::SQL->quickHash("select * from widget,SQLReport where widget.widgetId=$widgetId and widget.widgetId=SQLReport.widgetId",$session{dbh}); if (defined %data) { if ($data{displayTitle} == 1) { - $output = "
'; @@ -119,9 +126,15 @@ sub www_view { $dbh = DBI->connect($data{DSN},$data{username},$data{identifier}); } else { $output .= 'Error: The DSN specified is of an improper format.
'; + WebGUI::ErrorHandler::warn("SQLReport [$widgetId] The DSN specified is of an improper format."); } if (defined $dbh) { - $sth = WebGUI::SQL->read($data{dbQuery},$dbh); + if ($data{dbQuery} =~ /select/i) { + $sth = WebGUI::SQL->read($data{dbQuery},$dbh); + } else { + $output .= 'Error: The SQL query is improperly formatted.
'; + WebGUI::ErrorHandler::warn("SQLReport [$widgetId] The SQL query is improperly formatted."); + } if (defined $sth) { while (@result = $sth->array) { $temp = $template[1]; @@ -133,11 +146,13 @@ sub www_view { } $sth->finish; } else { - $output .= 'Error: There was a problem with the query.'; + $output .= 'Error: There was a problem with the query.
'; + WebGUI::ErrorHandler::warn("SQLReport [$widgetId] There was a problem with the query."); } $dbh->disconnect(); } else { - $output .= 'Error: Could not connect to remote database.'; + $output .= 'Error: Could not connect to remote database.
'; + WebGUI::ErrorHandler::warn("SQLReport [$widgetId] Could not connect to remote database."); } $output .= $template[2]; } diff --git a/lib/WebGUI/Widget/SearchMnoGo.pm b/lib/WebGUI/Widget/SearchMnoGo.pm index 5a235c125..6599cee8b 100644 --- a/lib/WebGUI/Widget/SearchMnoGo.pm +++ b/lib/WebGUI/Widget/SearchMnoGo.pm @@ -27,6 +27,7 @@ sub _mnogoSearch { $dbh = DBI->connect($data{DSN},$data{username},$data{identifier}); } else { $output .= 'Error: The DSN specified is of an improper format.
'; + WebGUI::ErrorHandler::warn("Search (MnoGo) The DSN specified is of an improper format."); } if (defined $dbh) { foreach $word (@keyword) { @@ -38,6 +39,7 @@ sub _mnogoSearch { $sth->finish; } else { $output .= 'Error: There was a problem with the query.
'; + WebGUI::ErrorHandler::warn("Search (MnoGo) There was a problem with the query."); } } foreach $key (sort {$result{$b} <=> $result{$a}} keys %result) { @@ -50,10 +52,17 @@ sub _mnogoSearch { $dbh->disconnect(); } else { $output .= 'Error: Could not connect to remote database.
'; + WebGUI::ErrorHandler::warn("Search (MnoGo) Could not connect to remote database."); } return $output; } +#------------------------------------------------------------------- +sub purge { + WebGUI::SQL->write("delete from SearchMnoGo where widgetId=$_[0]",$_[1]); + purgeWidget($_[0],$_[1]); +} + #------------------------------------------------------------------- sub widgetName { return "Search (MnoGo)"; @@ -63,7 +72,7 @@ sub widgetName { sub www_add { my ($output); if (WebGUI::Privilege::canEditPage()) { - $output = '