fixed a few upgrade issues

This commit is contained in:
JT Smith 2005-03-03 18:33:50 +00:00
parent 1efa40e257
commit 446fc33024
28 changed files with 107 additions and 9491 deletions

View file

@ -14,6 +14,10 @@
- bugfix [ 1155826 ] Forum After update has doble posts
- bugfix [ 1154990 ] lost "get" in code (Collaboration)
- bugfix [ 1154269 ] empty trash doesn't work
- bugfix [ 1154051 ] Unable to remove link below article
- bugfix [ 1152826 ] WebGUI.conf.original in source is not complit
- bugfix [ 1145984 ] <tmpl_var session.page.title> is still in Style
Templates
6.3.0

View file

@ -9,6 +9,11 @@ save you many hours of grief.
6.3.0
--------------------------------------------------------------------
* In order to upgrade to 6.3.0 or beyond you need to have already
already upgraded to 6.2.0 or above. The upgrades will fail if
you try to jump from any 6.1 (or prior) version directly to
6.3.
* Your upgrade process will be a little different from here on out.
Use the following steps to do the upgrade:

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
insert into webguiVersion values ('5.5.2','upgrade',unix_timestamp());

View file

@ -1,4 +0,0 @@
insert into webguiVersion values ('5.5.3','upgrade',unix_timestamp());
delete from template where namespace='DataForm' and templateId=1;
INSERT INTO template VALUES (1,'Mail Form','<tmpl_if displayTitle>\n <h1><tmpl_var title></h1>\n</tmpl_if>\n\n<tmpl_if error_loop>\n<ul>\n<tmpl_loop error_loop>\n <li><b><tmpl_var error.message></b>\n</tmpl_loop>\n</ul>\n</tmpl_if>\n\n<tmpl_if description>\n <tmpl_var description><p />\n</tmpl_if>\n\n<tmpl_if canEdit>\n <a href=\"<tmpl_var entryList.url>\"><tmpl_var entryList.label></a>\n &middot; <a href=\"<tmpl_var export.tab.url>\"><tmpl_var export.tab.label></a>\n <tmpl_if entryId>\n &middot; <a href=\"<tmpl_var delete.url>\"><tmpl_var delete.label></a>\n </tmpl_if>\n <tmpl_if session.var.adminOn>\n &middot; <a href=\"<tmpl_var addField.url>\"><tmpl_var addField.label></a>\n </tmpl_if>\n <p /> \n</tmpl_if>\n\n<tmpl_var form.start>\n<table>\n<tmpl_loop field_loop>\n <tmpl_unless field.isHidden>\n <tr><td class=\"formDescription\" valign=\"top\">\n <tmpl_if session.var.adminOn><tmpl_if canEdit><tmpl_var field.controls></tmpl_if></tmpl_if>\n <tmpl_var field.label>\n </td><td class=\"tableData\" valign=\"top\">\n <tmpl_if field.isDisplayed>\n <tmpl_var field.value>\n <tmpl_else>\n <tmpl_var field.form>\n </tmpl_if>\n <tmpl_if field.required>*</tmpl_if>\n <span class=\"formSubtext\"><br /><tmpl_var field.subtext></span>\n </td></tr>\n </tmpl_unless>\n</tmpl_loop>\n<tr><td></td><td><tmpl_var form.send></td></tr>\n</table>\n\n<tmpl_var form.end>\n','DataForm');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +0,0 @@
insert into webguiVersion values ('5.5.6','upgrade',unix_timestamp());
delete from international where internationalId=81 and namespace='DataForm';
INSERT INTO international VALUES (81,'DataForm',1,'Acknowledgement Template',1052064282,'A template to display whatever data there is to display.');
delete from international where internationalId=71 and namespace='DataForm';
INSERT INTO international VALUES (71,'DataForm',1,'This wobject creates a simple multipurpose data-entry form.\r\n<br><br>\r\n\r\n<b>Acknowledgement</b><br>\r\nThis message will be displayed to the user after they submit their data..\r\n<p>\r\n\r\n<b>Mail entries?</b></br>\r\nIf set to yes, some additional fields will be added to your form for dealing with email. These fields will then be used to email any date entered into the form to a person of your choice.\r\n<p>\r\n<b>NOTE:</b> The \"To\" field that is added as a result of setting this to yes can accept a standard email address, or a WebGUI username or a WebGUI group name.\r\n<p>\r\n\r\n<b>Template</b><br>\r\nChoose a template for your form.\r\n<p>\r\n\r\n<b>Email Template</b><br>\r\nChoose a template for the data that will be sent via email.\r\n<p>\r\n\r\n<b>Acknowledgement Template</b><br>\r\nChoose a template that will be used to display the acknowlegement.\r\n<p>\r\n\r\n<b>List Template</b><br>\r\nChoose a template that will be used to display the list of stored records in this Data Form.\r\n<p>',1053885941,NULL);

View file

@ -1,4 +0,0 @@
insert into webguiVersion values ('5.5.7','upgrade',unix_timestamp());
update page set ownerId=3 where ownerId=1;

View file

@ -1,3 +0,0 @@
insert into webguiVersion values ('5.5.8','upgrade',unix_timestamp());

View file

@ -1,2 +0,0 @@
insert into webguiVersion values ('5.9.9','upgrade',unix_timestamp());

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,50 +0,0 @@
#!/usr/bin/perl
use lib "../../lib";
use Getopt::Long;
use Parse::PlainConfig;
use strict;
use WebGUI::Session;
use WebGUI::International;
use WebGUI::SQL;
my $configFile;
my $quiet;
GetOptions(
'configFile=s'=>\$configFile,
'quiet'=>\$quiet
);
WebGUI::Session::open("../..",$configFile);
print "\tFixing pagination template variables.\n" unless ($quiet);
my $sth = WebGUI::SQL->read("select * from template where namespace in ('SQLReport','USS','Article','FileManager')");
while (my $data = $sth->hashRef) {
$data->{template} =~ s/isFirstPage/pagination.isFirstPage/ig;
$data->{template} =~ s/isLastPage/pagination.isLastPage/ig;
$data->{template} =~ s/firstPage/pagination.firstPage/ig;
$data->{template} =~ s/lastPage/pagination.lastPage/ig;
$data->{template} =~ s/nextPage/pagination.nextPage/ig;
$data->{template} =~ s/pageList/pagination.pageList.upTo20/ig;
$data->{template} =~ s/previousPage/pagination.previousPage/ig;
$data->{template} =~ s/multiplePages/pagination.pageCount.isMultiple/ig;
$data->{template} =~ s/numberOfPages/pagination.pageCount/ig;
$data->{template} =~ s/pageNumber/pagination.pageNumber/ig;
WebGUI::SQL->write("update template set template=".quote($data->{template})." where namespace=".quote($data->{namespace})." and templateId=".quote($data->{templateId}));
}
$sth->finish;
print "\tFixing submission controls.\n" unless ($quiet);
my $sth = WebGUI::SQL->read("select * from template where namespace in ('USS')");
while (my $data = $sth->hashRef) {
$data->{template} =~ s/\<tmpl_var submission\.controls\>/<tmpl_if session.var.adminOn><tmpl_var submission.controls><tmpl_else><tmpl_unless submission.currentUser>[<a href="<tmpl_var submission.edit.url>"><tmpl_var submission.edit.label><\/a>]<\/tmpl_unless><\/tmpl_if>/ig;
$data->{template} =~ s/\[<a href="\<tmpl_var submission\.edit\.url\>"\>\<tmpl_var submission\.edit\.label\>\<\/a\>\]/<tmpl_unless session.var.adminOn>[<a href="<tmpl_var submission.edit.url>"><tmpl_var submission.edit.label><\/a>]<\/tmpl_unless>/ig;
WebGUI::SQL->write("update template set template=".quote($data->{template})." where namespace=".quote($data->{namespace})." and templateId=".quote($data->{templateId}));
}
$sth->finish;
WebGUI::Session::close();

View file

@ -1,33 +0,0 @@
insert into webguiVersion values ('6.0.2','upgrade',unix_timestamp());
update language set toolbar='german' where languageId=2;
alter table language change toolbar toolbar varchar(35) not null default 'metal';
delete from help where helpId=1 and namespace='SQLReport';
insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'SQLReport', 61, 71, '2,SQLReport;21,WebGUI;');
delete from help where helpId=2 and namespace='SQLReport';
insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'SQLReport', 72, 73, '79,WebGUI;1,SQLReport;51,WebGUI;');
delete from international where languageId=1 and namespace='SQLReport' and internationalId=61;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (61,1,'SQLReport','SQL Report, Add/Edit', 1082365503,NULL);
delete from international where languageId=1 and namespace='SQLReport' and internationalId=71;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (71,1,'SQLReport','SQL Reports are perhaps the most powerful wobject 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<p>\r\n\r\n\r\n<b>Preprocess macros on query?</b><br>\r\nIf you\'re using WebGUI macros in your query you\'ll want to check this box.\r\n<p>\r\n\r\n\r\n<b>Debug?</b><br>\r\nIf you want to display debugging and error messages on the page, check this box.\r\n<p>\r\n\r\n\r\n<b>Query</b><br>\r\nThis is a standard SQL query. If you are unfamiliar with SQL then you\'ll likely not want to use this wobject. You can make your queries more dynamic by using the ^FormParam(); macro.\r\n<p>\r\n\r\n<b>Database Link</b><br>\r\nThe administrator can configure common databases on which you can run SQL Reports, freeing you from having to know or enter the connectivity information.\r\n<p>\r\n\r\n<b>Paginate After</b>\r\nHow many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page?\r\n<p>\r\n\r\n\r\n', 1082365503,NULL);
delete from international where languageId=1 and namespace='SQLReport' and internationalId=73;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (73,1,'SQLReport','The following variables are made available from SQL Reports:\r\n<p>\r\n\r\n<b>columns_loop</b><br />\r\nA loop containing information about each column.\r\n<br /><br />\r\n<blockquote>\r\n\r\n<b>column.number</b><br />\r\nAn integer starting with 1 and counting through the number of columns.\r\n<br /><br />\r\n\r\n<b>column.name</b><br />\r\nThe name of this column as returned by the query.\r\n<br /><br />\r\n\r\n</blockquote>\r\n\r\n<b>rows_loop</b><br />\r\nA loop containing the data returned from the query.\r\n<br /><br />\r\n<blockquote>\r\n\r\n<b>row.number</b><br />\r\nAn integer starting with 1 and counting through the total list of rows.\r\n<br /><br />\r\n\r\n<b>row.field.<b><i>NAME</i></b>.value</b><br />\r\nThe data for a given field in this row where NAME is the name of the field as it is returned by the query.\r\n<br /><br />\r\n\r\n<b>row.field_loop</b><br />\r\nA loop containing all of the fields for this row.\r\n<br /><br />\r\n<blockquote>\r\n\r\n<b>field.number</b><br />\r\nAn integer starting with 1 and counting through the number of fields in this row. This is the same as column.number in the column_loop.\r\n<br /><br />\r\n\r\n<b>field.name</b><br />\r\nThe name of the field as it is returned by the query.\r\n<br /><br />\r\n\r\n<b>field.value</b><br />\r\nThe data in this field.\r\n<br /><br />\r\n\r\n</blockquote>\r\n\r\n</blockquote>\r\n\r\n<b>rows.count</b><br />\r\nThe total number of rows returned by the query.\r\n<br /><br />\r\n\r\n<b>rows.count.isZero</b><br />\r\nA boolean indicating that the query returned zero rows.\r\n<br /><br />\r\n\r\n<b>rows.count.isZero.label</b><br />\r\nThe default label for rows.count.isZero.\r\n<br /><br />\r\n\r\n', 1082365471,NULL);
delete from help where helpId=2 and namespace='USS';
insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'USS', 74, 75, '79,WebGUI;1,USS;51,WebGUI;');
delete from international where languageId=1 and namespace='USS' and internationalId=75;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (75,1,'USS','This is the listing of template variables available in user submission system templates.\r\n<p/>\r\n\r\n<b>readmore.label</b><br/>\r\nA translated label that indicates that the user should click to read more.\r\n<p/>\r\n\r\n<b>responses.label</b><br/>\r\nA translated label that indicates that the user should click to view the responses to this submission.\r\n<p/>\r\n\r\n<b>canPost</b><br/>\r\nA condition that indicates whether a user can add a new submission.\r\n<p/>\r\n\r\n<b>post.url</b><br/>\r\nThe URL to add a new submission.\r\n<p/>\r\n\r\n<b>post.label</b><br/>\r\nA translated label for the post link.\r\n<p/>\r\n\r\n<b>addquestion.label</b><br>\r\nA translated label that prompts the user to add a question to the USS.\r\n<p>\r\n\r\n<b>addlink.label</b><br>\r\nA translated label that prompts the user to add a link to the USS.\r\n<p>\r\n\r\n<b>search.label</b><br/>\r\nA translated label for the search link.\r\n<p/>\r\n\r\n<b>search.url</b><br/>\r\nThe URL to toggle on/off WebGUI\'s power search form.\r\n<p/>\r\n\r\n<b>search.form</b><br/>\r\nWebGUI\'s power search form.\r\n<p/>\r\n\r\n<b>rss.url</b><br>\r\nThe URL to generate an RSS feed from the content in the USS.\r\n<p>\r\n\r\n<b>canModerate</b><br>\r\nA condition indicating whether the current user has the rights to moderate posts in this USS.\r\n<p>\r\n\r\n<b>title.label</b><br/>\r\nA translated label for the title column.\r\n<p/>\r\n\r\n<b>thumbnail.label</b><br/>\r\nA translated label for the thumbnail column.\r\n<p/>\r\n\r\n<b>date.label</b><br/>\r\nA translated label for the date column.\r\n<p/>\r\n\r\n<b>date.updated.label</b><br/>\r\nThe translated label indicating what date this submission was last edited.\r\n<p/>\r\n\r\n<b>by.label</b><br/>\r\nA translated label stating who the submission was submitted by.\r\n<p/>\r\n\r\n<b>submission.edit.label</b><br>\r\nA translated text label that prompts the user to edit a particular submission.\r\n<p>\r\n\r\n<b>submissions_loop</b><br/>\r\nA loop containing each submission.\r\n<blockquote>\r\n\r\n<b>submission.id</b><br/>\r\nA unique identifier for this submission.\r\n<p/>\r\n\r\n<b>submission.url</b><br/>\r\nThe URL to view this submission.\r\n<p/>\r\n\r\n<b>submission.content</b><br/>\r\nThe abbreviated text content of this submission.\r\n<p/>\r\n\r\n<b>submission.content.full</b><br/>\r\nThe full text content of this submission.\r\n<p/>\r\n\r\n\r\n<b>submission.responses</b><br/>\r\nThe number of responses to this submission.\r\n<p/>\r\n\r\n<b>submission.title</b><br/>\r\nThe title for this submission.\r\n<p/>\r\n\r\n<b>submission.userDefined1 - submission.userDefined5</b><br>\r\nA series of user defined fields to add custom functionality to the USS.\r\n<p>\r\n\r\n<b>submission.userId</b><br/>\r\nThe user id of the user that posted this submission.\r\n<p/>\r\n\r\n<b>submission.username</b><br/>\r\nThe username of the person that posted this submission.\r\n<p/>\r\n\r\n<b>submission.status</b><br/>\r\nThe status of this submission (approved, pending, denied).\r\n<p/>\r\n\r\n<b>submission.thumbnail</b><br/>\r\nThe thumbnail of the image uploaded with this submission (if any).\r\n<p/>\r\n\r\n<b>submission.image</b><br>\r\nThe URL of the image attached to this submission.\r\n<p>\r\n\r\n\r\n<b>submission.date</b><br/>\r\nThe that this submission was posted.\r\n<p/>\r\n\r\n<b>submission.date.updated</b><br/>\r\nA human readable date that displays the date and time this submission was last edited.\r\n<p/>\r\n\r\n<b>submission.currentUser</b><br/>\r\nA condition indicating whether the current user is the same as the user that posted this submission.\r\n<p/>\r\n\r\n<b>submission.userProfile</b><br/>\r\nThe URL to the profile of the user that posted this submission.\r\n<p/>\r\n\r\n<b>submission.edit.url</b><br>\r\nThe URL to edit this submission.\r\n<p>\r\n\r\n\r\n<b>submission.secondColumn</b><br/>\r\nA condition indicating whether or not this submission would belong in the second column, in a multi-column layout.\r\n<p/>\r\n\r\n<b>submission.thirdColumn</b><br/>\r\nA condition indicating whether or not this submission would belong in the third column, in a multi-column layout.\r\n<p/>\r\n\r\n<b>submission.fourthColumn</b><br/>\r\nA condition indicating whether or not this submission would belong in the fourth column, in a multi-column layout.\r\n<p/>\r\n\r\n<b>submission.fifthColumn</b><br/>\r\nA condition indicating whether or not this submission would belong in the fifth column, in a multi-column layout.\r\n<p/>\r\n\r\n<b>submission.controls</b><br>\r\nThe administrative toolbar for each submission.\r\n<p>\r\n\r\n</blockquote>\r\n<p/>\r\n\r\n', 1082367203,NULL);
delete from help where helpId=2 and namespace='Article';
insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'Article', 72, 73, '1,Article;79,WebGUI;51,WebGUI;');
delete from help where helpId=3 and namespace='FileManager';
insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'FileManager', 75, 76, '1,FileManager;79,WebGUI;51,WebGUI;');
delete from international where languageId=1 and namespace='FileManager' and internationalId=76;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (76,1,'FileManager','This is the list of template variables available in File Manager templates.\r\n<p/>\r\n\r\n<b>titleColumn.url</b><br/>\r\nThe URL to sort by the title.\r\n<p/>\r\n\r\n<b>titleColumn.label</b><br/>\r\nThe translated label for the title.\r\n<p/>\r\n\r\n<b>descriptionColumn.label</b><br/>\r\nThe translated label for the description.\r\n<p/>\r\n\r\n<b>descriptionColumn.url</b><br/>\r\nThe URL to sort by the description.\r\n<p/>\r\n\r\n<b>dateColumn.label</b><br/>\r\nThe translated label for the upload date.\r\n<p/>\r\n\r\n<b>dateColumn.url</b><br/>\r\nThe URL to sort by the date uploaded.\r\n<p/>\r\n\r\n<b>search.form</b><br/>\r\nWebGUI\'s power search form.\r\n<p/>\r\n\r\n<b>search.url</b><br/>\r\nThe URL to toggle search mode on and off.\r\n<p/>\r\n\r\n<b>search.label</b><br/>\r\nThe translated label for the search link.\r\n<p/>\r\n\r\n<b>addfile.url</b><br/>\r\nThe URL to add a file to the file manager.\r\n<p/>\r\n\r\n<b>addfile.label</b><br/>\r\nThe translated label for the add file link.\r\n<p/>\r\n\r\n<b>file_loop</b><br/>\r\nA loop containing the information about each file uploaded to this file manager.\r\n<blockquote>\r\n<b>file.canView</b><br/>\r\nA condition as to whether the current user has the privileges to view this file.\r\n<p/>\r\n<b>file.controls</b><br/>\r\nThe WebGUI management controls for this file.\r\n<p/>\r\n<b>file.title</b><br/>\r\nThe title for this file.\r\n<p/>\r\n<b>file.version1.name</b><br/>\r\nThe filename for the first version of this file.\r\n<p/>\r\n<b>file.version1.url</b><br/>\r\nThe download URL for the first version of this file.\r\n<p/>\r\n<b>file.version1.icon</b><br/>\r\nThe URL to the icon for the file type of the first version of this file.\r\n<p/>\r\n<b>file.version1.size</b><br/>\r\nThe storage size of the first version of this file.\r\n<p/>\r\n<b>file.version1.type</b><br/>\r\nThe type (or file extension) of the first version of this file.\r\n<p/>\r\n<b>file.version1.thumbnail</b><br/>\r\nThe URL to the thumbnail for the first version of this file.\r\n<p/>\r\n<b>file.version1.isImage</b><br/>\r\nA conditional indicating whether the first version of this file is an image or not.\r\n<p/>\r\n<b>file.version2.name</b><br/>\r\nThe filename for the second version of this file.\r\n<p/>\r\n<b>file.version2.url</b><br/>\r\nThe download URL for the second version of this file.\r\n<p/>\r\n<b>file.version2.icon</b><br/>\r\nThe URL to the icon for the file type of the second version of this file.\r\n<p/>\r\n<b>file.version2.size</b><br/>\r\nThe storage size of the second version of this file.\r\n<p/>\r\n<b>file.version2.type</b><br/>\r\nThe type (or file extension) of the second version of this file.\r\n<p/>\r\n<b>file.version2.thumbnail</b><br/>\r\nThe URL to the thumbnail for the second version of this file.\r\n<p/>\r\n<b>file.version2.isImage</b><br/>\r\nA conditional indicating whether the second version of this file is an image or not.\r\n<p/>\r\n<b>file.version3.name</b><br/>\r\nThe filename for the third version of this file.\r\n<p/>\r\n<b>file.version3.url</b><br/>\r\nThe download URL for the third version of this file.\r\n<p/>\r\n<b>file.version3.icon</b><br/>\r\nThe URL to the icon for the file type of the third version of this file.\r\n<p/>\r\n<b>file.version3.size</b><br/>\r\nThe storage size of the third version of this file.\r\n<p/>\r\n<b>file.version3.type</b><br/>\r\nThe type (or file extension) of the third version of this file.\r\n<p/>\r\n<b>file.version3.thumbnail</b><br/>\r\nThe URL to the thumbnail for the third version of this file.\r\n<p/>\r\n<b>file.version3.isImage</b><br/>\r\nA conditional indicating whether the third version of this file is an image or not.\r\n<p/>\r\n<b>file.description</b><br/>\r\nThe description of this file.\r\n<p/>\r\n<b>file.date</b><br/>\r\nThe date that this file was uploaded.\r\n<p/>\r\n<b>file.time</b><br/>\r\nThe time that this file was uploaded.\r\n<p/>\r\n</blockquote>\r\n<p/>\r\n<b>noresults.message</b><br/>\r\nA translated message stating that this file manager has no files for this user to view.\r\n<p/>\r\n<b>noresults</b><br/>\r\nA conditional indicating whether there are any files for this user to view.\r\n<p/>\r\n\r\n', 1082371148,NULL);
delete from international where languageId=1 and namespace='Article' and internationalId=73;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (73,1,'Article','The following template variables are available for article templates.\r\n<p/>\r\n\r\n<b>new.template</b><br>\r\nArticles have the special ability to change their template so that you can allow users to see different views of the article. You do this by creating a link with a URL like this (replace 999 with the template Id you wish to use):<p>\r\n&lt;a href=\"&lt;tmpl_var new.template&gt;999\"&gt;Read more...&lt;/a&gt;\r\n<p>\r\n<b>description.full</b><br>\r\nThe full description without any pagination. (For the paginated description use \"description\" instead.)\r\n<p>\r\n\r\n<b>description.first.100words</b><br>\r\nThe first 100 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.75words</b><br>\r\nThe first 75 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.50words</b><br>\r\nThe first 50 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.25words</b><br>\r\nThe first 25 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.10words</b><br>\r\nThe first 10 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.\r\n<p>\r\n\r\n<b>description.first.paragraph</b><br>\r\nThe first paragraph of the description. The first paragraph is determined by the first carriage return found in the text.\r\n<p>\r\n\r\n<b>description.first.2paragraphs</b><br>\r\nThe first two paragraphs of the description. A paragraph is determined by counting the carriage returns found in the text.\r\n<p>\r\n\r\n<b>description.first.sentence</b><br>\r\nThe first sentence in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n<b>description.first.2sentences</b><br>\r\nThe first two sentences in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n<b>description.first.3sentences</b><br>\r\nThe first three sentences in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n<b>description.first.4sentences</b><br>\r\nThe first four sentences in the description. A sentence is determined by counting the periods found in the text.\r\n<p>\r\n\r\n\r\n\r\n<b>attachment.box</b><br/>\r\nOutputs a standard WebGUI attachment box including icon, filename, and attachment indicator.\r\n<p/>\r\n\r\n<b>attachment.icon</b><br/>\r\nThe URL to the icon image for this attachment type.\r\n<p/>\r\n\r\n<b>attachment.name</b><br/>\r\nThe filename for this attachment.\r\n<p/>\r\n\r\n<b>attachment.url</b><br/>\r\nThe URL to download this attachment.\r\n<p/>\r\n\r\n<b>image.thumbnail</b><br/>\r\nThe URL to the thumbnail for the attached image.\r\n<p/>\r\n\r\n<b>image.url</b><br/>\r\nThe URL to the attached image.\r\n<p/>\r\n\r\n<b>post.label</b><br/>\r\nThe translated label to add a comment to this article.\r\n<p/>\r\n\r\n\r\n<b>post.URL</b><br/>\r\nThe URL to add a comment to this article.\r\n<p/>\r\n\r\n<b>replies.count</b><br/>\r\nThe number of comments attached to this article.\r\n<p/>\r\n\r\n<b>replies.label</b><br/>\r\nThe translated text indicating that you can view the replies.\r\n<p/>\r\n\r\n<b>replies.url</b><br/>\r\nThe URL to view the replies to this article.\r\n<p/>\r\n\r\n', 1082370724,NULL);
delete from international where languageId=1 and namespace='WebGUI' and internationalId=1086;
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (1086,1,'WebGUI','Many wobjects have pagination features. Though some wobjects define their own pagination variables, most use a common set of pagination variables. These are those:\r\n\r\n<br /><br />\r\n\r\n<b>pagination.firstPage</b><br>\r\nA link to the first page in the paginator.\r\n<p> \r\n\r\n<b>pagination.isFirstPage</b><br>\r\nA boolean indicating whether the current page is the first page.\r\n<p> \r\n\r\n\r\n<b>pagination.lastPage</b><br>\r\nA link to the last page in the paginator.\r\n<p> \r\n\r\n<b>pagination.isLastPage</b><br>\r\nA boolean indicating whether the current page is the last page.\r\n<p> \r\n\r\n<b>pagination.nextPage</b><br>\r\nA link to the next page in the paginator relative to the current page.\r\n<p> \r\n\r\n<b>pagination.previousPage</b><br>\r\nA link to the previous page in the paginator relative to the current page.\r\n<p> \r\n\r\n<b>pagination.pageNumber</b><br>\r\nThe current page number.\r\n<p> \r\n\r\n<b>pagination.pageCount</b><br>\r\nThe total number of pages.\r\n<p> \r\n\r\n<b>pagination.pageCount.isMultiple</b><br>\r\nA boolean indicating whether there is more than one page.\r\n<p> \r\n\r\n<b>pagination.pageList</b><br>\r\nA list of links to every page in the paginator.\r\n<p> \r\n\r\n\r\n<b>pagination.pageList.upTo20</b><br>\r\nA list of links to the 20 nearest in the paginator relative to the current page. So if you\'re on page 60, you\'ll see links for 50-70.\r\n<p> \r\n\r\n<b>pagination.pageList.upTo10</b><br>\r\nA list of links to the 10 nearest in the paginator relative to the current page. So if you\'re on page 20, you\'ll see links for 15-25.\r\n<p> \r\n\r\n', 1082370668,NULL);
update international set message='A Web Services Client allows a user to query data from any SOAP server to which they have access. This wobject is in development status and should not be made accessible to un-trusted site administratores.<p></p>\n\n<b>SOAP URI/WSDL</b><br>\nFrom the SOAP::Lite manpage, \"URIs are just identifiers. They may look like URLs, but they are not guaranteed to point to anywhere and shouldn\'t be used as such pointers. URIs assume to be unique within the space of all XML documents, so consider them as unique identifiers and nothing else.\" If you specify a URI, you probably also need a proxy below. Alternatively, you can specify a WSDL file in place of a URI. This file refers to a real location at which a SOAP service description can be downloaded and used. For our purposes, the file must end in \".wsdl\" to be properly recognized. If you use a WSDL file, you probably don\'t need to specify a proxy.<p></p>\n\n<b>SOAP Proxy</b><br>\nThe SOAP proxy is the full name of the server and/or script that is listening for SOAP calls. For example:\n<code>http://mydomain.com/cgi-bin/soaplistener.pl</code><p></p>\n\n<b>SOAP Method/Call</b><br>\nThe SOAP method is the name of the function to be invoked by the SOAP server. Include any extra parameters in the SOAP Call Parameters field below.<p></p>\n\n<b>SOAP Call Parameters</b><br>\nIf your SOAP call requires any additional parameters, include them here as a valid perl hash, array or scalar. For example: <code>\'userid\' => \'12\', companyid => \'^FormParam(\"companyid\"); Whether you need to use scalar, hash or array is entirely dependent on what your SOAP service expects as input. Likewise, what you get back is entirely dependent on what the service deems to return.\'</code>.<p></p>\n\n<b>Execute by default?</b><br>\nLeave this set to yes unless your page is calling itself with additional parameters. You will probably know if/when you need to turn off default execution. To force execution when it has been disabled by default, pass a form variable \"targetWobjects\" specifying the name of the SOAP call to force execution.<p></p>\n\n<b>Template</b><br>\nChoose a layout for this SOAP client.<p></p>\n\n<b>Preprocess macros on query?</b><br>\nIf you\'re using WebGUI macros in your query you\'ll want to check this box.<p></p>\n\n<b>Pagination After</b><br>\nHow many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page?<p></p>\n\n<b>Pagination Variable</b><br>\nBecause a SOAP call can return complex data structures, you\'ll need to specify which named variable is to be paginated. If none is specified, no pagination will occur.<p></p>\n\n<b>Debug?</b><br>\nIf you want to display debugging and error messages on the page, check this box.<p></p>\n\n<b>Decode utf8?</b><br />\nThis option will only display if you have Data::Structure::Util installed. SOAP calls return utf8 strings even if they may not have utf8 characters within them. This converts utf8 characters to that there aren\'t collisions with any character sets specified in the page header. Deocing is turned off by default, but try turning it on if you see goofy gibberish, especially with the display of copyright symbols and the like.' where namespace='WSClient' and internationalId=71 and languageId=1;
INSERT INTO international VALUES (27,'WSClient',1,'Cache expires',1055349028,NULL);
delete from template where templateId=3 and namespace='USS/Submission';
INSERT INTO template VALUES (3,'Link','<h1><tmpl_var title></h1>\r\n\r\n<tmpl_if content>\r\n<p>\r\n<b>Link Description</b><br />\r\n<tmpl_var content>\r\n</p>\r\n</tmpl_if>\r\n\r\n<b>Link URL</b><br />\r\n<a href=\"<tmpl_var userDefined1.value>\"><tmpl_var userDefined1.value></a>\r\n\r\n<p>\r\n<a href=\"<tmpl_var back.url>\">List All Links</a>\r\n</p>\r\n\r\n\r\n<tmpl_if canEdit>\r\n<p>\r\n <a href=\"<tmpl_var edit.url>\">Edit</a>\r\n &middot;\r\n <a href=\"<tmpl_var delete.url>\"><tmpl_var delete.label></a>\r\n</p>\r\n</tmpl_if>\r\n\r\n<tmpl_if canChangeStatus>\r\n <p>\r\n<b>Status:</b> <tmpl_var status.status> ||\r\n <a href=\"<tmpl_var approve.url>\"><tmpl_var approve.label></a>\r\n &middot;\r\n <a href=\"<tmpl_var deny.url>\"><tmpl_var deny.label></a>\r\n </p>\r\n</tmpl_if>\r\n\r\n\r\n\r\n','USS/Submission',1,1);

View file

@ -1,34 +0,0 @@
#!/usr/bin/perl
use lib "../../lib";
use Getopt::Long;
use Parse::PlainConfig;
use strict;
use WebGUI::Session;
use WebGUI::International;
use WebGUI::SQL;
my $configFile;
my $quiet;
GetOptions(
'configFile=s'=>\$configFile,
'quiet'=>\$quiet
);
WebGUI::Session::open("../..",$configFile);
print "\tFixing pagination template variables.\n" unless ($quiet);
my $sth = WebGUI::SQL->read("select * from template where namespace in ('Article')");
while (my $data = $sth->hashRef) {
$data->{template} =~ s/pagination\.ispagination\.firstPage/pagination.isFirstPage/ig;
$data->{template} =~ s/pagination\.ispagination\.lastPage/pagination.isLastPage/ig;
WebGUI::SQL->write("update template set template=".quote($data->{template})." where namespace=".quote($data->{namespace})." and templateId=".quote($data->{templateId}));
}
$sth->finish;
WebGUI::Session::close();

View file

@ -1,306 +0,0 @@
insert into webguiVersion values ('6.0.3','upgrade',unix_timestamp());
delete from international where internationalId=981 and namespace='WebGUI';
INSERT INTO international VALUES (981,'WebGUI',1,'Manage database links.',1056151382,NULL);
delete from replacements where replacementId=0;
delete from international where languageId=13 and namespace='Product' and internationalId=26;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (26,13,'Product','', 1085386749);
delete from international where languageId=13 and namespace='Product' and internationalId=31;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (31,13,'Product','', 1085386742);
delete from international where languageId=13 and namespace='Product' and internationalId=21;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (21,13,'Product','', 1085386734);
delete from international where languageId=13 and namespace='Product' and internationalId=20;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (20,13,'Product','', 1085386728);
delete from international where languageId=13 and namespace='Product' and internationalId=19;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (19,13,'Product','', 1085386720);
delete from international where languageId=13 and namespace='FileManager' and internationalId=10;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (10,13,'FileManager','Muokkaa tallennusta', 1085386392);
delete from international where languageId=13 and namespace='FileManager' and internationalId=7;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (7,13,'FileManager','Ryhmä joka saa ladata', 1085386264);
delete from international where languageId=13 and namespace='Navigation' and internationalId=18;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (18,13,'Navigation','Muokkaa tätä navigointia.', 1083593265);
delete from international where languageId=13 and namespace='Navigation' and internationalId=27;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (27,13,'Navigation','Max syvyys', 1083593246);
delete from international where languageId=13 and namespace='Navigation' and internationalId=24;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (24,13,'Navigation','Tunniste', 1083593222);
delete from international where languageId=13 and namespace='Navigation' and internationalId=23;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (23,13,'Navigation','Navigoinnin ominaisuudet', 1083593203);
delete from international where languageId=13 and namespace='Navigation' and internationalId=22;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (22,13,'Navigation','Muokkaa navigointia', 1083593188);
delete from international where languageId=13 and namespace='Navigation' and internationalId=21;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (21,13,'Navigation','Listaa navigoinnit.', 1083593172);
delete from international where languageId=13 and namespace='Navigation' and internationalId=19;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (19,13,'Navigation','Kopioi tämä navigointi.', 1083593157);
delete from international where languageId=13 and namespace='Navigation' and internationalId=20;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (20,13,'Navigation','Poista tämä navigointi.', 1083593134);
delete from international where languageId=13 and namespace='Poll' and internationalId=73;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (73,13,'Poll','Gallup mallipohja', 1083593030);
delete from international where languageId=13 and namespace='Survey' and internationalId=86;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (86,13,'Survey','Eteneminen', 1083592968);
delete from international where languageId=13 and namespace='Survey' and internationalId=84;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (84,13,'Survey','Max vastausta / käyttäjä', 1083592916);
delete from international where languageId=13 and namespace='Survey' and internationalId=83;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (83,13,'Survey','Kysymyksiä / sivu', 1083592869);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1021;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1021,13,'WebGUI','Arvostele viestiä', 1083592730);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1018;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1018,13,'WebGUI','Aloita uusi ketju', 1083592663);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1020;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1020,13,'WebGUI','Arvostelu', 1083592616);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1027;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1027,13,'WebGUI','Salli täydennykset?', 1083592553);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1012;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1012,13,'WebGUI','Lukitse tämä ketju?', 1083592534);
delete from international where languageId=13 and namespace='WSClient' and internationalId=9;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (9,13,'WSClient','Virheenselvitys?', 1083592386);
delete from international where languageId=13 and namespace='WSClient' and internationalId=8;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (8,13,'WSClient','Esikäsittele kyselyn makrot?', 1083592364);
delete from international where languageId=13 and namespace='WobjectProxy' and internationalId=9;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (9,13,'WobjectProxy','Kumoa kuvaus?', 1083592329);
delete from international where languageId=13 and namespace='WobjectProxy' and internationalId=7;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (7,13,'WobjectProxy','Kumoa otsikko?', 1083592301);
delete from international where languageId=13 and namespace='WobjectProxy' and internationalId=10;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (10,13,'WobjectProxy','Kumoa mallipohja?', 1083592288);
delete from international where languageId=13 and namespace='WobjectProxy' and internationalId=8;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (8,13,'WobjectProxy','Kumoa "Näytä otsikko"?', 1083592272);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1085;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1085,13,'WebGUI','Sivutus mallipohjan muuttujat', 1083592091);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1084;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1084,13,'WebGUI','Oletus', 1083592066);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1083;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1083,13,'WebGUI','Uusi sisältö', 1083592055);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1082;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1082,13,'WebGUI','Leikepöytä', 1083592029);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1081;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1081,13,'WebGUI','Pääkäyttäjän tyyli', 1083592018);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1080;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1080,13,'WebGUI','Käytätkö pääkäyttäjän tyyliä?', 1083592003);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1079;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1079,13,'WebGUI','Tulostettava muoto', 1083591955);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1072;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1072,13,'WebGUI','Sähköpostiosoite on jo käytössä. Käytä eri sähköpostiosoitetta.', 1083591904);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1052;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1052,13,'WebGUI','Muokkaa täydennystä', 1083591766);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1053;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1053,13,'WebGUI','Hallitse täydennyksiä', 1083591751);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1051;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1051,13,'WebGUI','Korvaa tällä', 1083591681);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1026;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1026,13,'WebGUI','Salli muotoilu?', 1083591551);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=845;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (845,13,'WebGUI','Tyylimakrot', 1083591451);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=841;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (841,13,'WebGUI','Navigointimakrot', 1083591446);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=839;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (839,13,'WebGUI','Ohjelmoijan makrot', 1083591438);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=655;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (655,13,'WebGUI','Käyttäjä, Lisää/Muokkaa', 1083591401);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=652;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (652,13,'WebGUI','Käyttäjäasetukset, muokkaa', 1083591393);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=642;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (642,13,'WebGUI','Sivu, Lisää/Muokkaa', 1083591383);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=5;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (5,13,'Auth/WebGUI','Salasana ei voi olla "password".', 1083591365);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=4;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (4,13,'Auth/WebGUI','Salasanaa ei voi jättää tyhjäksi.', 1083591357);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=3;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (3,13,'Auth/WebGUI','Salasanasi ei täsmää. Yritä uudelleen.', 1083591346);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=2;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (2,13,'Auth/WebGUI','Salasana (vahvista)', 1083591337);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=1;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1,13,'Auth/WebGUI','WebGUI tunnistautumisen lisäasetukset', 1083591329);
delete from international where languageId=13 and namespace='EventsCalendar' and internationalId=94;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (94,13,'EventsCalendar','Tapahtumakalenterin mallipohja', 1083591247);
delete from international where languageId=13 and namespace='EventsCalendar' and internationalId=96;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (96,13,'EventsCalendar','Tapahtuman mallipohja', 1083591238);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=8;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (8,13,'Auth/WebGUI','Salasanasi on vanhentunut', 1078874691);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=7;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (7,13,'Auth/WebGUI','Salasanan pituus pitää olla vähintään', 1078874676);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=6;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (6,13,'Auth/WebGUI','Salli salasanan alustus?', 1078874642);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=22;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (22,13,'Auth/WebGUI','Ei päivitettäviä kenttiä.', 1078874612);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=21;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (21,13,'Auth/WebGUI','Salli käyttäjän muuttaa käyttäjätunnus?', 1078874591);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=20;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (20,13,'Auth/WebGUI','Salli käyttäjän muuttaa salasana?', 1078874562);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=19;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (19,13,'Auth/WebGUI','Salli käyttäjän muuttaa käyttäjätunnus?', 1078874534);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=18;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (18,13,'Auth/WebGUI','Salli käyttäjän vaihtaa salasana?', 1078874514);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=17;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (17,13,'Auth/WebGUI','Salasana muutettu', 1078874477);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=15;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (15,13,'Auth/WebGUI','Salasanan min. pituus', 1078874419);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=14;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (14,13,'Auth/WebGUI','Salasanan min. pituus.', 1078874394);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=13;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (13,13,'Auth/WebGUI','Salli salasanan alustus?', 1078874370);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=12;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (12,13,'Auth/WebGUI','Et voi käyttää vanhaa salasanaasi uudestaan.', 1078874345);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=11;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (11,13,'Auth/WebGUI','Uusi salasana', 1078874231);
delete from international where languageId=13 and namespace='Auth/WebGUI' and internationalId=10;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (10,13,'Auth/WebGUI','Vanha salasana', 1078874219);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=935;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (935,13,'WebGUI','Tallennetttava tiedosto ei ole kelvollinen teema-tiedosto.', 1069777814);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=941;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (941,13,'WebGUI','Valintaruutulista', 1069777750);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=942;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (942,13,'WebGUI','Valintanappilista', 1069777729);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=943;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (943,13,'WebGUI','Valintaruutu', 1069777679);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=974;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (974,13,'WebGUI','Voiko käyttäjät lisätä itsensä?', 1069777603);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=983;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (983,13,'WebGUI','Muokkaa tätä tietokantayhteyttä.', 1069777531);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=984;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (984,13,'WebGUI','Kopioi tämä tietokantayhteys.', 1069777515);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=985;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (985,13,'WebGUI','Poista tämä tietokantayhteys.', 1069777502);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=986;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (986,13,'WebGUI','Takaisin tietokantayhteyksiin.', 1069777487);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=987;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (987,13,'WebGUI','Poista tietokantayhteys', 1069777466);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=988;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (988,13,'WebGUI','Tahdotko varmasti poistaa tietokantayhteyden? Seuraavat osat käyttävät sitä, eivätkä toimi oikein poistamisen jälkeen:', 1069777440);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=989;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (989,13,'WebGUI','sivulla', 1069777347);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=991;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (991,13,'WebGUI','Tietokantayhteyden tunnus', 1069777326);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=992;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (992,13,'WebGUI','Otsikko', 1069777299);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=891;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (891,13,'WebGUI','Kiellä ainoastaan makrot.', 1069777281);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=818;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (818,13,'WebGUI','Deaktivoitu', 1069776564);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=801;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (801,13,'WebGUI','Wobjektin vuorovaikutukset', 1069776519);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1069;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1069,13,'WebGUI','Käytettävä hostname', 1069776319);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=993;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (993,13,'WebGUI','DSN', 1069776273);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1011;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1011,13,'WebGUI','Koodi', 1069776171);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1010;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1010,13,'WebGUI','Teksti', 1069776160);
delete from international where languageId=13 and namespace='SiteMap' and internationalId=7;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (7,13,'SiteMap','Aakkosjärjestys?', 1068724340);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1046;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1046,13,'WebGUI','Arkistoitu', 1068663769);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1041;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1041,13,'WebGUI','Avaa lukitus', 1068663750);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1040;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1040,13,'WebGUI','Lukitse', 1068663738);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1044;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1044,13,'WebGUI','Etsintäsivun mallipohja', 1068663730);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1039;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1039,13,'WebGUI','Takaisin', 1068663673);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1043;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1043,13,'WebGUI','Koska arkistoidaan', 1068663665);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1042;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1042,13,'WebGUI','Postitusta/sivu', 1068663629);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=898;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (898,13,'WebGUI','Site Icon', 1068663597);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=513;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (513,13,'WebGUI','Edellinen viestiketju', 1068663528);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=512;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (512,13,'WebGUI','Seuraava viestiketju', 1068663522);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=529;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (529,13,'WebGUI','tulosta', 1068663516);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=873;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (873,13,'WebGUI','Liity keskusteluun', 1068663489);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=874;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (874,13,'WebGUI','Eroa viestiketjusta', 1068663482);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=875;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (875,13,'WebGUI','Uusi viesti on saapunut keskusteluun johon olet liittynyt.', 1068663473);
delete from international where languageId=13 and namespace='MessageBoard' and internationalId=73;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (73,13,'MessageBoard','Keskustelualueen mallipohja', 1068663449);
delete from international where languageId=13 and namespace='MessageBoard' and internationalId=61;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (61,13,'MessageBoard','Keskustelualue, Lisää/Muokkaa', 1068663423);
delete from international where languageId=13 and namespace='EventsCalendar' and internationalId=61;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (61,13,'EventsCalendar','Tapahtumakalenteri, Lisää/Muokkaa', 1068663411);
delete from international where languageId=13 and namespace='Article' and internationalId=61;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (61,13,'Article','Artikkeli, Lisää/Muokkaa', 1068663397);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=430;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (430,13,'WebGUI','Viimeksi käytetty', 1065225099);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=435;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (435,13,'WebGUI','Istunnon tunnus', 1065225061);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=448;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (448,13,'WebGUI','Sivuston rakenne', 1065224886);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=528;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (528,13,'WebGUI','Mallin nimi', 1065224772);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=445;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (445,13,'WebGUI','Asetukset', 1065224592);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=133;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (133,13,'WebGUI','Muokkaa viestinvälitys asetuksia', 1065224474);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=135;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (135,13,'WebGUI','Lähtevän postin palvelin (SMTP)', 1065224408);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=467;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (467,13,'WebGUI','Haluatko varmasti poistaa tämän kentän ja kaiken tiedon joka on liitetty siihen?', 1065224234);
delete from international where languageId=13 and namespace='WebGUI/Profile' and internationalId=467;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (467,13,'WebGUI/Profile','Haluatko varmasti poistaa tämän kentän ja kaiken tiedon joka on liitetty siihen?', 1065224204);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=775;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (775,13,'WebGUI','Haluatko varmasti poistaa tämän kansion? Poistaminen on pysyvää.', 1065224131);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=774;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (774,13,'WebGUI','Haluatko varmasti poistaa tämän kokoelmasta? Poistamisen jälkeen sitä ei voi palauttaa.', 1065224125);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=60;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (60,13,'WebGUI','Haluatko varmasti poistaa käyttäjätunnuksesi? Jos jatkat, käyttäjätunnuksesi poistetaan pysyvästi.', 1065224118);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=588;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (588,13,'WebGUI','Haluatko varmasti lähettää käännöksesi Plain Black:ille heidän viralliseen WebGUI jakeluun. Painamalla "Kyllä" annat samalla Plain Black:ille täydet oikeudet käyttää käännöstäsi virallisissa WebGUI versioissa.', 1065224110);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=587;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (587,13,'WebGUI','Haluatko varmasti poistaa tämän kielen ja kaikki sen opasteet ja käännökset?', 1065224092);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=43;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (43,13,'WebGUI','Haluatko varmasti poistaa tämän sisällön?', 1065224075);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=401;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (401,13,'WebGUI','Haluatko varmasti poistaa tämän ja kaikki sen alla olevat viestit?', 1065224068);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=167;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (167,13,'WebGUI','Haluatko varmasti poistaa tämän käyttäjän? Kaikki käyttäjän tiedot poistetaan jos jatkat.', 1065224062);
delete from international where languageId=13 and namespace='Survey' and internationalId=74;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (74,13,'Survey','Haluatko varmasti poistaa kaikki vastaukset?', 1065224048);
delete from international where languageId=13 and namespace='Survey' and internationalId=72;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (72,13,'Survey','Haluatko varmasti poistaa tämän käyttäjän vastaukset?', 1065224041);
delete from international where languageId=13 and namespace='Survey' and internationalId=45;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (45,13,'Survey','Haluatko varmasti poistaa tämän kysymyksen ja sen vastaukset?', 1065224034);
delete from international where languageId=13 and namespace='Product' and internationalId=5;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (5,13,'Product','Haluatko varmasti poistaa tämän määrittelyn?', 1065224025);
delete from international where languageId=13 and namespace='Product' and internationalId=3;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (3,13,'Product','Haluatko varmasti poistaa tämän piirteen?', 1065224016);
delete from international where languageId=13 and namespace='Product' and internationalId=2;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (2,13,'Product','Haluatko varmasti poistaa riippuvuudet tähän tarvikkeeseen?', 1065224010);
delete from international where languageId=13 and namespace='FileManager' and internationalId=12;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (12,13,'FileManager','Haluatko varmasti poistaa tämän tiedoston?', 1065223999);
delete from international where languageId=13 and namespace='DataForm' and internationalId=19;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (19,13,'DataForm','Haluatko varmasti poistaa tämän kentän?', 1065223976);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=101;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (101,13,'WebGUI','Haluatko varmasti poistaa tämän sivun ja kaiken siihen liittyvän?', 1065223948);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=352;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (352,13,'WebGUI','', 1065223834);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=347;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (347,13,'WebGUI','', 1065223826);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1,13,'WebGUI','Lisää sisältöä...', 1065223636);
delete from international where languageId=13 and namespace='USS' and internationalId=31;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (31,13,'USS','Sisältö', 1065223569);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=85;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (85,13,'WebGUI','Kuvaus', 1065223562);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=748;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (748,13,'WebGUI','Käyttäjiä', 1065223525);
delete from international where languageId=13 and namespace='WebGUI' and internationalId=1024;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (1024,13,'WebGUI','Suodata', 1065187099);
delete from international where languageId=13 and namespace='DataForm' and internationalId=87;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (87,13,'DataForm','Näytä mallipohja', 1065187049);
delete from international where languageId=13 and namespace='DataForm' and internationalId=82;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (82,13,'DataForm','Tietolomakkeen mallipohja', 1065187000);
delete from international where languageId=13 and namespace='DataForm' and internationalId=77;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (77,13,'DataForm','Kentän otsikko', 1065186948);
delete from international where languageId=13 and namespace='Auth/LDAP' and internationalId=9;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (9,13,'Auth/LDAP','Käyttäjä RDN', 1065186827);
delete from international where languageId=13 and namespace='DataForm' and internationalId=74;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (74,13,'DataForm','Lähetä tiedot sähköpostilla?', 1063632515);
delete from international where internationalId=72 and namespace='SQLReport';
insert into international values (72,'SQLReport',1,'SQL Report Template',1082371148,'');
delete from help where helpId=4 and namespace='WebGUI';

View file

@ -1,168 +0,0 @@
#!/usr/bin/perl
use lib "../../lib";
use Getopt::Long;
use Parse::PlainConfig;
use strict;
use WebGUI::Session;
use WebGUI::SQL;
my $configFile;
my $quiet;
GetOptions(
'configFile=s'=>\$configFile,
'quiet'=>\$quiet
);
WebGUI::Session::open("../..",$configFile);
#--------------------------------------------
print "\tUpdating config file.\n" unless ($quiet);
my $pathToConfig = '../../etc/'.$configFile;
my $conf = Parse::PlainConfig->new('DELIM' => '=', 'FILE' => $pathToConfig);
$conf->set("templateCacheType"=>"file");
my $macros = $conf->get("macros");
delete $macros->{"\\"};
$macros->{"\\\\"} = "Backslash_pageUrl";
$macros->{"Navigation"} = "Navigation";
my %newMacros;
foreach my $macro (keys %{$macros}) {
unless (
$macros->{$macro} eq "ThumbnailLinker"
) {
$newMacros{$macro} = $macros->{$macro};
}
}
$conf->set("macros"=>\%newMacros);
$conf->write;
#--------------------------------------------
print "\tRemoving unneeded files and directories.\n" unless ($quiet);
unlink("../../lib/WebGUI/Operation/International.pm");
unlink("../../lib/WebGUI/Wobject/Item.pm");
unlink("../../lib/WebGUI/Wobject/LinkList.pm");
unlink("../../lib/WebGUI/Wobject/FAQ.pm");
unlink("../../lib/WebGUI/Wobject/ExtraColumn.pm");
unlink("../../lib/WebGUI/Macro/ThumbnailLinker.pm");
unlink("../../lib/WebGUI/Macro/m_currentMenuHorizontal.pm");
unlink("../../lib/WebGUI/Macro/M_currentMenuVertical.pm");
unlink("../../lib/WebGUI/Macro/s_specificMenuHorizontal.pm");
unlink("../../lib/WebGUI/Macro/S_specificMenuVertical.pm");
unlink("../../lib/WebGUI/Macro/t_topMenuHorizontal.pm");
unlink("../../lib/WebGUI/Macro/T_topMenuVertical.pm");
unlink("../../lib/WebGUI/Macro/p_previousMenuHorizontal.pm");
unlink("../../lib/WebGUI/Macro/P_previousMenuVertical.pm");
unlink("../../lib/WebGUI/Macro/C_crumbTrail.pm");
unlink("../../lib/WebGUI/Macro/FlexMenu.pm");
unlink("../../lib/WebGUI/Macro/PreviousDropMenu.pm");
unlink("../../lib/WebGUI/Macro/Synopsis.pm");
unlink("../../lib/WebGUI/Macro/rootmenuHorizontal.pm");
unlink("../../lib/WebGUI/Macro/RootTab.pm");
unlink("../../lib/WebGUI/Macro/SpecificDropMenu.pm");
unlink("../../lib/WebGUI/Macro/TopDropMenu.pm");
unlink("../../lib/WebGUI/Macro/Question_search.pm");
#--------------------------------------------
print "\tResetting user languages.\n" unless ($quiet);
my ($defaultLangId) = WebGUI::SQL->quickArray("select dataDefault from userProfileField where fieldName='language'");
$defaultLangId =~ s/\[//;
$defaultLangId =~ s/\]//;
$defaultLangId = 1 if ($defaultLangId > 21);
my $langs = {
1 => "English",
2 => "German",
3 => "Dutch",
4 => "Spanish",
5 => "Portuguese",
6 => "Swedish",
7 => "Chinese-Simplified",
8 => "Italian",
9 => "Chinese-Traditional",
10 => "Danish",
11 => "Arabic",
12 => "Norwegian",
13 => "Finnish",
14 => "Japanese",
15 => "Croatian",
16 => "Polish",
21 => "Russian"
};
WebGUI::SQL->write("update userProfileField set dataDefault=".quote("['".$langs->{$defaultLangId}."']")." where fieldName='language'");
WebGUI::SQL->write("update userProfileData set fieldData='".$langs->{$defaultLangId}."' where fieldName='language' and fieldData<>1");
WebGUI::SQL->write("update userProfileData set fieldData='English' where fieldName='language' and fieldData=1");
WebGUI::SQL->write("alter table page change languageId languageId varchar(50) not null default 'English'");
foreach my $key (keys %{$langs}) {
my $langId = $key;
$langId = 1 if ($key > 21);
WebGUI::SQL->write("update page set languageId=".quote($langs->{$langId})." where languageId=".$key);
}
#--------------------------------------------
print "\tConverting page tree to the Nested Set model.\n";
sub walk_down {
my($pageId, $o) = @_[0,1];
my $callback = $o->{callback};
my $callbackback = $o->{callbackback};
my $callback_status = 1;
$callback_status = &{ $callback }( $pageId, $o ) if $callback;
if($callback_status) {
# Keep recursing unless callback returned false... and if there's
# anything to recurse into, of course.
my @daughters = WebGUI::SQL->buildArray("select pageId from page where parentId=$pageId and pageId != 0 order by sequenceNumber");
if(@daughters) {
$o->{'_depth'} += 1;
foreach my $one (@daughters) {
walk_down($one, $o);
}
$o->{'_depth'} -= 1;
}
if($callbackback){
scalar( &{ $callbackback }( $pageId, $o ) );
}
}
return;
}
my $counter = 0;
WebGUI::SQL->write("alter table page add column (lft int(11))");
WebGUI::SQL->write("alter table page add column (rgt int(11))");
WebGUI::SQL->write("alter table page add column (id int(11))");
WebGUI::SQL->write("alter table page add column (depth int(3))");
WebGUI::SQL->write("insert into page (pageId, parentId) values (0, -1)");
WebGUI::SQL->write("update page set id=pageId");
walk_down(0, {
callback => sub {
WebGUI::SQL->write("update page set depth=".($_[1]->{_depth}-1).", lft=$counter where pageId=".$_[0]);
$counter++;
return 1;
},
callbackback => sub {
WebGUI::SQL->write("update page set rgt=$counter where pageId=".$_[0]);
$counter++;
return 1;
}
});
print "\tFixing pagination template variables.\n" unless ($quiet);
my $sth = WebGUI::SQL->read("select * from template where namespace in ('Article')");
while (my $data = $sth->hashRef) {
$data->{template} =~ s/pagination\.ispagination\.firstPage/pagination.isFirstPage/ig;
$data->{template} =~ s/pagination\.ispagination\.lastPage/pagination.isLastPage/ig;
WebGUI::SQL->write("update template set template=".quote($data->{template})." where namespace=".quote($data->{namespace})." and templateId=".quote($data->{templateId}));
}
$sth->finish;
WebGUI::Session::close();

View file

@ -1,20 +0,0 @@
insert into webguiVersion values ('6.1.0','upgrade',unix_timestamp());
drop table language;
drop table international;
drop table help;
alter table WSClient add sharedCache tinyint unsigned not null default '0';
alter table WSClient add cacheTTL smallint(5) unsigned NOT NULL default '60';
INSERT INTO template VALUES (1,'Default Account Macro','<a class="myAccountLink" href="<tmpl_var account.url>"><tmpl_var account.text></a>','Macro/a_account',1,1);
INSERT INTO template VALUES (1,'Default Editable Toggle Macro','<a href="<tmpl_var toggle.url>"><tmpl_var toggle.text></a>','Macro/EditableToggle',1,1);
INSERT INTO template VALUES (1,'Default Admin Toggle Macro','<a href="<tmpl_var toggle.url>"><tmpl_var toggle.text></a>','Macro/AdminToggle',1,1);
INSERT INTO template VALUES (1,'Default File Macro','<a href="<tmpl_var file.url>"><img src="<tmpl_var file.icon>" align="middle" border="0" /><tmpl_var file.name></a>','Macro/File',1,1);
INSERT INTO template VALUES (2,'File no icon','<a href="<tmpl_var file.url>"><tmpl_var file.name></a>','Macro/File',1,1);
INSERT INTO template VALUES (3,'File with size','<a href="<tmpl_var file.url>"><img src="<tmpl_var file.icon>" align="middle" border="0" /><tmpl_var file.name></a>(<tmpl_var file.size>)','Macro/File',1,1);
INSERT INTO template VALUES (1,'Default Group Add Macro','<a href="<tmpl_var group.url>"><tmpl_var group.text></a>','Macro/GroupAdd',1,1);
INSERT INTO template VALUES (1,'Default Group Delete Macro','<a href="<tmpl_var group.url>"><tmpl_var group.text></a>','Macro/GroupDelete',1,1);
INSERT INTO template VALUES (1,'Default Homelink','<a class="homeLink" href="<tmpl_var homeLink.url>"><tmpl_var homeLink.text></a>','Macro/H_homeLink',1,1);
INSERT INTO template VALUES (1,'Default Make Printable','<a class="makePrintableLink" href="<tmpl_var printable.url>"><tmpl_var printable.text></a>','Macro/r_printable',1,1);
INSERT INTO template VALUES (1,'Default LoginToggle','<a class="loginToggleLink" href="<tmpl_var toggle.url>"><tmpl_var toggle.text></a>','Macro/LoginToggle',1,1);
INSERT INTO template VALUES (1, 'Attachment Box', '<p>\r\n <table cellpadding=3 cellspacing=0 border=1>\r\n <tr> \r\n <td class="tableHeader">\r\n<a href="<tmpl_var attachment.url>"><img src="<tmpl_var session.config.extrasURL>/attachment.gif" border="0" alt="<tmpl_var attachment.name>"></a></td><td>\r\n<a href="<tmpl_var attachment.url>"><img src="<tmpl_var attachment.icon>" align="middle" width="16" height="16" border="0" alt="<tmpl_var attachment.name>"><tmpl_var attachment.name></a>\r\n </td>\r\n </tr>\r\n </table>\r\n</p>\r\n', 'AttachmentBox', 1, 1);

View file

@ -1,5 +0,0 @@
insert into webguiVersion values ('6.1.1','upgrade',unix_timestamp());
delete from groups where groupId=10;
delete from groupings where groupId=10;
delete from groupGroupings where groupId=10 or inGroup=10;

View file

@ -1,87 +0,0 @@
#!/usr/bin/perl
use lib "../../lib";
use Getopt::Long;
use strict;
use WebGUI::Id;
use WebGUI::Page;
use WebGUI::Session;
use WebGUI::SQL;
use WebGUI::URL;
my $configFile;
my $quiet;
GetOptions(
'configFile=s'=>\$configFile,
'quiet'=>\$quiet
);
WebGUI::Session::open("../..",$configFile);
#--------------------------------------------
print "\tMigrating USS submission URLs\n" unless ($quiet);
WebGUI::SQL->write("alter table USS_submission add column pageId char(22) not null");
my $a = WebGUI::SQL->read("select USS.USS_id,wobject.pageId,wobject.wobjectId,wobject.title from USS left join wobject on USS.wobjectId=wobject.wobjectId");
while (my $uss = $a->hashRef) {
my $b = WebGUI::SQL->read("select USS_submissionId,title from USS_submission where USS_id=".$uss->{USS_id});
while (my $submission = $b->hashRef) {
my $parentPage = WebGUI::Page->new($uss->{pageId});
my %pageVars = %{$parentPage->get};
delete $pageVars{pageId};
delete $pageVars{nestedSetLeft};
delete $pageVars{nestedSetRight};
delete $pageVars{depth};
delete $pageVars{parentId};
delete $pageVars{sequenceNumber};
$pageVars{hideFromNavigation} = 1;
$pageVars{title} = $pageVars{menuTitle} = $submission->{title};
$pageVars{subroutine} = "viewSubmissionAsPage";
$pageVars{subroutinePackage} = "WebGUI::Wobject::USS";
$pageVars{subroutineParams} = "{wobjectId=>'".$uss->{wobjectId}."',submissionId=>'".$submission->{USS_submissionId}."'}";
$pageVars{urlizedTitle} .= "/".$uss->{title}."/".$submission->{title};
$pageVars{isSystem} = 1;
my $newPage = $parentPage->add;
$pageVars{urlizedTitle} = WebGUI::Page::makeUnique(WebGUI::URL::urlize($pageVars{urlizedTitle},$newPage->get("pageId")));
$newPage->set(\%pageVars);
WebGUI::SQL->write("update USS_submission set pageId=".quote($newPage->get("pageId"))." where USS_submissionId=".quote($submission->{USS_submissionId}));
}
$b->finish;
}
$a->finish;
#--------------------------------------------
print "\tUpdating config file.\n" unless ($quiet);
my $pathToConfig = '../../etc/'.$configFile;
my $conf = Parse::PlainConfig->new('DELIM' => '=', 'FILE' => $pathToConfig);
my $macros = $conf->get("macros");
delete $macros->{"\\"};
$macros->{"\\\\"} = "Backslash_pageUrl";
$macros->{"JavaScript"} = "JavaScript";
$macros->{"StyleSheet"} = "StyleSheet";
$macros->{"RawHeadTags"} = "RawHeadTags";
$conf->set("macros"=>$macros);
$conf->write;
#--------------------------------------------
print "\tMaking page templates faster.\n" unless ($quiet);
use WebGUI::Template;
my $templates = WebGUI::Template::getList("page");
foreach my $templateId (keys %{$templates}) {
my $template = WebGUI::Template::get($templateId,"page");
$template->{template} =~ s/\<script language=JavaScript1\.2 src=\"\^Extras\;draggable\.js\"\>\<\/script\>/\^JavaScript\(\"\<tmpl_var session\.config\.extrasURL\>\/draggable.js\"\)\;/;
WebGUI::Template::set({
templateId=>$templateId,
namespace=>"page",
template=>$template->{template}
});
}
WebGUI::Session::close();

File diff suppressed because one or more lines are too long

View file

@ -1558,6 +1558,7 @@ unlink("../../lib/WebGUI/Macro/Navigation.pm");
unlink("../../lib/WebGUI/Macro/File.pm");
unlink("../../lib/WebGUI/Macro/I_imageWithTags.pm");
unlink("../../lib/WebGUI/Macro/i_imageNoTags.pm");
unlink("../../lib/WebGUI/Macro/SI_scaledImage.pm");
unlink("../../lib/WebGUI/Macro/Snippet.pm");
unlink("../../lib/WebGUI/Macro/Backslash_pageUrl.pm");
unlink("../../lib/WebGUI/Macro/RandomSnippet.pm");

View file

@ -0,0 +1,40 @@
#!/usr/bin/perl
use lib "../../lib";
use FileHandle;
use File::Path;
use File::Copy;
use Getopt::Long;
use strict;
use WebGUI::Group;
use WebGUI::HTML;
use WebGUI::Id;
use WebGUI::Session;
use WebGUI::SQL;
use WebGUI::URL;
my $configFile;
my $quiet;
GetOptions(
'configFile=s'=>\$configFile,
'quiet'=>\$quiet
);
WebGUI::Session::open("../..",$configFile);
print "\tReplacing session.page template variables with the ^Page macro.\n" unless ($quiet);
my $sth = WebGUI::SQL->read("select assetId,template from template");
while (my ($id, $template) = $sth->array) {
$template =~ s/\<tmpl_var\s+session\.page\.(.*?)\>/^Page($1);/xsig;
WebGUI::SQL->setRow("template","assetId",{
assetId=>$id,
template=>$template
});
}
$sth->finish;
WebGUI::Session::close();

View file

@ -45,52 +45,51 @@ passiveProfileInterval = 86400 # in seconds
emailRecoveryLoggingEnabled = 1
passwordChangeLoggingEnabled = 1
# Commerce part
# The PayFlowPro plugin is commented out because it depends on proprietary code from VeriSign
# The ITransact plugin depends on XML::Simple. LWP::UserAgent and HTTP::Cookies.
# paymentPlugins = PayFlowPro, ITransact
paymentPlugins = ITransact
authMethods = LDAP, WebGUI
macros = a => a_account, \
AdminBar => AdminBar, \
AdminText => AdminText, \
AdminToggle => AdminToggle, \
AOIHits => AOIHits, \
AOIRank => AOIRank, \
@ => At_username, \
\\ => Backslash_pageUrl, \
c => c_companyName, \
CanEditText => CanEditText, \
D => D_date, \
e => e_companyEmail, \
EditableToggle => EditableToggle, \
Extras => Extras, \
File => File, \
GroupAdd => GroupAdd, \
GroupDelete => GroupDelete, \
GroupText => GroupText, \
# => Hash_userId, \
H => H_homeLink, \
i => i_imageNoTags, \
I => I_imageWithTags, \
JavaScript => JavaScript, \
L => L_loginBox, \
LastModified => LastModified, \
LoginToggle => LoginToggle, \
Navigation => Navigation, \
PageTitle => PageTitle, \
RandomImage => RandomImage, \
RandomSnippet => RandomSnippet, \
RawHeadTags => RawHeadTags, \
RootTitle => RootTitle, \
r => r_printable, \
/ => Slash_gatewayUrl, \
Snippet => Snippet, \
Spacer => Spacer, \
SI => SI_scaledImage, \
StyleSheet => StyleSheet, \
ThumbnailLinker => ThumbnailLinker, \
Thumbnail => Thumbnail, \
u => u_companyUrl
macros=# => Hash_userId, \
/ => Slash_gatewayUrl, \
@ => At_username, \
AOIHits => AOIHits, \
AOIRank => AOIRank, \
AdminBar => AdminBar, \
AdminText => AdminText, \
AdminToggle => AdminToggle, \
AssetProxy => AssetProxy, \
CanEditText => CanEditText, \
D => D_date, \
EditableToggle => EditableToggle, \
Extras => Extras, \
FileUrl => FileUrl, \
GroupAdd => GroupAdd, \
GroupDelete => GroupDelete, \
GroupText => GroupText, \
H => H_homeLink, \
I => I_imageWithTags, \
JavaScript => JavaScript, \
L => L_loginBox, \
LastModified => LastModified, \
LoginToggle => LoginToggle, \
Page => Page, \
PageTitle => PageTitle, \
PageUrl => PageUrl, \
RandomAssetProxy => RandomAssetProxy, \
RawHeadTags => RawHeadTags, \
RootTitle => RootTitle, \
Spacer => Spacer, \
StyleSheet => StyleSheet, \
SubscriptionItem => SubscriptionItem, \
SubscriptionItemPurchaseUrl => SubscriptionItemPurchaseUrl, \
Thumbnail => Thumbnail, \
ThumbnailLinker => ThumbnailLinker, \
User => User, \
a => a_account, \
c => c_companyName, \
e => e_companyEmail, \
i => i_imageNoTags, \
r => r_printable, \
u => u_companyUrl

View file

@ -1229,7 +1229,7 @@ sub getLineage {
push(@mods,"( asset.lineage like ".quote($line.'%')." and length(asset.lineage)=".(($i+1)*6).")");
last if ($self->getLineageLength == $i);
}
push(@whereModifiers, "(".join(" or ",@mods).")");
push(@whereModifiers, "(".join(" or ",@mods).")") if (scalar(@mods));
}
# formulate a where clause
my $where = "state='published'";
@ -1619,7 +1619,8 @@ sub new {
my $class = shift;
my $assetId = shift;
my $overrideProperties = shift;
my $properties = WebGUI::Cache->new("asset_".$assetId)->get;
my $properties;
$properties = WebGUI::Cache->new("asset_".$assetId)->get unless($session{var}{adminOn});
if ($assetId eq "new") {
$properties = $overrideProperties;
$properties->{assetId} = "new";
@ -2139,7 +2140,7 @@ Hash reference of properties and values to set.
sub update {
my $self = shift;
my $properties = shift;
WebGUI::Cache->new($self->getId)->delete;
WebGUI::Cache->new("asset_".$self->getId)->delete;
WebGUI::SQL->beginTransaction;
foreach my $definition (@{$self->definition}) {
my @setPairs;

View file

@ -309,18 +309,21 @@ STOP
#-----------------------------------------
# checkVersion($versionNumber)
#-----------------------------------------
# Version number must be 5.5.0 or greater
# Version number must be 6.2.0 or greater
# in order to be upgraded by this utility.
#-----------------------------------------
sub checkVersion {
$_[0] =~ /(\d+)\.(\d+)\.(\d+)/;
if ($1 > 5) {
my $goal = 6;
my $feature = 2;
my $fix = 0;
if ($1 > $goal) {
return 1;
} elsif ($1 == 5) {
if ($2 > 5) {
} elsif ($1 == $goal) {
if ($2 > $feature) {
return 1;
} elsif ($2 == 5) {
if ($3 >= 0) {
} elsif ($2 == $feature) {
if ($3 >= $fix) {
return 1;
} else {
return 0;