From 597b9ff2b020169002faa23d4ff1a8abfff17386 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 27 Aug 2001 02:17:00 +0000 Subject: [PATCH] WebGUI 0.12.0 release --- docs/create.sql | 29 ++++++--- docs/previousVersion.sql | 35 +++++++---- ...0_0.11.0.sql => upgrade-0.11.0_0.12.0.sql} | 33 ++++++---- etc/WebGUI.conf | 1 + extras/jumpDown.gif | Bin 0 -> 868 bytes extras/jumpUp.gif | Bin 0 -> 868 bytes lib/WebGUI.pm | 2 +- lib/WebGUI/ErrorHandler.pm | 40 ++++++------ lib/WebGUI/Macro.pm | 59 ++++++++++++++++-- lib/WebGUI/Operation/User.pm | 2 +- lib/WebGUI/Session.pm | 4 +- lib/WebGUI/Style.pm | 27 ++++---- lib/WebGUI/Utility.pm | 13 ++-- lib/WebGUI/Widget.pm | 27 +++++++- lib/WebGUI/Widget/Article.pm | 2 +- lib/WebGUI/Widget/EventsCalendar.pm | 27 +++++--- lib/WebGUI/Widget/FAQ.pm | 2 +- lib/WebGUI/Widget/LinkList.pm | 27 +++++--- lib/WebGUI/Widget/MessageBoard.pm | 8 +-- lib/WebGUI/Widget/Poll.pm | 2 +- lib/WebGUI/Widget/SQLReport.pm | 22 +++++-- lib/WebGUI/Widget/SearchMnoGo.pm | 18 +++--- lib/WebGUI/Widget/SiteMap.pm | 2 +- lib/WebGUI/Widget/SyndicatedContent.pm | 6 +- lib/WebGUI/Widget/UserSubmission.pm | 18 +++--- uploads/7/1/cdownloadsfootballindex.html | 54 ++++++++++++++++ uploads/7/1/cdownloadsfootballlogo.gif | Bin 0 -> 16732 bytes www/env.pl | 6 ++ 28 files changed, 344 insertions(+), 122 deletions(-) rename docs/{upgrade-0.10.0_0.11.0.sql => upgrade-0.11.0_0.12.0.sql} (67%) create mode 100644 extras/jumpDown.gif create mode 100644 extras/jumpUp.gif create mode 100644 uploads/7/1/cdownloadsfootballindex.html create mode 100644 uploads/7/1/cdownloadsfootballlogo.gif create mode 100755 www/env.pl diff --git a/docs/create.sql b/docs/create.sql index 989860b2f..d84bf7cb0 100644 --- a/docs/create.sql +++ b/docs/create.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/previousVersion.sql b/docs/previousVersion.sql index daeae782b..989860b2f 100644 --- a/docs/previousVersion.sql +++ b/docs/previousVersion.sql @@ -315,24 +315,35 @@ CREATE TABLE 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 other content 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 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 (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 really no reason to ever 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 know 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 manually re-adding the user to the users table manually.\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 (8,'US English','Manage','User','Users are the accounts in the system given rights to do 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 subdivided 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 instead just whether users 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 (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','Content','As the function suggests you\'ll be deleting some content 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 (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','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^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'); +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 (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'); # # Table structure for table 'incrementer' @@ -460,7 +471,8 @@ INSERT INTO page VALUES (2,0,'Clipboard',2,45,1,1,4,1,1,0,0,1,'','clipboard'); CREATE TABLE pollAnswer ( widgetId int(11) NOT NULL default '0', answer char(3) default NULL, - userId int(11) default NULL + userId int(11) default NULL, + ipAddress varchar(50) default NULL ) TYPE=MyISAM; # @@ -491,6 +503,7 @@ CREATE TABLE session ( expires datetime default NULL, lastPageView datetime default NULL, adminOn int(11) NOT NULL default '0', + lastIP varchar(50) default NULL, PRIMARY KEY (sessionId) ) TYPE=MyISAM; @@ -517,7 +530,7 @@ INSERT INTO settings VALUES ('attachmentDirectoryWeb','/uploads'); INSERT INTO settings VALUES ('maxAttachmentSize','300'); INSERT INTO settings VALUES ('lib','/extras'); INSERT INTO settings VALUES ('sessionTimeout','28000'); -INSERT INTO settings VALUES ('attachmentDirectoryLocal','/path/to/uploads/folder'); +INSERT INTO settings VALUES ('attachmentDirectoryLocal','/data/WebGUI/uploads'); INSERT INTO settings VALUES ('smtpServer','smtp.mycompany.com'); INSERT INTO settings VALUES ('companyEmail','info@mycompany.com'); INSERT INTO settings VALUES ('companyName','My Company'); diff --git a/docs/upgrade-0.10.0_0.11.0.sql b/docs/upgrade-0.11.0_0.12.0.sql similarity index 67% rename from docs/upgrade-0.10.0_0.11.0.sql rename to docs/upgrade-0.11.0_0.12.0.sql index 244b5feed..9360dad9b 100644 --- a/docs/upgrade-0.10.0_0.11.0.sql +++ b/docs/upgrade-0.11.0_0.12.0.sql @@ -1,3 +1,4 @@ +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'); @@ -16,21 +17,31 @@ 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'); - -alter table pollAnswer add column ipAddress varchar(50); -alter table session add column lastIP varchar(50); - +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/etc/WebGUI.conf b/etc/WebGUI.conf index 4c49d0c93..4ff0cb101 100644 --- a/etc/WebGUI.conf +++ b/etc/WebGUI.conf @@ -1,3 +1,4 @@ dsn = DBI:mysql:WebGUI dbuser = webgui dbpass = password +logfile = /data/webgui-`date +%Y%m%d`.log diff --git a/extras/jumpDown.gif b/extras/jumpDown.gif new file mode 100644 index 0000000000000000000000000000000000000000..dc509886d458509994955ca7f8f0f0f65d73cca5 GIT binary patch literal 868 zcmZ?wbhEHb&^_LCtfWw{)bpHi&9U{lG3+I N$=tBKp@D(H8UVbK6*T|= literal 0 HcmV?d00001 diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index 8d042d481..823161b29 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -135,7 +135,7 @@ sub page { $sth = WebGUI::SQL->read("select widgetId, widgetType from widget where pageId=".$session{page}{pageId}." order by sequenceNumber, widgetId",$session{dbh}); while (@widgetList = $sth->array) { if ($session{var}{adminOn}) { - $content .= '

'; + $content .= '

'; } $widget = "WebGUI::Widget::".$widgetList[1]."::www_view"; $content .= &$widget($widgetList[0])."

"; diff --git a/lib/WebGUI/ErrorHandler.pm b/lib/WebGUI/ErrorHandler.pm index 83e2e1ac1..1fb4e2b8c 100644 --- a/lib/WebGUI/ErrorHandler.pm +++ b/lib/WebGUI/ErrorHandler.pm @@ -10,26 +10,30 @@ package ErrorHandler; # http://www.plainblack.com info@plainblack.com #------------------------------------------------------------------- +use FileHandle; +use WebGUI::Session; #------------------------------------------------------------------- -#sub fatalError { -# my ($key); -# print httpHeader(); -# print "

WebGUI Fatal Error

Something unexpected happened that caused this system to fault. Please send t -his message to ";#.$session{setting}{adminEmail}."

"; -# print $0." at ".localtime(time)." reported:
"; -# print $_[0]; -# print "

Caller

"; -# print "Level 1
".join("
",caller(1)); -# print "
"."Level 2
".join("
",caller(2)); -# print "
"."Level 3
".join("
",caller(3)); -# print "
"."Level 4
".join("
",caller(4)); -# print "

Form Variables

"; -# #foreach $key (keys %session(form}) { -# # print $key." = ".$session{form}{$key}."
"; -# #} -# exit; -#} +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}."

"; + print $0." at ".localtime(time)." reported:
"; + print $_[0]; + print "

Caller

"; + print "Level 1
".join("
",caller(1)); + print "
"."Level 2
".join("
",caller(2)); + print "
"."Level 3
".join("
",caller(3)); + print "
"."Level 4
".join("
",caller(4)); + print "

Form Variables

"; + #foreach $key (keys %{$session(form}}) { + # print $key." = ".$session{form}{$key}."
"; + #} + $logfile->close(); + exit; +} diff --git a/lib/WebGUI/Macro.pm b/lib/WebGUI/Macro.pm index 6b725e52e..d000ed259 100644 --- a/lib/WebGUI/Macro.pm +++ b/lib/WebGUI/Macro.pm @@ -36,8 +36,8 @@ sub _traversePageTree { } else { $toLevel = 99; } - for ($i=0;$i<=$_[1];$i++) { - $depth .= "  "; + for ($i=1;$i<=$_[1];$i++) { + $depth .= "   "; } if ($_[1] < $toLevel) { $sth = WebGUI::SQL->read("select urlizedTitle, title, pageId from page where parentId='$_[0]' order by sequenceNumber",$session{dbh}); @@ -102,17 +102,23 @@ sub process { } #---full menu (vertical)--- if ($output =~ /\^f/) { - $temp = _traversePageTree(1,0); + $temp = ''; + $temp .= _traversePageTree(1,0); + $temp .= ''; $output =~ s/\^f/$temp/g; } #---2 level menu (vertical)--- if ($output =~ /\^F/) { - $temp = _traversePageTree(1,0,2); + $temp = ''; + $temp .= _traversePageTree(1,0,2); + $temp .= ''; $output =~ s/\^F/$temp/g; } #---3 level menu (vertical)--- if ($output =~ /\^h/) { - $temp = _traversePageTree(1,0,3); + $temp = ''; + $temp .= _traversePageTree(1,0,3); + $temp .= ''; $output =~ s/\^h/$temp/g; } #---home link--- @@ -168,6 +174,49 @@ sub process { $temp .= ''; $output =~ s/\^m/$temp/g; } + #---previous menu vertical--- + if ($output =~ /\^P/) { + $temp = ''; + $sth = WebGUI::SQL->read("select title,urlizedTitle,pageId from page where parentId=$session{page}{parentId} order by sequenceNumber",$session{dbh}); + while (@data = $sth->array) { + if (WebGUI::Privilege::canViewPage($data[2])) { + $temp .= ''.$data[0].'
'; + } + } + $sth->finish; + $temp .= '
'; + $output =~ s/\^P/$temp/g; + } + #---previous menu horizontal --- + if ($output =~ /\^p/) { + $temp = ''; + $first = 1; + $sth = WebGUI::SQL->read("select title,urlizedTitle,pageId from page where parentId=$session{page}{parentId} order by sequenceNumber",$session{dbh}); + while (@data = $sth->array) { + if (WebGUI::Privilege::canViewPage($data[2])) { + if ($first) { + $first = 0; + } else { + $temp .= " · "; + } + $temp .= ''.$data[0].''; + } + } + $sth->finish; + $temp .= ''; + $output =~ s/\^p/$temp/g; + } + #---remove style for printing link--- + if ($output =~ /\^r/) { + $temp = $session{env}{REQUEST_URI}; + if ($temp =~ /\?/) { + $temp .= '&makePrintable=1'; + } else { + $temp .= '?makePrintable=1'; + } + $temp = 'Make Page Printable'; + $output =~ s/\^r/$temp/g; + } #---top menu vertical--- if ($output =~ /\^T/) { $temp = ''; diff --git a/lib/WebGUI/Operation/User.pm b/lib/WebGUI/Operation/User.pm index 89c8edbdd..e81fcb789 100644 --- a/lib/WebGUI/Operation/User.pm +++ b/lib/WebGUI/Operation/User.pm @@ -50,7 +50,7 @@ sub www_addUser { sub www_addUserSave { my ($output, @groups, $uid, $gid, $encryptedPassword, $passwordStatement); if (WebGUI::Privilege::isInGroup(3)) { - $encryptedPassword = Digest::MD5::md5_base64($session{form}{identifier1}); + $encryptedPassword = Digest::MD5::md5_base64($session{form}{identifier}); $passwordStatement = ', identifier='.quote($encryptedPassword); $uid = getNextId("userId"); WebGUI::SQL->write("insert into user set userId=$uid, username=".quote($session{form}{username}).$passwordStatement.", email=".quote($session{form}{email}).", icq=".quote($session{form}{icq}),$session{dbh}); diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index 4af074c71..78b5492d2 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -94,7 +94,7 @@ sub httpRedirect { #------------------------------------------------------------------- sub open { my ($key, %WebGUI, %CONFIG, %VARS, %PAGE, %FORM, $query, %COOKIES, $config, %USER, %SETTINGS, $dbh); - %WebGUI = (version=>"0.11.0", date=>"2001-08-22"); + %WebGUI = (version=>"0.12.0", date=>"2001-08-26"); $config = new WebGUI::Config '../etc/WebGUI.conf'; foreach ($config->param) { $CONFIG{$_} = $config->param($_); @@ -114,7 +114,7 @@ sub open { %PAGE = _getPageInfo("",$dbh); %session = ( env => \%ENV, # environment variables from the web server - # config=> \%CONFIG, # variables loaded from the config file + config=> \%CONFIG, # variables loaded from the config file user => \%USER, # the user's account information var => \%VARS, # session specific variables form => \%FORM, # variables passed in from a form diff --git a/lib/WebGUI/Style.pm b/lib/WebGUI/Style.pm index 51787cb36..09f6c8723 100644 --- a/lib/WebGUI/Style.pm +++ b/lib/WebGUI/Style.pm @@ -18,17 +18,22 @@ use WebGUI::SQL; #------------------------------------------------------------------- sub getStyle { my ($header, $footer, @style, %style); - %style = WebGUI::SQL->quickHash("select header,footer,styleSheet from style where styleId=$session{page}{styleId}",$session{dbh}); - $header = ' - - '.$session{page}{title}.''.$style{styleSheet}.$session{page}{metaTags}.' - - - - '.$style{header}; - $footer = $style{footer}; - $header = WebGUI::Macro::process($header); - $footer = WebGUI::Macro::process($footer); + if ($session{form}{makePrintable}) { + $header = ''.$session{page}{title}.''; + $footer = ''; + } else { + %style = WebGUI::SQL->quickHash("select header,footer,styleSheet from style where styleId=$session{page}{styleId}",$session{dbh}); + $header = ' + + + '.$session{page}{title}.''.$style{styleSheet}.$session{page}{metaTags}.' + + + '.$style{header}; + $footer = $style{footer}.''; + $header = WebGUI::Macro::process($header); + $footer = WebGUI::Macro::process($footer); + } return ($header, $footer); } diff --git a/lib/WebGUI/Utility.pm b/lib/WebGUI/Utility.pm index d1c37ee6a..3d206af93 100644 --- a/lib/WebGUI/Utility.pm +++ b/lib/WebGUI/Utility.pm @@ -46,16 +46,21 @@ sub round { } #------------------------------------------------------------------- -# eg: saveAttachment(formVarName,widgetId); +# eg: saveAttachment(formVarName,widgetId,optionallySubmissionId); sub saveAttachment { - my ($file, $filename, $bytesread, $buffer, $urlizedFilename); + my ($file, $filename, $bytesread, $buffer, $urlizedFilename, $path); $filename = $session{cgi}->upload($_[0]); #$filename = $session{form}{$_[0]}; #$filename = $session{cgi}->param($_[0]); if (defined $filename) { $urlizedFilename = urlizeTitle($filename); - mkdir ($session{setting}{attachmentDirectoryLocal}."/".$_[1],0755); - $file = FileHandle->new(">".$session{setting}{attachmentDirectoryLocal}."/".$_[1]."/".$urlizedFilename); + $path = $session{setting}{attachmentDirectoryLocal}."/".$_[1]."/"; + mkdir ($path,0755); + if ($_[2] ne "") { + $path = $path.$_[2].'/'; + mkdir ($path,0755); + } + $file = FileHandle->new(">".$path.$urlizedFilename); if (defined $file) { while ($bytesread=read($filename,$buffer,1024)) { print $file $buffer; diff --git a/lib/WebGUI/Widget.pm b/lib/WebGUI/Widget.pm index 4f7913e89..cb5a45f0f 100644 --- a/lib/WebGUI/Widget.pm +++ b/lib/WebGUI/Widget.pm @@ -19,15 +19,15 @@ use WebGUI::SQL; use WebGUI::Utility; our @ISA = qw(Exporter); -our @EXPORT = qw(&update &www_moveUp &www_moveDown &www_delete &www_deleteConfirm &www_cut &create &www_paste); +our @EXPORT = qw(&www_jumpDown &www_jumpUp &update &www_moveUp &www_moveDown &www_delete &www_deleteConfirm &www_cut &create &www_paste); #------------------------------------------------------------------- sub _reorderWidgets { my ($sth, $i, $wid); $sth = WebGUI::SQL->read("select widgetId from widget where pageId=$_[0] order by sequenceNumber",$session{dbh}); while (($wid) = $sth->array) { - WebGUI::SQL->write("update widget set sequenceNumber='$i' where widgetId=$wid",$session{dbh}); $i++; + WebGUI::SQL->write("update widget set sequenceNumber='$i' where widgetId=$wid",$session{dbh}); } $sth->finish; } @@ -82,6 +82,29 @@ sub www_deleteConfirm { } } +#------------------------------------------------------------------- +sub www_jumpDown { + my (@data, $thisSeq); + if (WebGUI::Privilege::canEditPage()) { + WebGUI::SQL->write("update widget set sequenceNumber=9999 where widgetId=$session{form}{wid}",$session{dbh}); + _reorderWidgets($session{page}{pageId}); + return ""; + } else { + return WebGUI::Privilege::insufficient(); + } +} + +#------------------------------------------------------------------- +sub www_jumpUp { + my (@data, $thisSeq); + if (WebGUI::Privilege::canEditPage()) { + WebGUI::SQL->write("update widget set sequenceNumber=0 where widgetId=$session{form}{wid}",$session{dbh}); + _reorderWidgets($session{page}{pageId}); + return ""; + } else { + return WebGUI::Privilege::insufficient(); + } +} #------------------------------------------------------------------- sub www_moveDown { my (@data, $thisSeq); diff --git a/lib/WebGUI/Widget/Article.pm b/lib/WebGUI/Widget/Article.pm index b6d184e36..ce3965f8c 100644 --- a/lib/WebGUI/Widget/Article.pm +++ b/lib/WebGUI/Widget/Article.pm @@ -31,7 +31,7 @@ sub www_add { $output .= WebGUI::Form::hidden("widget","Article"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= ''; diff --git a/lib/WebGUI/Widget/EventsCalendar.pm b/lib/WebGUI/Widget/EventsCalendar.pm index 3fb36b5e4..7a7f19393 100644 --- a/lib/WebGUI/Widget/EventsCalendar.pm +++ b/lib/WebGUI/Widget/EventsCalendar.pm @@ -11,6 +11,7 @@ package WebGUI::Widget::EventsCalendar; #------------------------------------------------------------------- use strict; +use WebGUI::Macro; use WebGUI::Privilege; use WebGUI::Session; use WebGUI::SQL; @@ -26,12 +27,14 @@ sub widgetName { sub www_add { my ($output); if (WebGUI::Privilege::canEditPage()) { - $output = '

Add Events Calendar

'; + $output = '

Add Events Calendar

'; $output .= WebGUI::Form::hidden("widget","EventsCalendar"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= '
Title'.WebGUI::Form::text("title",20,30).'
Title'.WebGUI::Form::text("title",20,30,'Article').'
Display the title?'.WebGUI::Form::checkbox("displayTitle",1).'
Process macros?'.WebGUI::Form::checkbox("processMacros",1,1).'
Start Date'.WebGUI::Form::text("startDate",20,30,'01/01/2000',1).'
'; - $output .= ''; - $output .= ''; + $output .= ''; + $output .= ''; + $output .= ''; + $output .= ''; $output .= ''; $output .= '
Title'.WebGUI::Form::text("title",20,30).'
Display the title?'.WebGUI::Form::checkbox("displayTitle","1").'
Title'.WebGUI::Form::text("title",20,30,'Events Calendar').'
Display the title?'.WebGUI::Form::checkbox("displayTitle",1).'
Process macros?'.WebGUI::Form::checkbox("processMacros",1).'
Description'.WebGUI::Form::textArea("description").'
'.WebGUI::Form::submit("save").'
'; return $output; @@ -113,13 +116,15 @@ sub www_deleteEventConfirm { sub www_edit { my ($output, %data, @event, $sth); if (WebGUI::Privilege::canEditPage()) { - %data = WebGUI::SQL->quickHash("select widget.title, widget.displayTitle from widget where widget.widgetId=$session{form}{wid}",$session{dbh}); - $output = '

Edit Events Calendar

'; + %data = WebGUI::SQL->quickHash("select * from widget where widget.widgetId=$session{form}{wid}",$session{dbh}); + $output = '

Edit Events Calendar

'; $output .= WebGUI::Form::hidden("wid",$session{form}{wid}); $output .= WebGUI::Form::hidden("func","editSave"); $output .= ''; $output .= ''; - $output .= ''; + $output .= ''; + $output .= ''; + $output .= ''; $output .= ''; $output .= '
Title'.WebGUI::Form::text("title",20,30,$data{title}).'
Display the title?'.WebGUI::Form::checkbox("displayTitle","1",$data{displayTitle}).'
Display the title?'.WebGUI::Form::checkbox("displayTitle",1,$data{displayTitle}).'
Process macros?'.WebGUI::Form::checkbox("processMacros",1,$data{processMacros}).'
Description'.WebGUI::Form::textArea("description",$data{description}).'
'.WebGUI::Form::submit("save").'
'; $output .= '

Add New Event

'; @@ -185,11 +190,14 @@ sub www_editEventSave { sub www_view { my (%data, @event, $output, $widgetId, $sth); $widgetId = shift; - %data = WebGUI::SQL->quickHash("select widget.title, widget.displayTitle from widget where widget.widgetId='$widgetId'",$session{dbh}); + %data = WebGUI::SQL->quickHash("select * from widget where widget.widgetId='$widgetId'",$session{dbh}); if (defined %data) { - if ($data{displayTitle} == 1) { + if ($data{displayTitle}) { $output = "

".$data{title}."

"; } + if ($data{description} ne "") { + $output .= $data{description}.'

'; + } $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}); while (@event = $sth->array) { $output .= "$event[2] $event[3]"; @@ -206,6 +214,9 @@ sub www_view { $output .= '

'; } $sth->finish; + if ($data{processMacros}) { + $output = WebGUI::Macro::process($output); + } } return $output; } diff --git a/lib/WebGUI/Widget/FAQ.pm b/lib/WebGUI/Widget/FAQ.pm index ebbcca8d4..d01a37a69 100644 --- a/lib/WebGUI/Widget/FAQ.pm +++ b/lib/WebGUI/Widget/FAQ.pm @@ -42,7 +42,7 @@ sub www_add { $output .= WebGUI::Form::hidden("widget","FAQ"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= ''; diff --git a/lib/WebGUI/Widget/LinkList.pm b/lib/WebGUI/Widget/LinkList.pm index 08749c4c1..787de402b 100644 --- a/lib/WebGUI/Widget/LinkList.pm +++ b/lib/WebGUI/Widget/LinkList.pm @@ -11,6 +11,7 @@ package WebGUI::Widget::LinkList; #------------------------------------------------------------------- use strict; +use WebGUI::Macro; use WebGUI::Privilege; use WebGUI::Session; use WebGUI::SQL; @@ -37,12 +38,14 @@ sub widgetName { sub www_add { my ($output); if (WebGUI::Privilege::canEditPage()) { - $output = '

Add Link List

'; + $output = '

Add Link List

'; $output .= WebGUI::Form::hidden("widget","LinkList"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= '
Title'.WebGUI::Form::text("title",20,30).'
Title'.WebGUI::Form::text("title",20,30,'F.A.Q.').'
Display the title?'.WebGUI::Form::checkbox("displayTitle",1,1).'
Process Macros?'.WebGUI::Form::checkbox("processMacros",1,1).'
Description'.WebGUI::Form::textArea("description").'
'; - $output .= ''; - $output .= ''; + $output .= ''; + $output .= ''; + $output .= ''; + $output .= ''; $output .= ''; $output .= '
Title'.WebGUI::Form::text("title",20,30).'
Display the title?'.WebGUI::Form::checkbox("displayTitle","1").'
Title'.WebGUI::Form::text("title",20,30,'Link List').'
Display the title?'.WebGUI::Form::checkbox("displayTitle",1,1).'
Process macros?'.WebGUI::Form::checkbox("processMacros",1).'
Description'.WebGUI::Form::textArea("description").'
'.WebGUI::Form::submit("save").'
'; return $output; @@ -125,13 +128,15 @@ sub www_deleteLinkConfirm { sub www_edit { my ($output, %data, @link, $sth); if (WebGUI::Privilege::canEditPage()) { - %data = WebGUI::SQL->quickHash("select widget.title, widget.displayTitle from widget where widget.widgetId=$session{form}{wid}",$session{dbh}); - $output = '

Edit Link List

'; + %data = WebGUI::SQL->quickHash("select * from widget where widget.widgetId=$session{form}{wid}",$session{dbh}); + $output = '

Edit Link List

'; $output .= WebGUI::Form::hidden("wid",$session{form}{wid}); $output .= WebGUI::Form::hidden("func","editSave"); $output .= ''; $output .= ''; - $output .= ''; + $output .= ''; + $output .= ''; + $output .= ''; $output .= ''; $output .= '
Title'.WebGUI::Form::text("title",20,30,$data{title}).'
Display the title?'.WebGUI::Form::checkbox("displayTitle","1",$data{displayTitle}).'
Display the title?'.WebGUI::Form::checkbox("displayTitle",1,$data{displayTitle}).'
Process macros?'.WebGUI::Form::checkbox("processMacros",1,$data{processMacros}).'
Description'.WebGUI::Form::textArea("description",$data{description}).'
'.WebGUI::Form::submit("save").'
'; $output .= '

Add New Link

'; @@ -226,11 +231,14 @@ sub www_moveLinkUp { sub www_view { my (%data, @link, $output, $widgetId, $sth); $widgetId = shift; - %data = WebGUI::SQL->quickHash("select widget.title, widget.displayTitle from widget where widget.widgetId='$widgetId'",$session{dbh}); + %data = WebGUI::SQL->quickHash("select * from widget where widget.widgetId='$widgetId'",$session{dbh}); if (defined %data) { - if ($data{displayTitle} == 1) { + if ($data{displayTitle}) { $output = "

".$data{title}."

"; } + if ($data{description} ne "") { + $output .= $data{description}.'

'; + } $sth = WebGUI::SQL->read("select name, url, description from link where widgetId='$widgetId' order by sequenceNumber",$session{dbh}); while (@link = $sth->array) { $output .= '

  • '.$link[0].''; @@ -240,6 +248,9 @@ sub www_view { $output .= '
    '; } $sth->finish; + if ($data{processMacros}) { + $output = WebGUI::Macro::process($output); + } } return $output; } diff --git a/lib/WebGUI/Widget/MessageBoard.pm b/lib/WebGUI/Widget/MessageBoard.pm index 9cb529285..dbfd8aa33 100644 --- a/lib/WebGUI/Widget/MessageBoard.pm +++ b/lib/WebGUI/Widget/MessageBoard.pm @@ -53,11 +53,11 @@ sub www_add { my ($output, %hash); tie %hash, "Tie::IxHash"; if (WebGUI::Privilege::canEditPage()) { - $output = '

    Add Message Board

    '; + $output = '

    Add Message Board

    '; $output .= WebGUI::Form::hidden("widget","MessageBoard"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; %hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName",$session{dbh}); @@ -91,7 +91,7 @@ sub www_edit { tie %hash, "Tie::IxHash"; if (WebGUI::Privilege::canEditPage()) { %board = _getBoardProperties($session{form}{wid}); - $output = '

    Edit Message Board

    '; + $output = '

    Edit Message Board

    '; $output .= WebGUI::Form::hidden("wid",$session{form}{wid}); $output .= WebGUI::Form::hidden("func","editSave"); $output .= '
    Title'.WebGUI::Form::text("title",20,30).'
    Title'.WebGUI::Form::text("title",20,30,'Message Board').'
    Display the title?'.WebGUI::Form::checkbox("displayTitle",1,1).'
    Description'.WebGUI::Form::textArea("description",'').'
    '; @@ -276,7 +276,7 @@ sub www_showMessage { $html .= "Subject: ".$message{subject}."
    "; $html .= "Author: ".$message{username}."
    "; $html .= "Date: ".$message{dateOfPost}."
    "; - $html .= "Message ID: ".$message{widgetId}."-".$message{rid}."-".$message{pid}."-".$message{mid}."
    "; + $html .= "Message ID: ".$message{widgetId}."-".$message{rid}."-".$message{pid}."-".$message{messageId}."
    "; $html .= ''; $html .= ''; $output .= ''; $output .= ''; + $output .= ''; $output .= ''; $output .= '
    '; $message{message} =~ s/\n/\/g; diff --git a/lib/WebGUI/Widget/Poll.pm b/lib/WebGUI/Widget/Poll.pm index 8386c5229..f39b66458 100644 --- a/lib/WebGUI/Widget/Poll.pm +++ b/lib/WebGUI/Widget/Poll.pm @@ -87,7 +87,7 @@ sub www_add { $output .= WebGUI::Form::hidden("widget","Poll"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= ''; diff --git a/lib/WebGUI/Widget/SQLReport.pm b/lib/WebGUI/Widget/SQLReport.pm index 2fa69b9a1..d3cc01968 100644 --- a/lib/WebGUI/Widget/SQLReport.pm +++ b/lib/WebGUI/Widget/SQLReport.pm @@ -31,15 +31,16 @@ sub www_add { $output .= WebGUI::Form::hidden("widget","SQLReport"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= '
    Title'.WebGUI::Form::text("title",20,30).'
    Title'.WebGUI::Form::text("title",20,30,'Poll').'
    Display the title?'.WebGUI::Form::checkbox("displayTitle",1).'
    Description'.WebGUI::Form::textArea("description",'').'
    Active'.WebGUI::Form::checkbox("active",1,1).'
    '; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; - $output .= ''; - $output .= ''; + $output .= ''; + $output .= ''; $output .= ''; + $output .= ''; $output .= ''; $output .= '
    Title'.WebGUI::Form::text("title",20,30).'
    Title'.WebGUI::Form::text("title",20,30,'SQL Report').'
    Display the title?'.WebGUI::Form::checkbox("displayTitle",1,1).'
    Process macros?'.WebGUI::Form::checkbox("processMacros",1,1).'
    Description'.WebGUI::Form::textArea("description",'','','',1).'
    Template'.WebGUI::Form::textArea("template",'','','',1).'
    Query'.WebGUI::Form::textArea("dbQuery",'').'
    DSN'.WebGUI::Form::text("DSN",20,255,"DBI:mysql:").'
    Database User'.WebGUI::Form::text("username",20,255).'
    DSN'.WebGUI::Form::text("DSN",20,255,$session{config}{dsn}).'
    Database User'.WebGUI::Form::text("username",20,255,$session{config}{dbuser}).'
    Database Password'.WebGUI::Form::password("identifier",20,255).'
    Convert carriage returns?'.WebGUI::Form::checkbox("convertCarriageReturns",1).'
    '.WebGUI::Form::submit("save").'
    '; return $output; @@ -54,7 +55,7 @@ sub www_addSave { my ($widgetId); if (WebGUI::Privilege::canEditPage()) { $widgetId = create(); - WebGUI::SQL->write("insert into SQLReport set widgetId=$widgetId, template=".quote($session{form}{template}).", dBquery=".quote($session{form}{dbQuery}).", DSN=".quote($session{form}{DSN}).", username=".quote($session{form}{username}).", identifier=".quote($session{form}{identifier}),$session{dbh}); + WebGUI::SQL->write("insert into SQLReport set widgetId=$widgetId, convertCarriageReturns='$session{form}{convertCarriageReturns}', template=".quote($session{form}{template}).", dBquery=".quote($session{form}{dbQuery}).", DSN=".quote($session{form}{DSN}).", username=".quote($session{form}{username}).", identifier=".quote($session{form}{identifier}),$session{dbh}); return ""; } else { return WebGUI::Privilege::insufficient(); @@ -79,6 +80,7 @@ sub www_edit { $output .= '
    DSN'.WebGUI::Form::text("DSN",20,255,$data{DSN}).'
    Database User'.WebGUI::Form::text("username",20,255,$data{username}).'
    Database Password'.WebGUI::Form::password("identifier",20,255,$data{identifier}).'
    Convert carriage returns?'.WebGUI::Form::checkbox("convertCarriageReturns",1,$data{convertCarriageReturns}).'
    '.WebGUI::Form::submit("save").'
    '; return $output; @@ -92,7 +94,7 @@ sub www_editSave { my ($widgetId, $displayTitle, $image, $attachment); if (WebGUI::Privilege::canEditPage()) { update(); - WebGUI::SQL->write("update SQLReport set template=".quote($session{form}{template}).", dbQuery=".quote($session{form}{dbQuery}).", DSN=".quote($session{form}{DSN}).", username=".quote($session{form}{username}).", identifier=".quote($session{form}{identifier})." where widgetId=$session{form}{wid}",$session{dbh}); + WebGUI::SQL->write("update SQLReport set template=".quote($session{form}{template}).", dbQuery=".quote($session{form}{dbQuery}).", convertCarriageReturns='$session{form}{convertCarriageReturns}', DSN=".quote($session{form}{DSN}).", username=".quote($session{form}{username}).", identifier=".quote($session{form}{identifier})." where widgetId=$session{form}{wid}",$session{dbh}); return ""; } else { return WebGUI::Privilege::insufficient(); @@ -113,19 +115,27 @@ sub www_view { } @template = split(/\^\-/,$data{template}); $output .= $template[0]; - $dbh = DBI->connect($data{DSN}, $data{username}, $data{identifier}); + if ($data{DSN} =~ /\DBI\:\w+\:\w+/) { + $dbh = DBI->connect($data{DSN},$data{username},$data{identifier}); + } else { + $output .= 'Error: The DSN specified is of an improper format.

    '; + } if (defined $dbh) { $sth = WebGUI::SQL->read($data{dbQuery},$dbh); if (defined $sth) { while (@result = $sth->array) { $temp = $template[1]; $temp =~ s/\^(\d)/$result[$1]/g; + if ($data{convertCarriageReturns}) { + $temp =~ s/\n/\/g; + } $output .= $temp; } $sth->finish; } else { $output .= 'Error: There was a problem with the query.'; } + $dbh->disconnect(); } else { $output .= 'Error: Could not connect to remote database.'; } diff --git a/lib/WebGUI/Widget/SearchMnoGo.pm b/lib/WebGUI/Widget/SearchMnoGo.pm index 5f9d531d7..5a235c125 100644 --- a/lib/WebGUI/Widget/SearchMnoGo.pm +++ b/lib/WebGUI/Widget/SearchMnoGo.pm @@ -23,7 +23,11 @@ sub _mnogoSearch { my ($i, %match, $key, $sth, $dbh, $urlId, %data, $output, @keyword, $word, %result); %data = @_; @keyword = split(/ /,$session{form}{query}); - $dbh = DBI->connect($data{DSN},$data{username},$data{identifier}); + if ($data{DSN} =~ /\DBI\:\w+\:\w+/) { + $dbh = DBI->connect($data{DSN},$data{username},$data{identifier}); + } else { + $output .= 'Error: The DSN specified is of an improper format.

    '; + } if (defined $dbh) { foreach $word (@keyword) { $sth = WebGUI::SQL->read("select url_id from dict where soundex(word)=soundex(lcase('$word'))",$dbh); @@ -33,7 +37,7 @@ sub _mnogoSearch { } $sth->finish; } else { - $output .= 'Error: There was a problem with the query.'; + $output .= 'Error: There was a problem with the query.

    '; } } foreach $key (sort {$result{$b} <=> $result{$a}} keys %result) { @@ -43,10 +47,10 @@ sub _mnogoSearch { } $i++; } + $dbh->disconnect(); } else { - $output .= 'Error: Could not connect to remote database.'; + $output .= 'Error: Could not connect to remote database.

    '; } - $dbh->disconnect(); return $output; } @@ -63,11 +67,11 @@ sub www_add { $output .= WebGUI::Form::hidden("widget","SearchMnoGo"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; - $output .= ''; - $output .= ''; + $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= '
    Title'.WebGUI::Form::text("title",20,30).'
    Title'.WebGUI::Form::text("title",20,30,'Search (MnoGo)').'
    Display the title?'.WebGUI::Form::checkbox("displayTitle",1).'
    Description'.WebGUI::Form::textArea("description",'',50,5,1).'
    DSN'.WebGUI::Form::text("DSN",20,255).'
    Database User'.WebGUI::Form::text("username",20,255).'
    DSN'.WebGUI::Form::text("DSN",20,255,$session{config}{dsn}).'
    Database User'.WebGUI::Form::text("username",20,255,$session{config}{dbuser}).'
    Database Password'.WebGUI::Form::password("identifier",20,255).'
    '.WebGUI::Form::submit("save").'
    '; diff --git a/lib/WebGUI/Widget/SiteMap.pm b/lib/WebGUI/Widget/SiteMap.pm index e723e94a8..377f31b3d 100644 --- a/lib/WebGUI/Widget/SiteMap.pm +++ b/lib/WebGUI/Widget/SiteMap.pm @@ -47,7 +47,7 @@ sub www_add { $output .= WebGUI::Form::hidden("widget","SiteMap"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= ''; diff --git a/lib/WebGUI/Widget/SyndicatedContent.pm b/lib/WebGUI/Widget/SyndicatedContent.pm index 735db6658..c01a8077f 100644 --- a/lib/WebGUI/Widget/SyndicatedContent.pm +++ b/lib/WebGUI/Widget/SyndicatedContent.pm @@ -27,11 +27,11 @@ sub widgetName { sub www_add { my ($output); if (WebGUI::Privilege::canEditPage()) { - $output = '

    Add Syndicated Content

    '; + $output = '

    Add Syndicated Content

    '; $output .= WebGUI::Form::hidden("widget","SyndicatedContent"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= '
    Title'.WebGUI::Form::text("title",20,30).'
    Title'.WebGUI::Form::text("title",20,30,'Site Map').'
    Display title?'.WebGUI::Form::checkbox("displayTitle",1).'
    Description'.WebGUI::Form::textArea("description",'').'
    Starting from this level?'.WebGUI::Form::checkbox("startAtThisLevel",1,1).'
    '; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; $output .= ''; @@ -61,7 +61,7 @@ sub www_edit { my ($output, %data); if (WebGUI::Privilege::canEditPage()) { %data = WebGUI::SQL->quickHash("select * from widget,SyndicatedContent where widget.widgetId=$session{form}{wid}",$session{dbh}); - $output = '

    Edit Syndicated Content

    '; + $output = '

    Edit Syndicated Content

    '; $output .= WebGUI::Form::hidden("wid",$session{form}{wid}); $output .= WebGUI::Form::hidden("func","editSave"); $output .= '
    Title'.WebGUI::Form::text("title",20,30).'
    Title'.WebGUI::Form::text("title",20,30,'Syndicated Content').'
    Display the title?'.WebGUI::Form::checkbox("displayTitle",1,1).'
    Description'.WebGUI::Form::textArea("description",'','','',1).'
    URL to RSS File'.WebGUI::Form::text("rssUrl",20,2048).'
    '; diff --git a/lib/WebGUI/Widget/UserSubmission.pm b/lib/WebGUI/Widget/UserSubmission.pm index d782f258f..c25d6de94 100644 --- a/lib/WebGUI/Widget/UserSubmission.pm +++ b/lib/WebGUI/Widget/UserSubmission.pm @@ -31,7 +31,7 @@ sub www_add { $output .= WebGUI::Form::hidden("widget","UserSubmission"); $output .= WebGUI::Form::hidden("func","addSave"); $output .= '
    '; - $output .= ''; + $output .= ''; $output .= ''; $output .= ''; %hash = WebGUI::SQL->buildHash("select groupId,groupName from groups where groupName<>'Reserved' order by groupName",$session{dbh}); @@ -95,8 +95,8 @@ sub www_addSubmissionSave { ($status, $groupToContribute) = WebGUI::SQL->quickArray("select defaultStatus,groupToContribute from UserSubmission where widgetId=$session{form}{wid}",$session{dbh}); if (WebGUI::Privilege::isInGroup($groupToContribute,$session{user}{userId})) { $submissionId = getNextId("submissionId"); - $image = saveAttachment("image",$session{form}{wid}); - $attachment = saveAttachment("attachment",$session{form}{wid}); + $image = saveAttachment("image",$session{form}{wid},$submissionId); + $attachment = saveAttachment("attachment",$session{form}{wid},$submissionId); WebGUI::SQL->write("insert into submission set widgetId=$session{form}{wid}, submissionId=$submissionId, title=".quote($session{form}{title}).", username=".quote($session{user}{username}).", status='$status', dateSubmitted=now(), userId='$session{user}{userId}', content=".quote($session{form}{content}).", image=".quote($image).", attachment=".quote($attachment),$session{dbh}); return ""; } else { @@ -229,11 +229,11 @@ sub www_editSubmissionSave { ($owner) = WebGUI::SQL->quickArray("select userId from submission where submissionId=$session{form}{sid}",$session{dbh}); if ($owner == $session{user}{userId}) { ($status) = WebGUI::SQL->quickArray("select defaultStatus from UserSubmission where widgetId=$session{form}{wid}",$session{dbh}); - $image = saveAttachment("image",$session{form}{wid}); + $image = saveAttachment("image",$session{form}{wid},$session{form}{sid}); if ($image ne "") { $image = 'image='.quote($image).', '; } - $attachment = saveAttachment("attachment",$session{form}{wid}); + $attachment = saveAttachment("attachment",$session{form}{wid},$session{form}{sid}); if ($attachment ne "") { $attachment = 'attachment='.quote($attachment).', '; } @@ -276,13 +276,13 @@ sub www_view { $output .= '
    Title'.WebGUI::Form::text("title",20,30).'
    Title'.WebGUI::Form::text("title",20,30,'User Submission System').'
    Display the title?'.WebGUI::Form::checkbox("displayTitle","1").'
    Description'.WebGUI::Form::textArea("description",'',50,5,1).'
    '; $output .= '