aboutsummaryrefslogtreecommitdiff
path: root/www/campsite/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-08-28 12:32:47 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-08-28 12:32:47 +0000
commit9a47a517aba72a1c8514f4c801bc053bc585b096 (patch)
tree77bfd7eeaacc84075b6ad09903d0ec432a687a7e /www/campsite/files
parentab3b9c748b3172c277cd59e00d0ac16932526634 (diff)
downloadports-9a47a517aba72a1c8514f4c801bc053bc585b096.tar.gz
ports-9a47a517aba72a1c8514f4c801bc053bc585b096.zip
Notes
Diffstat (limited to 'www/campsite/files')
-rw-r--r--www/campsite/files/patch-actions.cpp69
-rw-r--r--www/campsite/files/patch-lex.cpp54
-rw-r--r--www/campsite/files/patch-transfer_images.php11
3 files changed, 11 insertions, 123 deletions
diff --git a/www/campsite/files/patch-actions.cpp b/www/campsite/files/patch-actions.cpp
deleted file mode 100644
index c8d9a7b797b3..000000000000
--- a/www/campsite/files/patch-actions.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
---- implementation/parser/parser/actions.cpp (revision 5607)
-+++ implementation/parser/parser/actions.cpp (revision 5648)
-@@ -1919,5 +1919,5 @@
- if (modifier == CMS_ST_ARTICLECOMMENT)
- {
-- if (!c.ArticleCommentEnabled())
-+ if (!c.ArticleCommentEnabled() || c.ArticleComment() == NULL)
- {
- return ERR_NODATA;
-@@ -2444,7 +2444,7 @@
- run = c.ArticleCommentEnabled() ? 0 : 1;
- }
-- else if (!c.ArticleCommentEnabled())
-- {
-- return ERR_NODATA;
-+ else if (!c.ArticleCommentEnabled() || c.ArticleComment() == NULL)
-+ {
-+ return ERR_NODATA;
- }
- if (case_comp(param.attribute(), "Defined") == 0)
-@@ -2872,7 +2872,11 @@
- }
- else
-+ {
- return -1;
-+ }
- if (modifier != CMS_ST_LANGUAGE && modifier != CMS_ST_PUBLICATION && param.attrType() == "")
-+ {
- SetNrField("IdPublication", c.Publication(), buf, w);
-+ }
- if (need_lang)
- {
-@@ -2883,7 +2887,11 @@
- string coQuery = string("select ") + field + " from " + tables;
- if (w.length())
-+ {
- coQuery += string(" where ") + w;
-+ }
- if (need_lang)
-+ {
- coQuery += " order by IdLanguage desc";
-+ }
- DEBUGAct("takeAction()", coQuery.c_str(), fs);
- SQLQuery(&m_coSql, coQuery.c_str());
-@@ -2892,5 +2900,7 @@
- FetchRow(*res, row);
- if (row[0] == NULL)
-+ {
- return ERR_NODATA;
-+ }
- if (modifier == CMS_ST_ARTICLE && param.attrType() != "" && !m_bStrictType)
- {
-@@ -2928,10 +2938,16 @@
- }
- else
-+ {
- run_first = row[0] == value;
-+ }
- run_first = m_bNegated ? !run_first : run_first;
- if (run_first)
-+ {
- runActions(block, c, fs);
-+ }
- else
-+ {
- runActions(sec_block, c, fs);
-+ }
- return RES_OK;
- TK_CATCH_ERR
diff --git a/www/campsite/files/patch-lex.cpp b/www/campsite/files/patch-lex.cpp
deleted file mode 100644
index 7f8e1d599dc3..000000000000
--- a/www/campsite/files/patch-lex.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
---- implementation/parser/parser/lex.cpp (revision 5608)
-+++ implementation/parser/parser/lex.cpp (revision 5648)
-@@ -238,5 +238,5 @@
- pcoCtx->insertAttr(new CIntegerAttr("number", "Number"));
- pcoCtx->insertAttr(new CStringAttr("name", "Name"));
-- pcoCtx->insertAttr(new CDateAttr("publish_date", "PublicationDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("publish_date", "PublicationDate"));
- pcoCtx->insertAttr(new CAttribute("iscurrent"));
- pcoCtx->insertAttr(new CAttribute("defined"));
-@@ -247,5 +247,5 @@
- pcoCtx->insertAttr(new CStringAttr("name", "Name"));
- pcoCtx->insertAttr(new CIntegerAttr("number", "Number"));
-- pcoCtx->insertAttr(new CDateAttr("publish_date", "PublicationDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("publish_date", "PublicationDate"));
- pcoCtx->insertAttr(new CIntegerAttr("publish_year", "YEAR(PublicationDate)"));
- pcoCtx->insertAttr(new CIntegerAttr("publish_month", "MONTH(PublicationDate)"));
-@@ -264,5 +264,5 @@
- pcoCtx->insertAttr(new CStringAttr("name", "Name"));
- pcoCtx->insertAttr(new CIntegerAttr("number", "Number"));
-- pcoCtx->insertAttr(new CDateAttr("date", "PublicationDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("date", "PublicationDate"));
- pcoCtx->insertAttr(new CIntegerAttr("year", "YEAR(PublicationDate)"));
- pcoCtx->insertAttr(new CIntegerAttr("mon_nr", "MONTH(PublicationDate)"));
-@@ -322,5 +322,5 @@
- pcoCtx = new CStatementContext(CMS_CT_IF);
- pcoCtx->insertAttr(new CStringAttr("name", "Name"));
-- pcoCtx->insertAttr(new CDateAttr("upload_date", "UploadDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("upload_date", "UploadDate"));
- pcoCtx->insertAttr(new CDateTimeAttr("publish_date", "PublishDate"));
- pcoCtx->insertAttr(new CAttribute("has_keyword"));
-@@ -338,5 +338,5 @@
- pcoCtx->insertAttr(new CStringAttr("name", "Name"));
- pcoCtx->insertAttr(new CIntegerAttr("number", "Number"));
-- pcoCtx->insertAttr(new CDateAttr("upload_date", "UploadDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("upload_date", "UploadDate"));
- pcoCtx->insertAttr(new CDateTimeAttr("publish_date", "PublishDate"));
- pcoCtx->insertAttr(new CStringAttr("keyword", "Keywords"));
-@@ -363,6 +363,6 @@
- pcoCtx->insertAttr(new CStringAttr("mon_name", "UploadDate"));
- pcoCtx->insertAttr(new CStringAttr("wday_name", "UploadDate"));
-- pcoCtx->insertAttr(new CDateAttr("upload_date", "UploadDate"));
-- pcoCtx->insertAttr(new CDateAttr("uploaddate", "UploadDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("upload_date", "UploadDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("uploaddate", "UploadDate"));
- pcoCtx->insertAttr(new CDateTimeAttr("publishdate", "PublishDate"));
- pcoCtx->insertAttr(new CStringAttr("template"));
-@@ -918,5 +918,5 @@
- pcoCtx->insertAttr(new CStringAttr("ReaderEMail"));
- pcoCtx->insertAttr(new CStringAttr("ReaderEMailObfuscated"));
-- pcoCtx->insertAttr(new CDateAttr("SubmitDate"));
-+ pcoCtx->insertAttr(new CDateTimeAttr("SubmitDate"));
- pcoCtx->insertAttr(new CStringAttr("Subject"));
- pcoCtx->insertAttr(new CStringAttr("Content"));
-
diff --git a/www/campsite/files/patch-transfer_images.php b/www/campsite/files/patch-transfer_images.php
new file mode 100644
index 000000000000..824a7648e906
--- /dev/null
+++ b/www/campsite/files/patch-transfer_images.php
@@ -0,0 +1,11 @@
+--- implementation/database/upgrade/2.1.x/transfer_images.php.orig Mon Aug 21 14:15:42 2006
++++ implementation/database/upgrade/2.1.x/transfer_images.php Mon Aug 21 14:17:36 2006
+@@ -120,7 +120,7 @@
+ // $transferQuery = "INSERT INTO ImagesDup (Description, Photographer, Place, Date, ContentType, Location, URL, NrArticle, Number, Image) SELECT Description, Photographer, Place, Date, ContentType, 'local', '', NrArticle, Number, Image FROM Images";
+ // mysql_query($transferQuery);
+
+- $thumbnailCommand = 'convert -sample 64x64';
++ $thumbnailCommand = 'gm convert -sample 64x64';
+ $queryStr = "SELECT Id, Image FROM ImagesDup";
+ $query = mysql_query($queryStr);
+ //mkdir($p_destDir, 0755);