Permalink
Browse files

started work on configurator

  • Loading branch information...
leo
leo committed Jul 21, 2003
1 parent d076e43 commit b8d2aba1bc3c60215e69f6cc90a13abdd69ba919
View
@@ -42,7 +42,6 @@
</Arg>
</Call>
<!--
<Call name="addWebApplication">
<Arg>/dev</Arg>
<Arg>
@@ -53,7 +52,6 @@
</Set>
<Set name="extractWAR">true</Set>
</Call>
-->
<Set name="RequestLog">
<New class="org.mortbay.http.NCSARequestLog">
View
@@ -1,3 +1,26 @@
# This file is part of "SnipSnap Wiki/Weblog".
#
# Copyright (c) 2003 Fraunhofer Gesellschaft, FIRST
# All Rights Reserved.
#
# Please visit http://snipsnap.org/ for updates and contact.
#
# --LICENSE NOTICE--
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# --LICENSE NOTICE
# Snip menu
menu.edit=edit
menu.delete=zap!
@@ -18,3 +41,102 @@ menu.loggedIn=logged in as
menu.or=or
dialog.deleteSnipSure=This will irrecoverably delete this snip.\nAre you sure?
#
# SnipSnap administrative interface (configurator, admin)
#
admin.config.title = SnipSnap :: Configuration
admin.config.guide.title = Follow these {0} steps to configure SnipSnap:
admin.config.nav.next = Next >>
admin.config.nav.previous = << Previous
admin.config.nav.finish = Finish
admin.config.nav.expert = Expert Settings >>
# Administrator
admin.config.step.administrator = Administrator
admin.config.guide.administrator = Enter your admininistrator name and password to protect your SnipSnap.
admin.config.app.admin.password = Administrator Password
admin.config.app.admin.password.vrfy = Password Verification
admin.config.app.admin.login = Administrator Login
admin.config.app.admin.email = Administrator Email
# Application configuration
admin.config.step.application = Basic Settings
admin.config.guide.application = Give your Application a name and tagline. Upload a logo if you have one.
admin.config.app.name = Name of your web site
admin.config.app.tagline = Website tagline
admin.config.app.logo = A logo for your website
admin.config.app.host = Host name
admin.config.app.port = Port number
admin.config.app.path = Context path
admin.config.app.theme = SnipSnap Theme/Layout
admin.config.app.start.snip = Name of the Start Snip
# Localization
admin.config.step.localization = Localization
admin.config.guide.localization = Select your country and language. Optionally set the geographic coordinates of your server.
admin.config.app.timezone = local time zone
admin.config.app.encoding = Character encoding
admin.config.app.language = Language
admin.config.app.country = Country
admin.config.app.weblogDateFormat = Date Format of your weblog
admin.config.app.geoCoordinates = Geographic Coordinates<br/>"XX.XXXXX, XX.XXXXX" (longitude, latitude)
# Proxy Server Settings
admin.config.step.proxy = Proxy Settings
admin.config.app.real.autodetect = Automatically Detect Server address
admin.config.app.real.host = Proxy Server Host
admin.config.app.real.port = Proxy Server Port
admin.config.app.real.path = Proxy Server Context path
# Permissions
admin.config.step.permissions = Permissions
admin.config.guide.permissions = Permissions define how users can access your SnipSnap server. Select the groups and their respective rights.
admin.config.app.perm.notification = Allow Notification of SnipSnap Events (via Jabber)
admin.config.app.perm.weblogsPing = \
Allow WeblogsPing. Make your SnipSnap public by sending notifications of new \
weblog posts to weblogs.com and snipsnap.org
admin.config.app.perm.externalImages = Allow External Images
admin.config.app.perm.register = Allow self-registration of new Users
admin.config.app.perm.createSnip = Create missing Snips automatically
admin.config.app.perm.multiplePosts = Create a new Snip for every weblog Entry
# Email Configuration
admin.config.step.mail = Event Notification
admin.config.app.mail.host = EMail Server
admin.config.app.mail.domain = Email Domain (without @)
admin.config.app.mail.blog = Email-to-Weblog posting
admin.config.app.mail.blog.password = Password
admin.config.app.mail.pop3.host = POP3 Host
admin.config.app.mail.pop3.user = POP3 User
admin.config.app.mail.pop3.password = POP3 Password
admin.config.app.mail.pop3.interval = POP3 polling interval
# Database and Internals
admin.config.step.expert = Expert Settings
admin.config.app.jdbc.url = Database URL (JDBC)
admin.config.app.jdbc.driver = Database Driver
admin.config.app.cache = Caching Strategy
admin.config.app.logger = Server Logging
admin.config.app.index.path = Path to Lucene Search Engine index
admin.config.app.file.path = File store path
# timezones
GMT+00 = UTC +00:00 Britain, Ireland, Portugal, W. Africa
GMT+01 = UTC +01:00 Central Europe &amp; Central Africa
GMT+02 = UTC +02:00 Eastern Europe &amp; Eastern Africa
GMT+03 = UTC +03:00 Iraq, Russia
GMT+04 = UTC +04:00 Oman
GMT+05 = UTC +05:00 Western Asia, Pakistan
GMT+06 = UTC +06:00 Central Asia
GMT+07 = UTC +07:00 Cambodia, Laos, Thailand, Vietnam
GMT+08 = UTC +08:00 Western Australia, China
GMT+09 = UTC +09:00 Japan, Korea
GMT+10 = UTC +10:00 Eastern Australia
GMT+11 = UTC +11:00 Central Pacific
GMT+12 = UTC +12:00 New Zealand &amp; Fiji
GMT-11 = UTC -11:00 Samoa
GMT-10 = UTC -10:00 French Polynesia
GMT-09 = UTC -09:00 Pitcairn Islands
GMT-08 = UTC -08:00 U.S./Canada/Pacific, Mexico
GMT-07 = UTC -07:00 U.S./Canada/Mountain, Mexico
GMT-06 = UTC -06:00 U.S./Canada/Central, Mexico
GMT-05 = UTC -05:00 U.S./Canada/Eastern, Colombia, Peru
GMT-04 = UTC -04:00 Bolivia, West. Brazil, Chile, Atlantic
GMT-03 = UTC -03:00 Argentina, Eastern Brazil, Greenland
GMT-02 = UTC -02:00 Mid-Atlantic
GMT-01 = UTC -01:00 Eastern Atlantic
View
@@ -1,13 +1,20 @@
#! /bin/sh
base=`pwd`
app=$base/applications/$1
theme=$2
if [ "$1" = "" -o ! -d $app ]; then
name=$1
app=$base/applications/$name
if [ "$name" = "" -o ! -d $app ]; then
echo "Create links to jsp and theme into your application."
echo "usage: $0 AppName [theme]"
exit
fi
if [ "$2" = "-jsp" ]; then
jsp=true
theme=$3
else
theme=$2
fi
if [ -d $app ]; then
echo Linking code ...
ln -sf $base/cls/webapp/WEB-INF/*.tld $app/WEB-INF/
@@ -24,10 +31,12 @@ if [ -d $app ]; then
ln -sf $base/lib/activation.jar $app/WEB-INF/lib
ln -sf $base/lib/xmlrpc-1.1.jar $app/WEB-INF/lib
ln -sf $base/lib/j2h.jar $app/WEB-INF/lib
# echo Linking JSPs ...
# ln -sf $base/src/apps/default/*.jsp $app/
# ln -sf $base/src/apps/default/util/*.jsp $app/util/
# ln -sf $base/src/apps/default/admin/*.jsp $app/admin/
if [ "$jsp" = "true" ]; then
echo Linking JSPs ...
ln -sf $base/src/apps/default/*.jsp $app/
ln -sf $base/src/apps/default/util/*.jsp $app/util/
ln -sf $base/src/apps/default/admin/*.jsp $app/admin/
fi
if [ ! "$theme" = "" -a -d $base/src/theme/$theme ]; then
echo Linking theme $theme ...
ln -sf $base/src/theme/$theme/css/*.css $app/css/
View
1 run.sh
@@ -7,4 +7,3 @@ if [ "$1" = "-admin" ]; then
DBG="-Dlauncher.errlog=admin.log"
fi
java -Xmx128m -server $DBG -jar lib/snipsnap.jar $*
@@ -211,8 +211,8 @@
</servlet>
<servlet>
<servlet-name>org.snipsnap.net.admin.InstallServlet</servlet-name>
<servlet-class>org.snipsnap.net.admin.InstallServlet</servlet-class>
<servlet-name>org.snipsnap.net.admin.ConfigureServlet</servlet-name>
<servlet-class>org.snipsnap.net.admin.ConfigureServlet</servlet-class>
</servlet>
<!-- include precompiled servlet mappings -->
@@ -377,8 +377,8 @@
</servlet-mapping>
<servlet-mapping>
<servlet-name>org.snipsnap.net.admin.InstallServlet</servlet-name>
<url-pattern>/install/installer</url-pattern>
<servlet-name>org.snipsnap.net.admin.ConfigureServlet</servlet-name>
<url-pattern>/admin/configure</url-pattern>
</servlet-mapping>
<welcome-file-list>
@@ -0,0 +1,28 @@
<%--
** Guide Menu
** @author Matthias L. Jugel
** @version $Id$
--%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<table>
<tr><th colspan="2"><fmt:message key="admin.config.step.administrator"/></th></tr>
<tr>
<td><fmt:message key="admin.config.app.admin.login"/></td>
<td><input type="text" name="app.admin.login" value="<c:out value='${config.adminLogin}' default=""/>"></td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.admin.email"/></td>
<td><input type="text" name="app.admin.email" value="<c:out value='${config.adminEmail}' default=""/>"></td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.admin.password"/></td>
<td><input type="text" name="app.admin.password" value=""></td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.admin.password.vrfy"/></td>
<td><input type="text" name="app.admin.password.vrfy" value=""></td>
</tr>
</table>
@@ -0,0 +1,57 @@
<%@ page import="org.snipsnap.config.Configuration"%>
<%--
** Guide Menu
** @author Matthias L. Jugel
** @version $Id$
--%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<table>
<tr><th colspan="2"><fmt:message key="admin.config.step.application"/></th></tr>
<tr>
<td><fmt:message key="admin.config.app.name.txt"/></td>
<td>
<fmt:message key="admin.config.app.name"/><br/>
<input type="text" name="app.name" value="<c:out value='${config.name}' default="My SnipSnap"/>">
</td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.tagline.txt"/></td>
<td><input type="text" name="app.tagline" value="<c:out value='${config.tagline}' default="Where I keep my Knowledge"/>"></td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.logo.txt"/></td>
<td><input type="file" name="app.logo" value="<c:out value='${config.logo}'/>" accept="image/*"></td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.perm.register.txt"/></td>
<td>
<input type="checkbox" name="app.perm.register"
<c:if test="${config.permRegister == 'allow'}">checked="checked"</c:if>>
</td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.perm.notification"/></td>
<td>
<input type="checkbox" name="app.perm.notification"
<c:if test="${config.permNotification == 'allow'}">checked="checked"</c:if>>
</td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.perm.weblogsPing"/></td>
<td>
<input type="checkbox" name="app.perm.weblogsPing"
<c:if test="${config.permWeblogsPing == 'allow'}">checked="checked"</c:if>>
</td>
</tr>
<tr>
<td><fmt:message key="admin.config.app.perm.externalImages"/></td>
<td>
<input type="checkbox" name="app.perm.externalImages"
<c:if test="${config.permExternalImages == 'allow'}">checked="checked"</c:if>>
</td>
</tr>
</table>
@@ -0,0 +1,23 @@
<%@ page import="java.util.List"%> <%--
** Guide Menu
** @author Matthias L. Jugel
** @version $Id$
--%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<div class="guide-menu">
<div class="guide-title">
<fmt:message key="admin.config.guide.title">
<fmt:param><%= ((List)pageContext.findAttribute("steps")).size() %></fmt:param>
</fmt:message>
</div>
<ul>
<c:forEach items="${steps}" var="current" varStatus="status" >
<li <c:if test="${step == current}">class="current-step"</c:if>>
<fmt:message key="admin.config.step.${current}"/>
</li>
</c:forEach>
</ul>
</div>
@@ -0,0 +1,16 @@
<%--
** Guide Menu
** @author Matthias L. Jugel
** @version $Id$
--%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<div class="info">
<ul>
<li><c:out value="${config.name}"/></li>
<li><c:out value="${config.url}"/></li>
<li><c:out value="${config.adminLogin}"/></li>
</ul>
</div>
Oops, something went wrong.

0 comments on commit b8d2aba

Please sign in to comment.