<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="net.i2p.data.Base64, net.i2p.syndie.web.*, net.i2p.syndie.sml.*, net.i2p.syndie.data.*, net.i2p.syndie.*, org.mortbay.servlet.MultiPartRequest, java.util.*, java.io.*" %><% request.setCharacterEncoding("UTF-8"); %> SyndieMedia admin
<% if (!user.getAuthenticated()) { %>You must be logged in to configure your Syndie instance!<% } else { String action = request.getParameter("action"); if ( (action != null) && ("Save".equals(action)) ) { boolean configured = BlogManager.instance().isConfigured(); String adminPass = request.getParameter("adminpass"); String regPass = request.getParameter("regpass"); String remotePass = request.getParameter("remotepass"); String proxyHost = request.getParameter("proxyhost"); String proxyPort = request.getParameter("proxyport"); String selector = request.getParameter("selector"); if (configured) { if ( (adminPass != null) && (BlogManager.instance().authorizeAdmin(adminPass)) ) { int port = -1; try { port = Integer.parseInt(proxyPort); } catch (NumberFormatException nfe) { port = 4444; } BlogManager.instance().configure(regPass, remotePass, adminPass, selector, proxyHost, port, null); %>Configuration updated<% } else { %>Invalid admin password. If you lost it, please update your syndie.config.<% } } else { int port = -1; try { port = Integer.parseInt(proxyPort); } catch (NumberFormatException nfe) { port = 4444; } BlogManager.instance().configure(regPass, remotePass, adminPass, selector, proxyHost, port, null); %>Configuration saved<% } } else { %>
Registration password:
Users must specify this password on the registration form to proceed. If this is blank, anyone can register.
Remote password:
To access remote archives, users must first provide this password on their metadata page. Remote access is 'dangerous', as it allows the user to instruct this Syndie instance to establish HTTP connections with arbitrary locations. If this field is not specified, no one can use remote archives.
Default remote proxy host:
Default remote proxy port:
This is the default HTTP proxy shown on the remote archive page.
Default blog selector:
The selector lets you choose what blog (or blogs) are shown on the front page for new, unregistered users. Valid values include:
  • ALL: all blogs
  • blog://$blogHash: all posts in the blog identified by $blogHash
  • blogtag://$blogHash/$tagBase64: all posts in the blog identified by $blogHash tagged by the tag whose modified base64 encoding is $tagBase64
  • tag://$tagBase64: all posts in any blog tagged by the tag whose modified base64 encoding is $tagBase64

<% if (!BlogManager.instance().isConfigured()) { long passNum = new Random().nextLong(); %> Administrative password:
Since this Syndie instance is not already configured, you can specify a new administrative password which must be presented whenever you update this configuration. The default value filled in there is <%=passNum%>
<% } else { %> Administrative password:
<% } %> <% } } %>