diff --git a/docs/previousVersion.sql b/docs/previousVersion.sql index c06cae896..e8735873c 100644 --- a/docs/previousVersion.sql +++ b/docs/previousVersion.sql @@ -278,7 +278,8 @@ CREATE TABLE MailForm_entryData ( wobjectId int(11) NOT NULL default '0', sequenceNumber int(11) NOT NULL default '0', name varchar(255) NOT NULL default '', - value text + value text, + KEY MailForm1 (MailForm_entryId,sequenceNumber) ) TYPE=MyISAM; -- @@ -679,14 +680,15 @@ CREATE TABLE USS_submission ( title varchar(128) default NULL, dateSubmitted int(11) default NULL, username varchar(30) default NULL, - userId int(11) default NULL, + userId int(11) NOT NULL default '1', content text, image varchar(255) default NULL, attachment varchar(255) default NULL, - status varchar(30) default NULL, + status varchar(30) NOT NULL default 'Approved', convertCarriageReturns int(11) NOT NULL default '0', views int(11) NOT NULL default '0', - PRIMARY KEY (USS_submissionId) + PRIMARY KEY (USS_submissionId), + KEY test (wobjectId,status,userId) ) TYPE=MyISAM; -- @@ -800,7 +802,9 @@ CREATE TABLE discussion ( userDefined3 varchar(255) default NULL, userDefined4 varchar(255) default NULL, userDefined5 varchar(255) default NULL, - PRIMARY KEY (messageId) + PRIMARY KEY (messageId), + KEY MessageBoard1 (wobjectId,pid,status,userId), + KEY MessageBoard2 (wobjectId,rid,status) ) TYPE=MyISAM; -- @@ -5424,7 +5428,7 @@ INSERT INTO international VALUES (606,'WebGUI',1,'Think of pages as containers f INSERT INTO international VALUES (634,'WebGUI',1,'Default Home Page
\r\nSome really small sites don\'t have a home page, but instead like to use one of their internal pages like \"About Us\" or \"Company Information\" as their home page. For that reason, you can set the default page of your site to any page in the site. That page will be the one people go to if they type in just your URL http://www.mywebguisite.com, or if they click on the Home link generated by the ^H; macro.\r\n

\r\n\r\nNot Found Page
\r\nIf a page that a user requests is not found in the system, the user can be redirected to the home page or to an error page where they can attempt to find what they were looking for. You decide which is better for your users.\r\n

\r\n\r\nDocument Type Declaration
\r\nThese days it is very common to have a wide array of browsers accessing your site, including automated browsers like search engine spiders. Many of those browsers want to know what kind of content you are serving. The doctype tag allows you to specify that. By default WebGUI generates HTML 4.0 compliant content.\r\n

\r\n\r\nAdd edit stamp to posts?
\r\nTypically if a user edits a post on a discussion, a stamp is added to that post to identify who made the edit, and at what time. On some sites that information is not necessary, therefore you can turn it off here.\r\n

\r\n\r\nFilter Contributed HTML
\r\nEspecially when running a public site where anybody can post to your message boards or user submission systems, it is often a good idea to filter their content for malicious code that can harm the viewing experience of your visitors; And in some circumstances, it can even cause security problems. Use this setting to select the level of filtering you wish to apply.\r\n

\r\n\r\nMaximum Attachment Size
\r\nThe size (in kilobytes) of the maximum allowable attachment to be uploaded to your system.\r\n

\r\n\r\nMax Image Size
\r\nIf images are uploaded to your system that are bigger than the max image size, then they will be resized to the max image size. The max image size is measured in pixels and will use the size of the longest side of the image to determine if the limit has been reached.\r\n

\r\n\r\nThumbnail Size
\r\nWhen images are uploaded to your system, they will automatically have thumbnails generated at the size specified here (unless overridden on a case-by-case basis). Thumbnail size is measured in pixels.\r\n

\r\n\r\nSnippet Preview Length
\r\nHow many characters of a snippet should be displayed in the collateral management system main listing.\r\n

\r\n\r\nText Area Rows
\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how many rows of characters will be displayed in textareas on the site.\r\n

\r\n\r\nText Area Columns
\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how many columns of characters will be displayed in textareas on the site.\r\n

\r\n\r\nText Box Size
\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how characters can be displayed at once in text boxes on the site.\r\n

\r\n\r\nEditor To Use
\r\nWebGUI has a very sophisticated Rich Editor that allows users to fomat content as though they were in Microsoft WordŽ or some other word processor. To use that functionality, select \"Built-In Editor\". Sometimes web sites have the need for even more complex rich editors for things like Spell Check. For that reason you can install an 3rd party editor called Real Objects Edit-On ProŽ rich text editor. After you\'ve installed it change this option. If you need detailed instructions on how to integrate Edit-On ProŽ), you can find them in Ruling WebGUI.\r\n

\r\n',1038872365); INSERT INTO international VALUES (638,'WebGUI',1,'Templates are used to affect how content is laid out in WebGUI. There are many templates that come with WebGUI, and using the template management system, you can add your own templates to the system to ensure that your site looks exactly how you want it to look. \r\n',1038869802); INSERT INTO international VALUES (76,'USS',1,'Submission Template',1038867009); -INSERT INTO international VALUES (77,'USS',1,'The following are the template variables used in a submission template. Submission templates are used to display the individual submissions in a user submission system.\r\n

\r\n\r\ntitle
\r\nThe title of this submission.\r\n

\r\n\r\ncontent
\r\nThe full text content of this submission.\r\n

\r\n\r\nuser.label
\r\nThe translated label indicating what user posted this submission.\r\n

\r\n\r\nuser.profile
\r\nThe URL to the profile of the user that posted this submission.\r\n

\r\n\r\nuser.username
\r\nThe username of the user that posted this submission.\r\n

\r\n\r\nuser.id
\r\nThe unique identifier for the user that posted this submission.\r\n

\r\n\r\ndate.label
\r\nThe translated label indicating what date this submission was posted.\r\n

\r\n\r\ndate.epoch
\r\nThe number of seconds since January 1, 1970 that this submission was posted.\r\n

\r\n\r\ndate.human
\r\nA human readable date that displays the date and time this submission was posted.\r\n

\r\n\r\nstatus.label
\r\nA translated label indicating the status of this submission.\r\n

\r\n\r\nstatus.status
\r\nThe actual status of this submission (pending, approved, denied).\r\n

\r\n\r\nviews.label
\r\nA translated label indicating how many times this submission has been viewed.\r\n

\r\n\r\nviews.count
\r\nThe number of times this submission has been viewed.\r\n

\r\n\r\ncanPost
\r\nAn condition indicating whether or not this user can post a new submission.\r\n

\r\n\r\npost.url
\r\nThe URL to post a new submission.\r\n

\r\n\r\npost.label
\r\nA translated label for the post link.\r\n

\r\n\r\nprevious.more
\r\nAn condition indicating whether there are any posts prior to this one available for viewing.\r\n

\r\n\r\nprevious.url
\r\nA URL to the post that came before this one.\r\n

\r\n\r\nprevious.label
\r\nA translated label for the previous link.\r\n

\r\n\r\nnext.more
\r\nA condition indicating whether there are any posts after this one available for viewing.\r\n

\r\n\r\nnext.url
\r\nThe URL to the post that came after this one.\r\n

\r\n\r\nnext.label
\r\nA translated label for the next link.\r\n

\r\n\r\ncanEdit
\r\nA condition indicating whether the current user cane edit or delete this post.\r\n

\r\n\r\nedit.url
\r\nThe URL to edit this post.\r\n

\r\n\r\nedit.label
\r\nA translated label for the edit link.\r\n

\r\n\r\ndelete.url
\r\nThe URL to delete this post.\r\n

\r\n\r\ndelete.label
\r\nA translated label for the delete link.\r\n

\r\n\r\ncanChangeStatus
\r\nA condition indicating whether the current user has the privileges to change the status of this post.\r\n

\r\n\r\napprove.url
\r\nThe URL to approve this post.\r\n

\r\n\r\napprove.label
\r\nA translated label for the approve link.\r\n

\r\n\r\ndeny.url
\r\nThe URL to deny this post.\r\n

\r\n\r\ndeny.label
\r\nA translated label for the deny link.\r\n

\r\n\r\nleave.url
\r\nThe URL to leave this post in it\'s current state.\r\n

\r\n\r\nleave.label
\r\nA translated label for the leave link.\r\n

\r\n\r\ncanDiscuss
\r\nA condition indicating whether the current user can reply to this post.\r\n

\r\n\r\nreply.url
\r\nThe URL to reply to this post.\r\n

\r\n\r\nreply.label
\r\nA translated label for the reply link.\r\n

\r\n\r\nsearch.url
\r\nThe URL to toggle on the WebGUI power search form.\r\n

\r\n\r\nsearch.label
\r\nA translated label for the search link.\r\n

\r\n\r\nback.url
\r\nThe URL to return the user to the main listing.\r\n

\r\n\r\nback.label
\r\nA translated label for the back link.\r\n

\r\n\r\nreplies
\r\nA complete listing of all replies to this post.\r\n

\r\n',1038867009); +INSERT INTO international VALUES (77,'USS',1,'The following are the template variables used in a submission template. Submission templates are used to display the individual submissions in a user submission system.\r\n

\r\n\r\ntitle
\r\nThe title of this submission.\r\n

\r\n\r\ncontent
\r\nThe full text content of this submission.\r\n

\r\n\r\nuser.label
\r\nThe translated label indicating what user posted this submission.\r\n

\r\n\r\nuser.profile
\r\nThe URL to the profile of the user that posted this submission.\r\n

\r\n\r\nuser.username
\r\nThe username of the user that posted this submission.\r\n

\r\n\r\nuser.id
\r\nThe unique identifier for the user that posted this submission.\r\n

\r\n\r\ndate.label
\r\nThe translated label indicating what date this submission was posted.\r\n

\r\n\r\ndate.epoch
\r\nThe number of seconds since January 1, 1970 that this submission was posted.\r\n

\r\n\r\ndate.human
\r\nA human readable date that displays the date and time this submission was posted.\r\n

\r\n\r\nstatus.label
\r\nA translated label indicating the status of this submission.\r\n

\r\n\r\nstatus.status
\r\nThe actual status of this submission (pending, approved, denied).\r\n

\r\n\r\nviews.label
\r\nA translated label indicating how many times this submission has been viewed.\r\n

\r\n\r\nviews.count
\r\nThe number of times this submission has been viewed.\r\n

\r\n\r\ncanPost
\r\nAn condition indicating whether or not this user can post a new submission.\r\n

\r\n\r\npost.url
\r\nThe URL to post a new submission.\r\n

\r\n\r\npost.label
\r\nA translated label for the post link.\r\n

\r\n\r\nprevious.more
\r\nAn condition indicating whether there are any posts prior to this one available for viewing.\r\n

\r\n\r\nprevious.url
\r\nA URL to the post that came before this one.\r\n

\r\n\r\nprevious.label
\r\nA translated label for the previous link.\r\n

\r\n\r\nnext.more
\r\nA condition indicating whether there are any posts after this one available for viewing.\r\n

\r\n\r\nnext.url
\r\nThe URL to the post that came after this one.\r\n

\r\n\r\nnext.label
\r\nA translated label for the next link.\r\n

\r\n\r\ncanEdit
\r\nA condition indicating whether the current user cane edit or delete this post.\r\n

\r\n\r\nedit.url
\r\nThe URL to edit this post.\r\n

\r\n\r\nedit.label
\r\nA translated label for the edit link.\r\n

\r\n\r\ndelete.url
\r\nThe URL to delete this post.\r\n

\r\n\r\ndelete.label
\r\nA translated label for the delete link.\r\n

\r\n\r\ncanChangeStatus
\r\nA condition indicating whether the current user has the privileges to change the status of this post.\r\n

\r\n\r\napprove.url
\r\nThe URL to approve this post.\r\n

\r\n\r\napprove.label
\r\nA translated label for the approve link.\r\n

\r\n\r\ndeny.url
\r\nThe URL to deny this post.\r\n

\r\n\r\ndeny.label
\r\nA translated label for the deny link.\r\n

\r\n\r\nleave.url
\r\nThe URL to leave this post in it\'s current state.\r\n

\r\n\r\nleave.label
\r\nA translated label for the leave link.\r\n

\r\n\r\ncanReply
\r\nA condition indicating whether the current user can reply to this post.\r\n

\r\n\r\nreply.url
\r\nThe URL to reply to this post.\r\n

\r\n\r\nreply.label
\r\nA translated label for the reply link.\r\n

\r\n\r\nsearch.url
\r\nThe URL to toggle on the WebGUI power search form.\r\n

\r\n\r\nsearch.label
\r\nA translated label for the search link.\r\n

\r\n\r\nback.url
\r\nThe URL to return the user to the main listing.\r\n

\r\n\r\nback.label
\r\nA translated label for the back link.\r\n

\r\n\r\nreplies
\r\nA complete listing of all replies to this post.\r\n

\r\n',1039019783); INSERT INTO international VALUES (639,'WebGUI',1,'Template Name
\r\nGive this template a descriptive name so that you\'ll know what it is when you\'re applying a template to content.\r\n

\r\n\r\nNamespace
\r\nWhat type of template is this?\r\n

\r\n\r\nTemplate
\r\nCreate your template by using template commands and variables, macros, and HTML.\r\n

\r\n\r\nNOTE: You should never edit the default templates that come with WebGUI as they are subject to change with each new release. Instead, copy the template you wish to edit, and edit the copy.',1038890615); INSERT INTO international VALUES (640,'WebGUI',1,'It is not a good idea to delete templates as you never know what kind of adverse affect it may have on your site (some content may still be using the template). \r\n

\r\n\r\n',1038791020); INSERT INTO international VALUES (624,'WebGUI',1,'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\n\r\nMacros always begin with a carat (^) and follow with at least one other character and ended with w semicolon (;). Some macros can be extended/configured by taking the format of ^x(\"config text\");. The following is a description of all the macros in the WebGUI system.\r\n

\r\n\r\n^a; or ^a(); - My Account Link
\r\nA link to your account information. In addition you can change the link text by creating a macro like this ^a(\"Account Info\");. \r\n

\r\n\r\nNotes: You can also use the special case ^a(linkonly); to return only the URL to the account page and nothing more. Also, the .myAccountLink style sheet class is tied to this macro.\r\n

\r\n\r\n^AdminBar;
\r\nPlaces the administrative tool bar on the page. This is a required element in the \"body\" segment of the Style Manager.\r\n

\r\n\r\n^AdminText();
\r\nDisplays a small text message to a user who is in admin mode. Example: ^AdminText(\"You are in admin mode!\");\r\n

\r\n\r\n^AdminToggle; or ^AdminToggle();
\r\nPlaces a link on the page which is only visible to content managers and adminstrators. The link toggles on/off admin mode. You can optionally specify other messages to display like this: ^AdminToggle(\"Edit On\",\"Edit Off\");\r\n

\r\n\r\n^C; or ^C(); - Crumb Trail
\r\nA dynamically generated crumb trail to the current page. You can optionally specify a delimeter to be used between page names by using ^C(::);. The default delimeter is >.\r\n

\r\n\r\nNote: The .crumbTrail style sheet class is tied to this macro.\r\n

\r\n\r\n^c; - Company Name
\r\nThe name of your company specified in the settings by your Administrator.\r\n

\r\n\r\n\r\n^D; or ^D(); - Date
\r\nThe current date and time.\r\n

\r\n\r\nYou can configure the date by using date formatting symbols. For instance, if you created a macro like this ^D(\"%c %D, %y\"); it would output September 26, 2001. The following are the available date formatting symbols:\r\n

\r\n\r\n
%%%
%y4 digit year
%Y2 digit year
%m2 digit month
%Mvariable digit month
%cmonth name
%d2 digit day of month
%Dvariable digit day of month
%wday of week name
%h2 digit base 12 hour
%Hvariable digit base 12 hour
%j2 digit base 24 hour
%Jvariable digit base 24 hour
%plower case am/pm
%Pupper case AM/PM
%zuser preference date format
%Zuser preference time format
\r\n

\r\n\r\n\r\n^e; - Company Email Address
\r\nThe email address for your company specified in the settings by your Administrator.\r\n

\r\n\r\n^Env()
\r\nCan be used to display a web server environment variable on a page. The environment variables available on each server are different, but you can find out which ones your web server has by going to: http://www.yourwebguisite.com/env.pl\r\n

\r\n\r\nThe macro should be specified like this ^Env(\"REMOTE_ADDR\");\r\n

\r\n\r\n^Execute();
\r\nAllows a content manager or administrator to execute an external program. Takes the format of ^Execute(\"/this/file.sh\");.\r\n

\r\n\r\n\r\n^Extras;
\r\nReturns the path to the WebGUI \"extras\" folder, which contains things like WebGUI icons.\r\n

\r\n\r\n\r\n^FlexMenu;
\r\nThis menu macro creates a top-level menu that expands as the user selects each menu item.\r\n

\r\n\r\n^FormParam();
\r\nThis macro is mainly used in generating dynamic queries in SQL Reports. Using this macro you can pull the value of any form field simply by specifing the name of the form field, like this: ^FormParam(\"phoneNumber\");\r\n

\r\n\r\n^GroupText();
\r\nDisplays a small text message to the user if they belong to the specified group. Example: ^GroupText(\"Visitors\",\"You need an account to do anything cool on this site!\");\r\n

\r\n\r\n\r\n^H; or ^H(); - Home Link
\r\nA link to the home page of this site. In addition you can change the link text by creating a macro like this ^H(\"Go Home\");.\r\n

\r\n\r\nNotes: You can also use the special case ^H(linkonly); to return only the URL to the home page and nothing more. Also, the .homeLink style sheet class is tied to this macro.\r\n

\r\n\r\n^I(); - Image Manager Image with Tag
\r\nThis macro returns an image tag with the parameters for an image defined in the image manager. Specify the name of the image using a tag like this ^I(\"imageName\");.\r\n

\r\n\r\n^i(); - Image Manager Image Path
\r\nThis macro returns the path of an image uploaded using the Image Manager. Specify the name of the image using a tag like this ^i(\"imageName\");.\r\n

\r\n\r\n^Include();
\r\nAllows a content manager or administrator to include a file from the local filesystem. Takes the format of ^Include(\"/this/file.html\");\r\n

\r\n\r\n^L; or ^L(); - Login
\r\nA small login form. You can also configure this macro. You can set the width of the login box like this ^L(20);. You can also set the message displayed after the user is logged in like this ^L(20,Hi ^a(^@;);. Click %here% if you wanna log out!)\r\n

\r\n\r\nNote: The .loginBox style sheet class is tied to this macro.\r\n

\r\n\r\n^LoginToggle; or ^LoginToggle();
\r\nDisplays a \"Login\" or \"Logout\" message depending upon whether the user is logged in or not. You can optionally specify other messages like this: ^LoginToggle(\"Click here to log in.\",\"Click here to log out.\");\r\n

\r\n\r\n^M; or ^M(); - Current Menu (Vertical)
\r\nA vertical menu containing the sub-pages at the current level. In addition, you may configure this macro by specifying how many levels deep the menu should go. By default it will show only the first level. To go three levels deep create a macro like this ^M(3);. If you set the macro to \"0\" it will track the entire site tree.\r\n

\r\n\r\n^m; - Current Menu (Horizontal)
\r\nA horizontal menu containing the sub-pages at the current level. You can optionally specify a delimeter to be used between page names by using ^m(:--:);. The default delimeter is ˇ.\r\n

\r\n\r\n^P; or ^P(); - Previous Menu (Vertical)
\r\nA vertical menu containing the sub-pages at the previous level. In addition, you may configure this macro by specifying how many levels deep the menu should go. By default it will show only the first level. To go three levels deep create a macro like this ^P(3);. If you set the macro to \"0\" it will track the entire site tree.\r\n

\r\n\r\n^p; - Previous Menu (Horizontal)
\r\nA horizontal menu containing the sub-pages at the previous level. You can optionally specify a delimeter to be used between page names by using ^p(:--:);. The default delimeter is ˇ.\r\n

\r\n\r\n^Page();
\r\nThis can be used to retrieve information about the current page. For instance it could be used to get the page URL like this ^Page(\"urlizedTitle\"); or to get the menu title like this ^Page(\"menuTitle\");.\r\n

\r\n\r\n^PageTitle;
\r\nDisplays the title of the current page.\r\n

\r\n\r\nNote: If you begin using admin functions or the indepth functions of any wobject, the page title will become a link that will quickly bring you back to the page.\r\n

\r\n\r\n^r; or ^r(); - Make Page Printable
\r\nCreates a link to remove the style from a page to make it printable. In addition, you can change the link text by creating a macro like this ^r(\"Print Me!\");.\r\n

\r\n\r\nBy default, when this link is clicked, the current page\'s style is replaced with the \"Make Page Printable\" style in the Style Manager. However, that can be overridden by specifying the name of another style as the second parameter, like this: ^r(\"Print!\",\"WebGUI\");\r\n

\r\n\r\nNotes: You can also use the special case ^r(linkonly); to return only the URL to the make printable page and nothing more. Also, the .makePrintableLink style sheet class is tied to this macro.\r\n

\r\n\r\n^rootmenu; or ^rootmenu(); (Horizontal)
\r\nCreates a horizontal menu of the various roots on your system (except for the WebGUI system roots). You can optionally specify a menu delimiter like this: ^rootmenu(|);\r\n

\r\n\r\n\r\n^RootTitle;
\r\nReturns the title of the root of the current page. For instance, the main root in WebGUI is the \"Home\" page. Many advanced sites have many roots and thus need a way to display to the user which root they are in.\r\n

\r\n\r\n^S(); - Specific SubMenu (Vertical)
\r\nThis macro allows you to get the submenu of any page, starting with the page you specified. For instance, you could get the home page submenu by creating a macro that looks like this ^S(\"home\",0);. The first value is the urlized title of the page and the second value is the depth you\'d like the menu to go. By default it will show only the first level. To go three levels deep create a macro like this ^S(\"home\",3);.\r\n

\r\n\r\n\r\n^s(); - Specific SubMenu (Horizontal)
\r\nThis macro allows you to get the submenu of any page, starting with the page you specified. For instance, you could get the home page submenu by creating a macro that looks like this ^s(\"home\");. The value is the urlized title of the page. You can optionally specify a delimeter to be used between page names by using ^s(\"home\",\":--:\");. The default delimeter is ˇ.\r\n

\r\n\r\n^SQL();
\r\nA one line SQL report. Sometimes you just need to pull something back from the database quickly. This macro is also useful in extending the SQL Report wobject. It uses the numeric macros (^0; ^1; ^2; etc) to position data and can also use the ^rownum; macro just like the SQL Report wobject. Examples:

\r\n ^SQL(\"select count(*) from users\",\"There are ^0; users on this system.\");\r\n

\r\n^SQL(\"select userId,username from users order by username\",\"<a href=\'^/;?op=viewProfile&uid=^0;\'>^1;</a><br>\");\r\n

\r\n\r\n^Synopsis; or ^Synopsis(); Menu
\r\nThis macro allows you to get the submenu of a page along with the synopsis of each link. You may specify an integer to specify how many levels deep to traverse the page tree.\r\n

\r\n\r\nNotes: The .synopsis_sub, .synopsis_summary, and .synopsis_title style sheet classes are tied to this macro.\r\n

\r\n\r\n^T; or ^T(); - Top Level Menu (Vertical)
\r\nA vertical menu containing the main pages of the site (aka the sub-pages from the home page). In addition, you may configure this macro by specifying how many levels deep the menu should go. By default it will show only the first level. To go three levels deep create a macro like this ^T(3);. If you set the macro to \"0\" it will track the entire site tree.\r\n

\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). You can optionally specify a delimeter to be used between page names by using ^t(:--:);. The default delimeter is ˇ.\r\n

\r\n\r\n^Thumbnail();
\r\nReturns the URL of a thumbnail for an image from the image manager. Specify the name of the image like this ^Thumbnail(\"imageName\");.\r\n

\r\n\r\n^ThumbnailLinker();
\r\nThis is a good way to create a quick and dirty screenshots page or a simple photo gallery. Simply specify the name of an image in the Image Manager like this: ^ThumbnailLinker(\"My Grandmother\"); and this macro will create a thumnail image with a title under it that links to the full size version of the image.\r\n

\r\n\r\n^u; - Company URL
\r\nThe URL for your company specified in the settings by your Administrator.\r\n

\r\n\r\n^URLEncode();
\r\nThis macro is mainly useful in SQL reports, but it could be useful elsewhere as well. It takes the input of a string and URL Encodes it so that the string can be passed through a URL. It\'s syntax looks like this: ^URLEncode(\"Is this my string?\");\r\n

\r\n\r\n\r\n^User();
\r\nThis macro will allow you to display any information from a user\'s account or profile. For instance, if you wanted to display a user\'s email address you\'d create this macro: ^User(\"email\");\r\n

\r\n\r\n^/; - System URL
\r\nThe URL to the gateway script (example: /index.pl/).\r\n

\r\n\r\n^\\; - Page URL
\r\nThe URL to the current page (example: /index.pl/pagename).\r\n

\r\n\r\n^@; - Username
\r\nThe username of the currently logged in user.\r\n

\r\n\r\n^?; - Search
\r\nAdd a search box to the page. The search box is tied to WebGUI\'s built-in search engine.\r\n

\r\n\r\nNote: The .searchBox style sheet class is tied to this macro.\r\n

\r\n\r\n^#; - User ID
\r\nThe user id of the currently logged in user.\r\n

\r\n\r\n^*; or ^*(); - 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. In addition, you may configure this macro like this ^*(100); to create a random number between 0 and 100.\r\n

\r\n\r\n^-;,^0;,^1;,^2;,^3;, etc.
\r\nThese macros are reserved for system/wobject-specific functions as in the SQL Report wobject and the Body in the Style Manager.\r\n

\r\n',1038888892); @@ -9278,14 +9282,14 @@ CREATE TABLE page ( -- -INSERT INTO page VALUES (1,0,'Home',-8,3,1,1,1,1,0,1,0,0,'','home',1,'Home',NULL,1,946710000,2082783600,NULL,NULL,NULL,NULL,NULL,NULL,1); -INSERT INTO page VALUES (4,0,'Page Not Found',-6,3,1,1,1,1,0,1,0,21,'','page_not_found',0,'Page Not Found',NULL,1,946710000,2082783600,NULL,NULL,NULL,NULL,NULL,NULL,1); +INSERT INTO page VALUES (1,0,'Home',-8,3,1,1,4,1,0,1,0,0,'','home',1,'Home',NULL,1,946710000,2082783600,NULL,NULL,NULL,NULL,NULL,NULL,1); +INSERT INTO page VALUES (4,0,'Page Not Found',-6,3,1,1,4,1,0,1,0,21,'','page_not_found',0,'Page Not Found',NULL,1,946710000,2082783600,NULL,NULL,NULL,NULL,NULL,NULL,1); INSERT INTO page VALUES (3,0,'Trash',5,3,1,1,3,1,1,0,0,22,'','trash',0,'Trash',NULL,1,946710000,2082783600,NULL,NULL,NULL,NULL,NULL,NULL,1); INSERT INTO page VALUES (2,0,'Clipboard',4,3,1,1,4,1,1,0,0,23,'','clipboard',0,'Clipboard',NULL,1,946710000,2082783600,NULL,NULL,NULL,NULL,NULL,NULL,1); INSERT INTO page VALUES (5,0,'Packages',1,3,0,0,6,1,1,0,0,24,'','packages',0,'Packages',NULL,1,946710000,2082783600,NULL,NULL,NULL,NULL,NULL,NULL,1); -INSERT INTO page VALUES (-3,1,'Your Next Step',-8,3,1,1,1,1,0,1,0,3,'','your_next_step',1,'Your Next Step','',1,946728000,2082801600,'',NULL,NULL,NULL,NULL,NULL,1); -INSERT INTO page VALUES (-2,1,'WebGUI Users',-8,3,1,1,1,1,0,1,0,2,'','webgui_users',1,'WebGUI Users','',1,946728000,2082801600,'',NULL,NULL,NULL,NULL,NULL,1); -INSERT INTO page VALUES (-1,1,'Getting Started',-8,3,1,1,1,1,0,1,0,1,'','getting_started',1,'Getting Started','',1,946728000,2082801600,'',NULL,NULL,NULL,NULL,NULL,1); +INSERT INTO page VALUES (-3,1,'Your Next Step',-8,3,1,1,4,1,0,1,0,3,'','your_next_step',1,'Your Next Step','',1,946728000,2082801600,'',NULL,NULL,NULL,NULL,NULL,1); +INSERT INTO page VALUES (-2,1,'WebGUI Users',-8,3,1,1,4,1,0,1,0,2,'','webgui_users',1,'WebGUI Users','',1,946728000,2082801600,'',NULL,NULL,NULL,NULL,NULL,1); +INSERT INTO page VALUES (-1,1,'Getting Started',-8,3,1,1,4,1,0,1,0,1,'','getting_started',1,'Getting Started','',1,946728000,2082801600,'',NULL,NULL,NULL,NULL,NULL,1); -- -- Table structure for table 'pageStatistics' @@ -9435,7 +9439,7 @@ INSERT INTO template VALUES (2,'Q and A','\r\n

\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \">

\r\n\r\n\r\n

    \r\n\r\n
  • \">\r\n\r\n
\r\n

\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n\r\n \">
\r\n \r\n

[top]

\r\n\r\n\r\n','FAQ'); INSERT INTO template VALUES (2,'Item w/pop-up Links','\r\n \r\n \">\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n - \r\n \" target=\"_blank\">\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" border=\"0\" align=\"middle\" />\r\n\r\n\r\n\r\n - \r\n','Item'); INSERT INTO template VALUES (5,'Classifieds','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \"> ·\r\n\r\n\r\n\">

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n
\r\n

\">

\r\n \r\n ()\r\n \r\n
\r\n \r\n \">\" border=\"0\"/ align=\"right\">
\r\n
\r\n\r\n
\r\n\r\n\r\n

\r\n ˇ ˇ \r\n
\r\n
\r\n','USS'); -INSERT INTO template VALUES (1,'Default Submission','

\r\n\r\n\r\n
\r\n: \">
\r\n:
\r\n:
\r\n:
\r\n
\r\n\r\n\r\n \">«
\r\n
\r\n\r\n \">»
\r\n
\r\n\r\n \">
\r\n \">
\r\n
\r\n\r\n \">
\r\n \">
\r\n \">
\r\n
\r\n\r\n \">
\r\n
\r\n\r\n \">
\r\n
\r\n\">
\r\n\">
\r\n\r\n
\r\n\r\n \" border=\"0\">

\r\n\r\n

\r\n
\r\n\r\n

','USS/Submission'); +INSERT INTO template VALUES (1,'Default Submission','

\r\n\r\n\r\n
\r\n: \">
\r\n:
\r\n:
\r\n:
\r\n
\r\n\r\n\r\n \">«
\r\n
\r\n\r\n \">»
\r\n
\r\n\r\n \">
\r\n \">
\r\n
\r\n\r\n \">
\r\n \">
\r\n \">
\r\n
\r\n\r\n \">
\r\n
\r\n\r\n \">
\r\n
\r\n\">
\r\n\">
\r\n\r\n
\r\n\r\n \" border=\"0\">

\r\n\r\n

\r\n
\r\n\r\n

\r\n\r\n','USS/Submission'); INSERT INTO template VALUES (4,'Photo Gallery','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \"> ·\r\n\r\n\r\n\r\n\">

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n
\r\n \r\n \r\n \">\" border=\"0\"/>
\r\n
\r\n \">\r\n \r\n ()\r\n \r\n
\r\n\r\n\r\n

\r\n · · \r\n
\r\n
\r\n','USS'); INSERT INTO template VALUES (3,'Weblog','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \"> ·\r\n\r\n\r\n\r\n\">\r\n

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n ()\r\n \r\n
\r\n \r\n \">\" border=\"0\" align=\"right\"/>\r\n \r\n \"> -
\r\n\r\n

( \">\r\n \r\n | \r\n \r\n )

\r\n

\r\n\r\n\r\n

\r\n · \r\n
\r\n
\r\n','USS'); INSERT INTO template VALUES (1,'Default Item','\r\n \r\n \">\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n - \r\n \">\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" border=\"0\" align=\"middle\" />\r\n\r\n\r\n\r\n - \r\n','Item'); @@ -9452,11 +9456,11 @@ INSERT INTO template VALUES (1,'Default File Manager','\r\ INSERT INTO template VALUES (2,'List with Thumbnails','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n
\r\n \">\r\n \r\n · \">\r\n \r\n
\">\">\">
\r\n \r\n \r\n \r\n \">\r\n  · \r\n \">\" border=\"0\" width=\"16\" height=\"16\" align=\"middle\" />/\r\n \r\n  · \r\n \">\" border=0 width=\"16\" height=\"16\" align=\"middle\" />/\r\n \r\n \r\n  · \r\n \">\" border=\"0\" width=\"16\" height=\"16\" align=\"middle\" />/\r\n \r\n \r\n \r\n \" border=0 align=\"middle\" hspace=\"3\">\r\n \r\n \r\n \r\n \r\n
\r\n\r\n\r\n

\r\n · · \r\n
\r\n
','FileManager'); INSERT INTO template VALUES (4,'Linked Image with Caption','\r\n

\r\n
\r\n\r\n\r\n
\r\n
\r\n \r\n \">\r\n \" border=\"0\">\r\n
\r\n \r\n \" border=\"0\">\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n

\r\n\r\n\r\n\r\n\r\n\r\n\r\n

\r\n
\r\n\r\n\r\n

\r\n \r\n \r\n
\"> ()\">
\r\n\r\n','Article'); INSERT INTO template VALUES (3,'Topics','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \">

\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n

\r\n \r\n

\r\n\r\n\r\n','FAQ'); -INSERT INTO template VALUES (1,'Default Link List','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \">

\r\n\r\n\r\n\r\n \r\n \r\n \r\n ·\r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n
\r\n
\r\n','LinkList'); -INSERT INTO template VALUES (2,'Unordered List','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \">

\r\n\r\n\r\n

    \r\n\r\n
  • \r\n \r\n \r\n \r\n \r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n
  • \r\n
    \r\n','LinkList'); -INSERT INTO template VALUES (3,'Ordered List','\r\n

    \r\n
    \r\n\r\n\r\n

    \r\n\r\n\r\n\r\n \">

    \r\n\r\n\r\n

      \r\n\r\n
    1. \r\n \r\n \r\n \r\n\r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n
    2. \r\n
      \r\n
    ','LinkList'); -INSERT INTO template VALUES (4,'Descriptive','\r\n

    \r\n
    \r\n\r\n\r\n

    \r\n\r\n\r\n\r\n \">

    \r\n\r\n\r\n\r\n \r\n
    \r\n
    \r\n\r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n

    \r\n\r\n','LinkList'); -INSERT INTO template VALUES (1,'Default Message Board','\r\n

    \r\n
    \r\n\r\n\r\n

    \r\n\r\n\r\n\r\n\r\n
    \r\n \r\n \"> ·\r\n \r\n \">\r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
    \r\n \">\r\n \r\n ()\r\n \r\n \">\r\n \r\n \r\n @ \r\n by \">\r\n \r\n
    \r\n\r\n\r\n\r\n

    \r\n · · \r\n
    \r\n
    \r\n\r\n','MessageBoard'); +INSERT INTO template VALUES (1,'Default Message Board','\r\n

    \r\n
    \r\n\r\n\r\n

    \r\n\r\n\r\n\r\n\r\n
    \r\n \r\n \"> ·\r\n \r\n \">\r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
    \r\n \">\r\n \r\n ()\r\n \r\n \">\r\n \r\n \">\r\n @ \r\n by \">\r\n \r\n
    \r\n\r\n\r\n\r\n

    \r\n · · \r\n
    \r\n
    \r\n\r\n','MessageBoard'); +INSERT INTO template VALUES (1,'Default Link List','\r\n

    \r\n
    \r\n\r\n\r\n

    \r\n\r\n\r\n\r\n \">

    \r\n\r\n\r\n\r\n \r\n \r\n \r\n ·\r\n \"\r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n
    \r\n
    \r\n','LinkList'); +INSERT INTO template VALUES (2,'Unordered List','\r\n

    \r\n
    \r\n\r\n\r\n

    \r\n\r\n\r\n\r\n \">

    \r\n\r\n\r\n

      \r\n\r\n
    • \r\n \r\n \r\n \r\n \r\n \"\r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n
    • \r\n
      \r\n','LinkList'); +INSERT INTO template VALUES (3,'Ordered List','\r\n

      \r\n
      \r\n\r\n\r\n

      \r\n\r\n\r\n\r\n \">

      \r\n\r\n\r\n

        \r\n\r\n
      1. \r\n \r\n \r\n \r\n\r\n \"\r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n
      2. \r\n
        \r\n
      ','LinkList'); +INSERT INTO template VALUES (4,'Descriptive','\r\n

      \r\n
      \r\n\r\n\r\n

      \r\n\r\n\r\n\r\n \">

      \r\n\r\n\r\n\r\n \r\n
      \r\n
      \r\n\r\n \"\r\n \r\n target=\"_blank\"\r\n \r\n >\r\n\r\n \r\n - \r\n \r\n

      \r\n\r\n','LinkList'); INSERT INTO template VALUES (1,'Default Site Map','\r\n

      \r\n
      \r\n\r\n\r\n

      \r\n\r\n\r\n\r\n ·\">
      \r\n
      ','SiteMap'); INSERT INTO template VALUES (2,'Descriptive Site Map','\r\n

      \r\n
      \r\n\r\n\r\n

      \r\n\r\n\r\n\r\n \"> \r\n \r\n - \r\n \r\n

      \r\n','SiteMap'); INSERT INTO template VALUES (6,'Guest Book','\r\n

      \r\n
      \r\n\r\n\r\n

      \r\n\r\n\r\n\r\n \">

      \r\n\r\n\r\n\r\n\r\n\r\n\r\n

      \r\n\r\n\r\nOn \"> from \">the department wrote, \r\n\r\n\r\n
      \r\n
      \r\n\r\n

      \r\n\r\n\r\n\r\n\r\n

      \r\n ˇ \r\n
      \r\n
      \r\n','USS'); @@ -9657,7 +9661,7 @@ CREATE TABLE webguiVersion ( -- -INSERT INTO webguiVersion VALUES ('4.9.0','initial install',unix_timestamp()); +INSERT INTO webguiVersion VALUES ('4.9.1','initial install',unix_timestamp()); -- -- Table structure for table 'wobject' diff --git a/docs/upgrades/upgrade_4.9.1-4.9.2.sql b/docs/upgrades/upgrade_4.9.1-4.9.2.sql new file mode 100644 index 000000000..479526841 --- /dev/null +++ b/docs/upgrades/upgrade_4.9.1-4.9.2.sql @@ -0,0 +1,3 @@ +insert into webguiVersion values ('4.9.2','upgrade',unix_timestamp()); + + diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index a89c14b76..e1b496edf 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -1,5 +1,5 @@ package WebGUI; -our $VERSION = "4.9.1"; +our $VERSION = "4.9.2"; #------------------------------------------------------------------- # WebGUI is Copyright 2001-2002 Plain Black LLC.