Author: xor
Date: 2008-11-16 03:57:03 +0000 (Sun, 16 Nov 2008)
New Revision: 23630
Modified:
trunk/plugins/WoT/WoT.java
Log:
Prepare returning of the puzzle image.
Modified: trunk/plugins/WoT/WoT.java
===================================================================
--- trunk/plugins/WoT/WoT.java 2008-11-16 03:56:36 UTC (rev 23629)
+++ trunk/plugins/WoT/WoT.java 2008-11-16 03:57:03 UTC (rev 23630)
@@ -13,6 +13,7 @@
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
+import java.util.UUID;
import java.util.Map.Entry;
import javax.xml.parsers.ParserConfigurationException;
@@ -183,6 +184,10 @@
else if(request.isParameterSet("getTrusters")) page = new
TrustersPage(this, request);
else if(request.isParameterSet("getTrustees")) page = new
TrusteesPage(this, request);
else if(request.isParameterSet("puzzle")) {
+ IntroductionPuzzle p = IntroductionPuzzle.getByID(db,
UUID.fromString(request.getParam("id")));
+ if(p != null) {
+ byte[] data = p.getData();
+ }
/* FIXME: The current PluginManager implementation
allows plugins only to send HTML replies.
* Implement general replying with any mime type and
return the jpeg. */
return "";
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs