|
|
@ -38,7 +38,8 @@
|
|
|
|
// the intact and unchanged copyright notice.
|
|
|
|
// the intact and unchanged copyright notice.
|
|
|
|
// Contributions and changes to the program code must be marked as such.
|
|
|
|
// Contributions and changes to the program code must be marked as such.
|
|
|
|
|
|
|
|
|
|
|
|
// Contains contributions from Jan Sandbrink [JS]
|
|
|
|
// This file is contributed by Jan Sandbrink
|
|
|
|
|
|
|
|
// based on the Code of wikiBoard.java
|
|
|
|
|
|
|
|
|
|
|
|
package de.anomic.data;
|
|
|
|
package de.anomic.data;
|
|
|
|
|
|
|
|
|
|
|
@ -85,11 +86,11 @@ public class blogBoard {
|
|
|
|
return datbase.size();
|
|
|
|
return datbase.size();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int[] dbCacheNodeChunkSize() {
|
|
|
|
public long[] dbCacheNodeChunkSize() {
|
|
|
|
return datbase.cacheNodeChunkSize();
|
|
|
|
return datbase.cacheNodeChunkSize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int[] dbCacheNodeFillStatus() {
|
|
|
|
public long[] dbCacheNodeFillStatus() {
|
|
|
|
return datbase.cacheNodeFillStatus();
|
|
|
|
return datbase.cacheNodeFillStatus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -139,9 +140,9 @@ public class blogBoard {
|
|
|
|
if(date == null) date = new GregorianCalendar(GMTTimeZone).getTime();
|
|
|
|
if(date == null) date = new GregorianCalendar(GMTTimeZone).getTime();
|
|
|
|
record.put("date", dateString(date));
|
|
|
|
record.put("date", dateString(date));
|
|
|
|
if ((subject == null) || (subject.length() == 0)) subject = "";
|
|
|
|
if ((subject == null) || (subject.length() == 0)) subject = "";
|
|
|
|
record.put("subject", kelondroBase64Order.enhancedCoder.encode(subject.getBytes()));
|
|
|
|
record.put("subject", kelondroBase64Order.enhancedCoder.encode(subject.getBytes("UTF-8")));
|
|
|
|
if ((author == null) || (author.length() == 0)) author = "anonymous";
|
|
|
|
if ((author == null) || (author.length() == 0)) author = "anonymous";
|
|
|
|
record.put("author", kelondroBase64Order.enhancedCoder.encode(author.getBytes()));
|
|
|
|
record.put("author", kelondroBase64Order.enhancedCoder.encode(author.getBytes("UTF-8")));
|
|
|
|
if ((ip == null) || (ip.length() == 0)) ip = "";
|
|
|
|
if ((ip == null) || (ip.length() == 0)) ip = "";
|
|
|
|
record.put("ip", ip);
|
|
|
|
record.put("ip", ip);
|
|
|
|
if (page == null)
|
|
|
|
if (page == null)
|
|
|
|