new trunk taken from ezmlm-web 3.0

This commit is contained in:
lars 2005-12-25 16:12:31 +00:00
parent 93f607c24e
commit fd93f61edd
49 changed files with 3097 additions and 1974 deletions

View file

@ -95,3 +95,12 @@ Version 2.3 - 10/06/02005
* file upload typo fixed
* update of webusers file fixed
* moderator unsubscribe fixed
Version 3.0 - 12/25/02005
* complete interface rewritten for enhanced usability
* suppurt for msgsize, mimereject, trailer
* fixed insecure writing of webusers data
* define a default MAIL_DOMAIN
* changed directory for safely removed mailinglists
* requires the clearsilver template engine

49
INSTALL
View file

@ -8,7 +8,8 @@ OVERVIEW:
4 - compile cgi wrapper
5 - install cgi wrapper
6 - (optional) configure access control (http authentication)
7 - final test
7 - css stylesheet file
8 - final test
------------------------------------------------------------------------------
@ -18,9 +19,11 @@ OVERVIEW:
ezmlm-web! The file README contains the complete list of necessary
modules.
Additionally (since v3.0) you have to install clearsilver (a templating
engine). See INSTALL.clearsilver for details.
1. Get ezmlm-web and extract the archive:
tar xzf ezmlm-web-2.x.tar.gz
tar xzf ezmlm-web-3.x.tar.gz
2. Copy ezmlm-web.cgi to some publically readable directory. It does not
@ -53,12 +56,16 @@ OVERVIEW:
mkdir -p /usr/local/share/ezmlm-web
cp -r lang /usr/local/share/ezmlm-web
You can change this default location in the ezmlmwebrc file.
Do the same with the template directory (e.g copy it
to /usr/local/share/ezmlm-web/template). Then you also have to
set the appropriate location in the ezmlmwebrc file.
Finally, copy the ezmlmwebrc file to one of
the following places:
- /etc/ezmlm
- the home directory of the user that runs ezmlm-web.cgi
- the directory, that contains your ezmlm-web.cgi file
1) the home directory of the user that runs ezmlm-web.cgi
2) the directory, that contains your ezmlm-web.cgi file
3) /etc/ezmlm
(ezmlm-web will look for it in these places in the given order)
4. Edit the index.c file and change the path to the path of your copy
@ -81,15 +88,6 @@ OVERVIEW:
access controlled (here I mean both web and user access) by some method
(eg .htaccess, access.conf for Apache).
You should also copy the stylesheet file (css/default.css) to a location
of your choice. Now you may have to change the "HTML_CSS_FILE" setting
in your ezmlmwebrc file.
Optional: it would be nice if you could download the small picture
whose URL you can find in the ezmlmwebrc file as "HELP_ICON_URL".
Then you should change this URL.
This helps to reduce the load on our server.
6. Install some method of securing access to the page. The following
information is applicable to Apache web servers ... Detailed
@ -125,12 +123,27 @@ OVERVIEW:
Again, see the ApacheWeek article for details.
7. Test the installation through the web. You should be asked for a
username and password (supplied in 6.2) and then be presented with a
screen entitled "EZ Mailing List Manger". You can then try to create and
edit mailing lists ... Have Fun :)
7. You should copy the stylesheet file (css/default.css) to a location
of your choice. It has to be accessible by an URL - maybe a place like
"/var/www/ezmlm-web.css" could be appropriate.
Now you may have to change the "HTML_CSS_FILE" setting in your
ezmlmwebrc file. This value is a URL - not the local filename.
8. Test the installation with your favourite web browser. You should be
asked for a username and password (supplied in 6.2) and then be presented
with a screen entitled "EZ Mailing List Manger". You can then try to
create and edit mailing lists ... Have Fun :)
If you do not see a colorful screen, then you did not set the HTML_CSS_FILE
option correctly in ezmlmwebrc. Check it again.
If anything failes - take a look at the web server's error log
(e.g /var/log/apache/error.log).
If you have any problems, then you can:
- take a look at https://systemausfall.org/toolforge/ezmlm-web
- send me an email: ezmlm-web@sumpfralle.de
- subscribe to the mailinglist: ezmlm-web-subscribe@lists.systemausfall.org
- report a bug at https://systemausfall.org/trac/ezmlm-web

34
INSTALL.clearsilver Normal file
View file

@ -0,0 +1,34 @@
Short notes on how to install clearsilver for perl:
(you should read it, as step 4 is quite unusual)
1) download & untar
http://clearsilver.net
2) configure
The following configure options should be sufficient:
./configure --enable-perl \
--disable-python \
--disable-ruby \
--disable-java \
--disable-csharp \
--disable-apache \
--disable-gettext \
--disable-remote-debugger
3) make
4) the tricky part :)
As the installation directory of clearsilver-perl is configured incorrectly,
you should replace the existing SITEPREFIX line in perl/Makefile with the following:
SITEPREFIX = $(PREFIX)
(without the leading white space)
5) make install
6) done

116
README
View file

@ -1,5 +1,5 @@
=================
| ezmlm-web-2.3 |
| ezmlm-web-3.0 |
=================
If you only want to know how to install ezmlm-web, then you should
@ -21,10 +21,11 @@ VIII. Bugs && Bug Reports
I. Copyright Stuff - essentially the FreeBSD licence ...
==================
ezmlm-web - version 2.3 - 10/06/02005
ezmlm-web - version 3.0 - 12/22/02005
Copyright (C) 1998, Guy Antony Halse, All Rights Reserved.
Please send bug reports and comments to guy-ezmlm@rucus.ru.ac.za
Please send bug reports and comments to ezmlm-web@sumpfralle.de
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@ -55,6 +56,7 @@ POSSIBILITY OF SUCH DAMAGE.
II. Some Background
===================
[this text was written by Guy Antony Halse - the original author of ezmlm-web]
The need for ezmlm-web arose from the fact that we host many student
societies on our system. These societies usually have a virtual host for web
and email, which is administered by a computer rep from the society. These
@ -94,7 +96,8 @@ III. Requirements
This version of ezmlm-web requires the following;
* qmail v1.03
* ezmlm v0.53 (idx v0.40)
* ezmlm v0.53 (or ezmlm-idx v0.40)
* clearsilver v0.10.2 (only perl support is necessary)
* Perl v5.004 and the following modules;
+ Mail::Ezmlm v0.03
+ Mail::Address v1.15
@ -108,48 +111,65 @@ This version of ezmlm-web requires the following;
The version number indicates the version of the module that ezmlm-web was
developed with. Earlier versions may work, but then they haven't been
tested. Have a look on http://www.CPAN.org/, http://www.qmail.org/, and
http://www.ezmlm.org/ for anything you are missing.
http://www.ezmlm.org/ for anything you are missing. Of course, newer
versions are expected to work as well.
To install perl modules you may use the cpan command line interface.
Just run "cpan" and type something like "install Mail::Ezmlm".
You can download clearsilver (a templating engine - it is required since
ezmlm-web v3.0) from http://clearsilver.net.
IV. Files
=========
In this distribution you should find eight files;
In this distribution you should find the following files;
README This file. Provides some background information.
Not needed to run ezmlm-web.
README (optional) This file. Provides some background information.
INSTALL Notes on installation. Not needed to run ezmlm-web.
INSTALL (optional) Notes on installation.
CHANGES The change history. Not needed to run ezmlm-web
INSTALL.clearsilver (optional) Notes on the installation of clearsilver.
TODO This file is a list of things I intend doing in future
versions of ezmlm-web. Not needed to run ezmlm-web.
CHANGES (optional) The change history.
ezmlm-web.cgi The ezmlm-web script proper. This program requires that
you have perl5 installed on your machine and that your web
server is capable of running CGI scripts.
UPGRADING (optional) Notes on upgrading ezmlm-web from a previous version.
index.c A C wrapper to allow ezmlm-web.cgi to run suid. Not
strictly necessary if your setup allows perl scripts to
run suid, but I prefer using wrappers anyway. It needs to
TODO (optional) This file is a list of things I intend doing in future
versions of ezmlm-web.
ezmlm-web.cgi (required) The ezmlm-web cgi script in perl. You will need it :)
index.c (recommended) A C wrapper to allow ezmlm-web.cgi to run
suid. Not strictly necessary if your setup allows perl scripts
to run suid, but I prefer using wrappers anyway. It needs to
be edited and compiled to suit your system. Not needed to
run ezmlm-web.
ezmlmwebrc This is the configuration file for ezmlm-web. All options
are explained in this example file. You will need this
file to run ezmlm-web.
ezmlmwebrc (required) This is the configuration file for ezmlm-web.
All options are explained in this example file. You will need
this file to run ezmlm-web.
htaccess.sample A sample Apache .htaccess file for controlling access to
htaccess.sample (recommended) A sample Apache .htaccess file for controlling access to
the mailing lists. If you use another web server, you will
have to work this bit out for yourself.
webusers.sample A sample webusers file for multi-level access control.
webusers.sample (recommended) A sample webusers file for multi-level access control.
The directory "lang" contains the language files. You will need at least the
one, that you have choosen in "ezmlmwebrc" by the option "HTML_LANGUAGE".
lang (directory, required) It contains the language files. You will need
at least the one, that you have choosen in "ezmlmwebrc" by
the option "HTML_LANGUAGE".
css (directory, recommended) Here you find available css stylesheet files.
Pick the one you like (for now, there is only one choice :)) and
set it up by pointing the "HTML_CSS_FILE" setting in your
"ezmlmwebrc" to an appropriate URL.
template (directory, required) The clearsilver template files in this
directory defined the layout of the web interface. You should be able
to adapt them to your needs, if you like.
spec (directory, optional) Some development specific information.
V. Notes
@ -181,30 +201,27 @@ of constraints come into place.
- The webusers file is scanned for either the list name (case insensitive) or
an ALL (case sensitive) entry.
- The list entry (or ALL) is scanned for the current user (as set in
$REMOTE_USER) or an ALL entry.
$REMOTE_USER) or an ALL (user) entry.
- If any valid match is made, then the user is allowed to edit the list.
Otherwise the user is politely told to go away ;-)
If list creation is allowed and the webusers file exists, then the person who
creates the list is the default owner. As of yet there is no way to create users
through the web interface, but I intend to do this eventually.
creates the list is the default owner. There is no way to create users
through the web interface, as this depends on your authentication system.
The format of a webusers file is as follows;
list1: user1, user2, user3
ALL: user1, user2
list1: user1 user2 user3
ALL: user1 user2
list2: ALL
ie; listname colon (:) and a comma (,) separated list of users. Spaces are
ignored but each list must appear on a new line.
Once this file exists, the ezmlm-web script will allow the list users to
configure their access lists along with any other options.
You can permit some users to create lists by adding a line similar to the
following to your webusers file:
ALLOW_CREATE: user2, user3
ALLOW_CREATE: user2 user3
If there is no line starting with "ALLOW_CREATE:" in the webusers file, then
no one will be allowed to create lists. This behaviour is new for ezmlm-web
@ -217,9 +234,9 @@ the same effect in a cleaner way.
VII. Language Portablity
=========================
One of the great new features of version 2.0 is that it is essentially
language independant (okay, not quite, but is 99% of the way there). Most of
the fixed strings, help, etc is defined in the files of lang directory.
Of course you can change them or create a new translation.
language independant. All of the fixed strings, help, etc is defined in the
files of lang directory. Of course you can change them or create a new
translation.
The language can be selected in ezmlmwebrc with the "HTML_LANGUAGE" option.
@ -237,26 +254,27 @@ VIII. Bugs && Bug Reports
=======================
I don't know of any bugs, but then this is a rewrite and a first release. It
has been tested reasonably well, but not exhaustively. I know it works on
FreeBSD 4.0-STABLE, FreeBSD 3.4-RELEASE, RedHat 5.1 and Redhat 6.0 all using
an Apache web server, but I would be interested to know whether it works on
other OSs and with other web servers. This version is far less dependent on
the OS than previous versions so I don't see any reason why it shouldn't.
FreeBSD 4.0-STABLE, FreeBSD 3.4-RELEASE, RedHat 5.1, Redhat 6.0 and Debian
3.0 all using an Apache web server, but I would be interested to know whether
it works on other OSs and with other web servers.
Please mail bug reports and comments to ezmlm-web@sumpfralle.de.
Or (even better) submit a bug report at https://systemausfall.org/trac/ezmlm-web.
Or subscribe to the ezmlm-web mailinglist: ezmlm-web-subscribe@lists.systemausfall.org.
IX. Acknowledgements
===================
* Guy Antony Halse (guy-ezmlm@rucus.ru.ac.za) - He created ezmlm-web,
maintained it till 02005 and wrote nearly every line of code!
* Keith Burdis (keith@rucus.ru.ac.za) - For constantly bugging me and
* Guy Antony Halse (guy-ezmlm@rucus.ru.ac.za) - he created ezmlm-web
and maintained it till 02005
* Keith Burdis (keith@rucus.ru.ac.za) - For constantly bugging me (Guy) and
ensuring that I actually got round to writing some code :)
* Bryan Kilian (bryan@rucus.ru.ac.za) and the administrators of the
Litestep mailing list - For helping beta test and putting up with me
Litestep mailing list - For helping beta test and putting up with me (Guy)
pestering them.
* Several societies at Rhodes. For switching to my web interface and so
unknowingly helping to beta test it.
* Barry Irwin (bvi@moria.org) - For trusting me and moving the Grahamstown
* Barry Irwin (bvi@moria.org) - For trusting me (Guy) and moving the Grahamstown
Foundation over to qmail and ezmlm - yet another beta tester :-)
* David Summers (david@summersoft.fay.ar.us) - For some ideas. And for
offering to make up an RPM version. I hope the offer still exists for
@ -265,6 +283,9 @@ IX. Acknowledgements
* Fred Lindberg (lindberg@id.wustl.edu) for his useful posts to the
mailing list, suggestions, help, etc
* Galen Johnson (gjohnson@totalsports.net) - For some ideas on bugfixes.
* Reinin Ooyama (lenin@hasiru.net) - a japanese translation and bugixes for v2.3
* Henning Rieger (age@systemausfall.org) - he designed most of the new
interface for v3.0
X. Availability
@ -272,6 +293,9 @@ X. Availability
More information on ezmlm-web and developments to ezmlm-web can be found at:
https://systemausfall.org/toolforge/ezmlm-web
The public subversion repository is at:
https://svn.systemausfall.org/svn/ezmlm-web
The website of Guy Antony Halse (the author of ezmlm-web) is still at:
http://rucus.ru.ac.za/~guy/ezmlm/

13
TODO
View file

@ -1 +1,12 @@
remove old language file dependencies
"cancel" button during text editing
restore user input after failed list_create (especially options)
support for:
* charset
* show log
allow dynamic addition of user-made config templates (seperate directory, ...)
language switch support
choose basic/expert to disable questions

View file

@ -2,9 +2,27 @@ This file contains some useful hints for upgrading from a previous version of ez
##############################################################################
UPGRADING ezmlm-web 2.3 to ezmlm-web 3.0
1) install clearsilver (see INSTALL for details)
2) copy the "template" directory somewhere (see INSTALL again)
3) set "TEMPLATE_DIR" in your ezmlmwebrc file to this directory
4) copy the languga directory somewehre and adjust the "LANGUAGE_DIR" setting
4) maybe you want to define "MAIL_DOMAIN" in your ezmlmwebrc
5) the search order for ezmlmwebrc has changed
from HOME -> SYSTEM -> CGI_DIR
to HOME -> CGI_DIR -> SYSTEM
------------------------------------------------------------------------------
UPGRADING ezmlm-web 2.2 to ezmlm-web 2.3
there are no known issues
1) set the location (URL) of the css file in ezmlmwebrc
------------------------------------------------------------------------------

View file

@ -1,199 +1,325 @@
body {
background-color: #000080;
margin: 0;
padding: 0;
font: normal 100% sans-serif;
color: #606760;
}
font.ez {
font-style: italic;
color: #505050;
}
font.hint {
font-size: 85%;
}
font.feature {
font-weight: bold;
}
#nav_bar {
float: left;
width: 20%;
margin-left: 1%;
margin-right: 1%;
margin-bottom: 1%;
margin-top: 5px;
padding-left: 0.5%;
padding-right: 0.5%;
padding-top: 1.5%;
padding-bottom: 1.5%;
background-color: #c0c0b0;
}
.nav_group {
margin-top: 1%;
padding-bottom: 1%;
}
#nav_bar ul {
color: #af8060;
margin: 0;
padding-left: 15px;
list-style: none;
}
#nav_bar ul li {
margin-top: 0;
/* small space between highest level entries */
margin-bottom: 5px;
}
#nav_bar ul li ul li {
/* no space between lower level entries */
margin-bottom: 0;
}
#nav_bar li a.nav_active {
color: #fff;
}
#nav_bar font.no_link {
color: #2f4860;
font-style: italic;
}
#nav_bar a {
color: #2f4860;
text-decoration: none;
}
#nav_bar a:hover {
background-color: #d8d8d8;
color: #2f4860;
}
#main_content {
margin-left: 22%;
padding-left: 3%;
padding-right: 1%;
min-height: 440px;
}
#main_content li {
list-style: none;
}
#main_content button {
margin-top: 12px;
}
#main_content ul {
line-height: 1.8em;
list-style: none;
}
#main_content ul li ul {
font-size: 85%;
}
#main_content fieldset {
margin-top: 0.5%;
margin-bottom: 1%;
padding-top: 1%;
padding-bottom: 1.5%;
}
#main_content fieldset.form form ul {
padding-left: 1%;
}
#main_content fieldset.form form ul li ul {
padding-left: 3%;
}
#main_content table.list_select {
table-layout: fixed;
width: 100%;
text-align: left;
line-height: 1.2em;
border-width: 0px;
padding-left: 2%;
padding-right: 0px;
}
div.formfield {
font-style: normal;
}
#news {
background: #e8947c;
color: #000000;
margin: 1%;
padding: 5px;
width: 30%;
float: right;
font-size: 80%;
}
h1 {
text-align: center;
#news font.title {
font-style: italic;
font-size: 110%;
}
h2 {
text-align: center;
}
a {
color: #3333ff;
#news ul.changes {
font-size: 90%;
margin-top: 0px;
}
a:visited {
color: #8888ff;
color: #005040;
}
/*********************** general **************************
used classes for containers:
title - heading of most pages (except main)
list - list of subscribers/mailinglists/moderators/...
add_remove - buttons and fields to manipulate such lists
info - explanations
question - buttons to answer a question
options - various possibilities (buttons)
input - group of form fields
container - includes all other containers on a page
low-level classes (for "span"):
button
formfield
checkbox
help
and a special div:
error
************************************************************/
div.container {
margin-left: auto;
margin-right: auto;
#oben {
background-color: #2f4860;
}
div.add_remove span.button {
width: auto;
margin-top: 0px;
margin-right: auto;
}
div.add_remove span.formfield {
width: auto;
margin: 0px;
margin-right: auto;
padding: 0px;
}
div.list {
margin: 1%;
margin-right: 3%;
width: 30%;
text-align: center;
float: left;
margin-bottom: auto;
}
div.question {
text-align: center;
}
p.warning {
text-decoration: blink;
color: #ff0000;
text-align: center;
}
span.help {
font-size: small;
}
span.button {
margin-left: 3px;
margin-right: 3px;
}
span.formfield {
margin-right: auto;
}
/************************ main page ***********************
name of container: main
available classes: list info add_remove
**********************************************************/
/******************* confirm delete page *******************
name of container: delete
available classes: title button
***********************************************************/
/************************* edit page ***********************
name of container: edit
available classes: title list add_remove options
***********************************************************/
/********* allow/deny/moderators/digests page **************
name of container: parts
available classes: title info list add_remove
***********************************************************/
/******************* create list page **********************
name of container: create
available classes: title input question
***********************************************************/
#create div.input span.formfield {
font-weight: bold;
font-size: large;
margin-left: 0px;
margin-right: auto;
}
/********************* config page *************************
name of container: config
available classes: title info input question
***********************************************************/
#config div.info {
font-size: large;
font-weight: bold;
}
#config div.input span.formfield {
font-weight: bold;
margin-left: 0px;
margin-right: auto;
}
/******************** textfiles ****************************
name of container: textfiles
available classes: list info question
***********************************************************/
/******************** edittext *****************************
name of container: edittext
available classes: title input info question
***********************************************************/
#edittext div.input {
float:left;
}
/**************** error messages **************************/
div.error {
width: 99%;
h1.oben {
text-align: left;
border-bottom: solid 2px #ffffff;
padding: 5px;
text-align: center;
background-color: #e0e0ff;
}
div.error h2 {
color: #ff0000;
}
div.error p.msg {
font-weight: bold;
letter-spacing: -1px;
color: #ffffff;
margin: 0;
}
#perm_nav {
float: right;
padding-right: 5px;
font-size: 100%;
color: #ffd7f0;
background-color: inherit;
}
#perm_nav a {
font-weight: bold;
color: #ffffff;
padding-left: 2px;
padding-right: 2px;
text-decoration: none;
}
#perm_nav a:hover {
color: #ffcc00;
}
table.subscribers {
border-width: 0;
margin: 0;
padding: 1%;
width: 100%;
}
tr, td {
margin: 0;
padding: 0;
}
button {
color: #5e5e5e;
background-color: #d8d8d8;
border: 1px dotted #5e5e5e;
font-size: 90%;
cursor: pointer;
}
button:hover {
color: #505050;
background-color: #d0d0d0;
border: 1px dotted #ACE149;
font-size: 90%;
cursor: pointer;
}
.lid {
margin: 0;
padding: 3px;
border-bottom: solid 1px #606070;
background-color: #c0c0b0;
font: bold 100% sans-serif;
letter-spacing: -1px;
color: #ffffff;
}
#content {
position: absolute;
right: 0px;
width: 85%;
font: normal 82% sans-serif;
background-color: #ffffff;
padding: 2px;
}
#content h2 {
margin-left: 5px;
margin-right: 5px;
margin-top: 10px;
font-weight: normal;
letter-spacing: -1px;
color: #2f4860;
}
.push {
margin: 5px;
padding: 0;
}
.push p {
text-align: justify;
}
#info_title {
text-align: center;
background-color: #c0c0b0;
margin-top: 5px;
margin-left: 0%;
margin-right: 1%;
margin-bottom: 0.2%;
color: #ffffff;
font-size: 125%;
font-style: italic;
}
#header {
text-align: right;
background-color: #2f4860;
font-size: 90%;
color: #ffffff;
margin: 0;
top: 0;
width: 100%;
}
#footer {
text-align: center;
background-color: #2f4860;
font-size: 90%;
color: #ffffff;
margin: 0px;
padding: 3px;
}
#footer a {
color: #a0d0b0;
}
#footer a:visited {
color: #a0d0b0;
}
#main_content div.introduction {
font-size: 80%;
}
#main_content div.warning, div.error, div.success {
margin-left: 10%;
margin-right: 10%;
margin-top: 2%;
margin-bottom: 3%;
padding: 2%;
text-align: center;
font-style: italic;
font-size: 90%;
}
#main_content div.success {
background-color: #40d070;
color: #202020;
}
#main_content div.warning {
background-color: #e0a0a0;
color: #202020;
}
#main_content div.error {
background-color: #d05050;
color: #202020;
}
.mail {
font-style: italic;
color: #2f4860;
}

File diff suppressed because it is too large Load diff

View file

@ -25,21 +25,18 @@ $LANGUAGE_DIR = "/usr/local/share/ezmlm-web/lang";
$TEMPLATE_DIR = "/usr/local/share/ezmlm-web/template";
# Safe list deletion?
# 0 = move list to .list and the .qmails to deleted.qmail/. Recoverable :)
# 0 = move list to $LIST_DIR/_deleted_lists -> recoverable :)
# 1 = allow user to delete list completely. No backup, therefore no recovery.
$UNSAFE_RM = 0;
# Who is the alias user on this system (usually alias ;)
# Who is the qmail alias user on this system (usually alias ;)
$ALIAS_USER = 'alias';
# Where do the qmail control files live on this system ...
$QMAIL_BASE = $Mail::Ezmlm::QMAIL_BASE . '/control';
# The url to our web interface - so we can use ezmlm-cgi if necessary
$EZMLM_CGI_URL = 'http://some.server.that.has/cgi-bin/ezmlm-cgi';
# Where our ezcgirc file lives (probably /etc/ezmlm/ezcgirc)
$EZMLM_CGI_RC = '/etc/ezmlm/ezcgirc';
# default mailing list domain name (optional)
#$MAIL_DOMAIN = 'lists.someserver.org';
# Do we want to allow ``pretty'' names - ie more human readable ones
# This will slow ezmlm-web down a bit for large lists
@ -54,34 +51,13 @@ $FILE_UPLOAD = 1;
# disabled). The defaults below should be reasonable - I use them ;)
$DEFAULT_OPTIONS = 'aBDFGHiJkLMNOpQRSTUWx';
# Where do we find the nice little help icon - by default HELP_ICON_URL
# points to resources on http://rucus.ru.ac.za/. This will work, but we
# would appreciate it if you changed this to a local site.
$HELP_ICON_URL = 'http://systemausfall.org/misc/ezmlm-web-unknown.gif';
# Header for every page (.= concatinates)
$HTML_HEADER = '<TABLE BORDER="3" ALIGN="CENTER" CELLPADDING="5"><TR><TD BGCOLOR="#e0e0ff"><FONT SIZE=+3 COLOR=#000080><STRONG>E Z Mailing List Manager</STRONG></FONT></TD></TR></TABLE></CENTER><P>';
$HTML_HEADER .= '<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="5" ALIGN="CENTER" WIDTH="99%"><TR><TD BGCOLOR="#e0e0ff">';
# Footer for every page (.= concatinates)
$HTML_FOOTER = '</TD></TR></TABLE>';
$HTML_FOOTER .= '<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="5" ALIGN="CENTER" WIDTH="99%"><TR><TD BGCOLOR="#e0e0ff">';
$HTML_FOOTER .= '<FONT SIZE="-1"><A HREF="https://systemausfall.org/toolforge/ezmlm-web" TARGET="_blank">ezmlm-web</A> (v2.3) A web interface to <A HREF="http://www.ezmlm.org/" TARGET="_blank">ezmlm</A></FONT></TD></TR></TABLE>';
# NEW:
# html properties (e.g. color, background-color) can be defined in a
# stylesheet (see HTML_CSS_FILE) since version 2.3
# What is the title of this document?
$HTML_TITLE = 'E Z Mailing List Manager';
$HTML_TITLE = "ezmlm-web - a mailinglists' administration interface";
# Optional: use a cascading style sheet (css)
$HTML_CSS_FILE = "css/default.css";
# this is a URL - you have to copy the css file to the right location before
$HTML_CSS_FILE = "/ezmlm-web.css";
# choose a language (en|de)
$HTML_LANGUAGE = 'en';
# ---------------------------------------------------------------------------
# include language-specific definitions
require($LANGUAGE_DIR . '/' . $HTML_LANGUAGE . '.pm');

View file

@ -1,9 +1,7 @@
#$Id: htaccess.sample,v 1.1 2000/01/29 11:35:40 guy Exp $
#
#order deny,allow
#deny from all
#allow from .ru.ac.za
AuthName "EZ Mailing List Manager
AuthName "EZ Mailing List Manager"
AuthType Basic
AuthUserFile /etc/ezmlm/.htusers
require valid-user

224
lang/de.hdf Normal file
View file

@ -0,0 +1,224 @@
LanguageID = de
LanguageName = Deutsch
Lang {
Menue {
ListCreate = Neue Liste anlegen
ListDelete = Liste löschen
Subscribers = AbonnentInnen
AllowList = Zulassungsliste
DenyList = Ablehnungsliste
DigestList = Zusammenfassung
ModList = ModeratorInnen
ConfigMain = Einstellungen
ConfigSub = Einschreibung
ConfigPost = Einsendung
ConfigAdmin = Administration
ConfigArchive = Archivierung
ConfigProcess = Verarbeitung
ConfigAll = Übersicht
TextFiles = Texte
ListSelect = Auswahl einer Liste
Properties = Eigenschaften von
Help = Hilfe (extern)
}
Title {
ConfigMain = Listeneinstellungen
ConfigSub = Einschreibungsregeln
ConfigPosting = Einsendungsregeln
ConfigAdmin = Fern-Administration der Liste
ConfigArchive = Archivierung der Liste
ConfigProcess = Nachrichtenverarbeitung
ConfigAll = Einstellungen im Überblick
SubscriberList = AbonnentInnen der Liste
AllowList = Zugelassene Nutzer
DenyList = Abzuweisende Nutzer
DigestList = EmpfängerInnen von Zusammenfassungen
ModList = ModeratorInnen der Liste
ListCreate = Anlegen einer neuen Liste
ListSelect = Auswählen einer Liste
ListDelete = Löschung von
FileSelect = Auswählen eines Textbausteins
FileEdit = Bearbeitung des Textbausteins
}
Buttons {
Create = Erzeuge die Liste
ConfirmDeletion = Lösche die Liste
DeleteAddress = Adresse(n) entfernen
AddAddress = Adresse(n) hinzufügen
UpdateConfiguration = Einstellungen speichern
EditFile = Datei bearbeiten
SaveFile = Datei speichern
}
ErrorMessage {
UnknownAction = Diese Aktion ist undefiniert!
ParameterMissing = Diese Aktion benätigt weitere Parameter!
Forbidden = Fehler: dir fehlen die notwendigen Rechte für diese Aktion
InvalidFileName = Der Dateiname ist nicht zulässig.
UnknownConfigPage = Die gähle Konfigurations-Seite existiert nicht!
}
WarningMessage {
AddAddress = Mindestens eine Mailadresse konnte nicht hinzugefügt werden!
DeleteAddress = Mindestens eine der angegebenen Adressen konnte nicht entfernt werden!
CreateList = Fehler beim Anlegen der neuen Liste!
DeleteList = Die Löschung der Mailingliste schlug fehl!
UpdateConfig = Beim Speichern der Einstellungen trat ein Fehler auf!
SaveFile = Die Datei konnte nicht gespeichert werden!
ListNameAlreadyExists = Es gibt bereits eine Liste mit diesem Namen.
ListAddressAlreadyExists = Es gibt bereits eine Liste mit dieser Adresse.
ListDoesNotExist = Eine Liste dieses Namens existiert nicht.
ListDirAccessDenied = Fehler beim Zugriff auf das Verzeichnis der Liste
TextDirAccessDenied = Beim Zugriff auf das Text-Verzeichnis der Liste trat ein Fehler auf.
SafeRemoveRenameDirFailed = Das Verschieben der Liste schlug fehl.
DotQmailDirAccessDenied = Fehler beim Zugriff auf das Nutzerverzeichnis des Listenverwalters
SafeRemoveMoveDotQmailFailed = Beim Verschieben der .qmail-Dateien trat ein Fehler auf!
UnsafeRemoveListDirFailed = Fehler beim sicheren Löschen der Mailingliste
UnsafeRemoveDotQmailFailed = Fehler beim Löschen der .qmail-Dateien
InvalidFileFormat = Die gewählte Datei konnte nicht als Textdatei erkannt werden.
WebUsersUpdate = Fehler beim Aktualisieren der Nutzerverwaltungsdatei
WebUsersRead = Fehler beim Lesen der Nutzerverwaltungsdatei
InvalidListName = Der gewählte Listenname enthält unzulässige Zeichen
ReservedListName = Dieser Listenname ist ein reserviertes Wort und kann nicht benutzt werden
EmptyListName = Es wurde kein Name für die Listen angegeben.
InvalidLocalPart = Die gewählte untergeordnete Liste ist ungültig.
}
SuccessMessage {
AddAddress = Einschreibung erfolgreich
DeleteAddress = Austragung erfolgreich abgeschlossen
CreateList = Die neue Liste wurde erfolgreich angelegt.
DeleteList = Die Mailingliste wurde gelöscht.
UpdateConfig = Die neuen Einstellungen wurden erfolgreich gespeichert.
SaveFile = Die Datei wurde gespeichert.
}
Options {
a = Archiviere Mailinglisten-Mails
b = Nur Moderatoren dürfen auf das Archiv zugreifen
d = Aktiviere die Zusammenfassungsliste
f = Füge ein Präfix zum Betreff der ausgehenden Mails hinzu
g = Verweigere unbekannten NutzerInnen den Zugriff auf das Archiv
h = Bei der Einschreibung in die Liste ist keine Bestätigungsmail erforderlich
i = Indiziere die Nachrichten zur Veröffentlichung im Internet (z.B. mit ezmlm-www)
j = Beim Austragen aus der Liste ist keine Bestätigungsmail erforderlich
k = Beachte die Ablehnungsliste bei der Verarbeitung von Mails
l = Fern-AdministratorInnen (ModeratorInnen) dürfen eine Liste der AbonnentInnen anfordern
m = Alle eingehenden Nachrichten werden moderiert
n = Fern-AdministratorInnen (ModeratorInnen) dürfen Textbausteine per Mail verändern
o = Nur ModeratorInnen dürfen Nachrichten einsenden
p = Die Einschreibung und der Zugriff auf das Archiv sind öffentlich zugänglich
q = Verarbeite auch Anfragen im Mailman-Stil (Kompatibilität)
r = Erlaube die Fern-Administration der Liste (für ModeratorInnen)
s = Die Einschreibung in die Liste und für die Zusammenfassungen wird moderiert
t = Hänge eine Signatur an jede versandte Nachricht
u = Einsendungen von AbonnentInnen werden immer akzeptiert (dies gilt auch für moderierte Listen)
w = Entferne den Aufruf von ezmlm-warn aus den Verarbeitungsregeln (für sehr spezielle Konfigurationen)
x = Prüfe die MIME-Typen der Anhänge eingehender Nachrichten
y = Fordere eine Bestätigung für jede eingesandte Nachricht an
}
Settings {
0 = Diese Liste is nur eine Unterliste
3 = Definiere die Absender-Adresse ausgehender Mails
4 = Eigene Einstellungen zum Versand von Zusammenfassungsmails (ezmlm-tstdig)
5 = Lege die Mailadresse des Verantwortlichen für diese Liste fest
6 = Verwende eine SQL-Datenbank
7 = Die Datenbank der Nachrichten-ModeratorInnen befindet sich in einem alternativen Verzeichnis
8 = Die Datenbank der Einschreibe-ModeratorInnen (und Fern-AdministratorInnen) befindet sich in einem alternativen Verzeichnis
# 9 => not used - it is only an alternative to (8)
}
Misc {
HelpLink = Das online-Handbuch von ezmlm-idx
Subscription = Einschreibung
Subscribers = AbonnentInnen
RemoteAdmin = Fern-AdministratorIn
ListName = Name der Liste
ListAddress = Addresse der Liste
ListOptions = Grundlegende Einstellungen
AllowedToEdit = Nutzer, die diese Liste per Web-Interface konfigurieren dürfen:
HeaderRemove = zu entfernende Kopfzeilen
HeaderAdd = hinzuzufügende Kopfzeilen
MimeRemove = Nachrichtenbestandteile dieses Typs werden entfernt
MimeReject = Nachrichten, die einen der folgenden Datentypen enthalten, werden abgewiesen
EditFileInfo {
CommonTags = allgemeine Platzhalter
ListNameLocal = der lokale Teil (vor dem "@") der Listenadresse
ListNameHost = die Domain der Mailadresse
MessageNumber = die Nummer der jeweiligen Nachricht
SubAddress = die Einschribe-Adresse
SubReplyAddress = die Bestätigungsadresse
AcceptanceAddress = die Zustimmungsadresse
RejectionAddress = die Ablehnungsadresse
}
SuggestDefaultPath = Ansonsten musst du diese Mitglieder per Hand verwalten.
PostModPathWarn = Die Nachrichten-ModeratorInnen werden nicht an ihrem üblichen Ort gespeichert.
SubModPathWarn = Die Einschreibe-ModeratorInnen werden nicht an ihrem üblichen Ort gespeichert.
RemoteAdminPathWarn = Die Fern-AdministratorInnen werden nicht an ihrem üblichen Ort gespeichert.
MessageSize.Max = Verweigere die Annahme von Nachrichten, die eine gewisse Größe überschreiten
MessageSize.Min = Verweigere die Annahme von Nachrichten, die eine gewisse Größe unterschreiten
MessageSize.Unit = Bytes
NoFiles = Es befinden sich keine Dateien im Text-Verzeichnis der Mailingliste.
AddSubscriberAddress = Füge eine neue Mailadresse hinzu:
AddSubscriberFile = Importiere eine Datei, die Mailadressen enthält:
SuggestDefaultPath = Es wird empfohlen, das Standard-Verzeichnis zu verwenden. Andernfalls kannst du die ModeratorInnen-Liste nicht mit ezmlm-web verwalten.
FooterText = eine Web-Oberfläche für
NoListsAvailable = Es sind keine passenden Listen vorhanden.
ConfirmDelete = Willst du wirklich diese Liste vollständig löschen?
}
Introduction {
ConfigAdmin = Fern-AdministratorInnen sind (per Voreinstellung) auch ModeratorInnen für die Einschreibung und für eingesandte Mails. Sie können berechtigt sein, per Mail Nutzer ein- und auszutragen, sowie Textbausteine zu verändern.
ConfigArchive = Das Mailinglisten-Archiv ist per Mail verfügbar. Außerdem benötigst du ein Archiv, falls du vergangene Mails im Internet zur Verfügung stellen möchtest (z.B. mit ezmlm-www).
ConfigProcess = Die folgenden Regeln werden auf alle Mails angewandt, bevor sie an die AbonnentInnen verteilt werden.
ConfigMain = Hier findest du ein paar allgemeine Einstellungen der Mailingliste, die sich nicht in den themenorientierten Rubriken unterbringen ließen.
ConfigPosting = Die Einsende-Konfiguration bestimmt, wer Nachrichten einsenden darf und welchen Bedingungen die Mails genügen müssen.
ConfigSub = Hier kannst du festlegen, wer sich als Abonnent selbständig eintragen darf und wie der Einschreibungsprozess abläuft.
ConfigAll = Diese Seite enthält alle verfügbaren Optionen auf einen Blick.
ListDelete = Die Mailingliste und alle damit verbundenen Daten werden hiermit vollständig entfernt.
AllowList = An die Adressen der Zulassungsliste werden keine Mails verschickt. Einsendungen von diesen Adressen werden so behandelt, als kämen sie von AbonnentInnen. Üblicherweise solltest du Aliase von AbonnentInnen in die Zulassungsliste eintragen.
DenyList = Falls du Mails von bestimmte Mailadressen verweigern möchtest, dann füge sie einfach zur Ablehnungsliste hinzu Dies kann nützlich sein, um unbeliebte Nutzer auszuschließen oder um störende Abwesenheitsbenachrichtigungen zu verhindern.
DigestList = Einige AbonnentInnen deiner Mailingliste sind möglicherweise nicht an jeder einzelnen Nachricht interessiert, sondern ziehen es vor, stattdessen regelmäßig automatisch erstellte Zusammenfassungen zu erhalten.
ModList = ModeratorInnen (für die Einschreibung von AbonnentInnen und die Einsendungen an die Liste) und Fern-AdministratorInnen können die Kontrolle über viele wichtige Aspekte der Liste übernehmen (falls du sie dementsprechend konfigurierst).
SubscriberList = Die AbonnentInnen der Mailingliste empfangen alle versandten Nachrigten der Liste. Zudem kann es ihnen gestattet sein, Nachrichten direkt oder indirekt zur weiteren Verteilung an die Liste zu senden. Oft ist es anonymen Nutzern gestattet, sich selbständig in die Mailingliste einzuschreiben, ohne die Hilfe eines Administrators in Anspruch nehmen zu müssen.
TextFiles = Das Auswahlfeld beinhaltet die Liste aller verfügbaren Textbausteine im Texte-Verzeichnis der Liste. Diese Textbasuteine werden zur Erstellung der automatischen Antworten der Mailingliste benutzt.
EditTextFile = Passe den Textbaustein an die Erfordernisse der Liste an. Eventuell möchtest du dafür auch einige der reservierten Platzhalter verwenden, die am Ende dieser Seite aufgeführt sind.
}
Legend {
ConfigAdmin = Fern-Administrations-Rechte
ConfigArchve = Archivierungseinstellungen
ConfigPosting = Einsende-Regeln
ConfigSub = Einschreibungsdetails
ConfigMain = Allgemeine Listen-Einstellungen
ConfigProcess = Verarbeitungsregeln
ConfigAll = Einstellungen
ListCreate = Eigenschaften der neuen Liste
ListDelete = Löschung der Mailingliste
RelevantOptions = Relevante Optionen
MembersList = AbonnentInnen-Verwaltung
MembersAllow = Verwaltung der zulässigen Adressen
MembersDeny = Verwaltung der abzulehnenden Adressen
MembersDigest = Verwaltung der AbonnentInnen der Zusammenfassungen
MembersMod = Verwaltung der ModeratorInnen / AdministratorInnen
TextFiles = Verfügbare Textbausteine
TextFileEdit = Bearbeite einen Textbaustein
TextFileInfo = Nützliche Platzhalter
AvailableLists = Verfügbare Listen
}
}

View file

@ -1,187 +0,0 @@
# language-specific definitions for ezmlm-web
# in english
# The meanings of the various ezmlm-make command line switches. The default
# ones match the ezmlm-idx 0.4 default ezmlmrc ... Alter them to suit your
# own ezmlmrc. Removing options from this list makes them unavailable
# through ezmlm-web - this could be useful for things like -w
%EZMLM_LABELS = (
# option => ['Short Name',
# 'Long Help Description'],
a => ['archivieren',
'Ezmlm wird neue Nachrichten zum Archiv hinzufuegen'],
b => ['Archiv nur fuer ModeratorInnen',
'Nur ModeratorInnen haben Zugriff zum Archiv'],
# c => config. This is implicity called, so is not defined here
d => ['Zusammenfassungen',
'Erstelle eine Mailing-Liste, an die regelmaessige Zusammenfassungen versandt werden'],
# e => edit. Also implicity called, so not defined here
f => ['Listenname als Praefix in Betreff einfuegen',
'In die versandten Mails wird in der Betreff-Zeile ein Praefix eingefuegt'],
g => ['Archiv nur fuer Mitglieder',
'Nur TeilnehmerInnen der Liste erhalten Zugriff zum Archiv'],
h => ['einschreiben ohne Bestaetigung',
'Das Abonnieren der Liste erfordert keine Bestaetigung durch die neue AbonnentIn'],
i => ['Web-Index erstellen',
'Den Zugriff auf das Archiv per Webinterface erlauben'],
j => ['abmelden ohne Bestaetigung',
'Das Abbestellen der Liste erfordert keine Bestaetigung durch die ehemalige AbonnentIn'],
k => ['Beachte Ausschlussliste',
'Einsendungen von AbonnentInnen, die inm deny-Verzeichnis enthalten sind, werden abgelehnt'],
l => ['AbonnentInnen-Auflistung fuer AdministratorInnen',
'Die AdministratorInnen koennen eine Liste aller AbonnentInnen anfordern'],
m => ['Moderation aktivieren',
'Alle eingehenden Nachrichten muessen durch eine ModeratorIn bestaetigt werden'],
n => ['Anpassung der Textbausteine erlauben',
'AdministratorInnen duerfen die Standard-Textbausteine per Mail veraendern'],
o => ['Nur ModeratorInnen duerfen einsenden',
'Nur eingehende Nachrichten von den ModeratorInnen werden akzeptiert'],
p => ['oeffentlich',
'Die oeffentliche Einschreibung und Archiv-Anforderung ist erlaubt'],
q => ['Verarbeite Anforderungen',
'Mails an liste-request@domain werden verarbeitet'],
r => ['Administration per Mail erlauben',
'Die Verwaltung der Liste durch Mails der AdministratorInnen ist erlaubt'],
s => ['Einschreibung durch ModeratorIn bestaetigen',
'Die Einschreibungen in die Liste und die Zusammenfassungs-Liste werden moderiert'],
t => ['Infotext an Mails anhaengen',
'An alle ausgehenden Mails wird ein Anhang angefuegt (siehe Datei "text/trailer")'],
u => ['Nur AbonnentInnen duerfen einsenden',
'Einsendungen von nicht-eingeschriebenen Mail-Adressen werden abgewiesen'],
# v => version. I doubt you will really need this ;-)
w => ['Warnung deaktivieren',
'Entferne den Aufruf von ezmlm-warn aus der Listen-Konfiguration - es wird angenommen, dass ezmlm-warn auf einem anderem Wege gestartet wird'],
x => ['Filtere Anhaenge und Kopfzeilen',
'Mails mit den angegebenen Anhangs-Typen werden abgewiesen - die angegebenen Kopfzeilen werden aus den ausgehenden Mails entfernt'],
# y => not used
# z => not used
# These all take an extra argument, which is the default value to use
0 => ['Unterlisten',
'Diese Liste soll eine Unterliste einer anderen Hauptliste sein',
'hauptliste@domain'],
# 1 => not used
# 2 => not used
3 => ['AbsenderIn',
'Ersetze die AbsenderIn der ausgehenden Mails durch diese Adresse',
'Absender'],
4 => ['Zusammenfassungseinstellungen',
'Einstellungen for ezmlm-tstdig (nach "t" Stunden oder "m" Nachrichten oder "k" Kilobyte',
'-t24 -m30 -k64'],
5 => ['Adresse der Verantwortlichen der Liste',
'Mail-Adresse der Listen-EigentuemerIn',
'name@domain.org'],
6 => ['SQL-Datenbank',
'SQL-Datenbank-Zugangsinformationen (erfordert SQL-Unterstuetzung)',
'host:port:user:password:datab:table'],
7 => ['Listen-Moderations-Verzeichnis',
'alternatives Verzeichnis zur Moderationsdatenbank',
'/absoluter/pfad/zur/moderations/datenbank'],
8 => ['Einschreibungs-Moderations-Verzeichnis',
'alternatives Verzeichnis zur Einschreibungs-Moderationsdatenbank',
'/absoluter/pfad/zur/abonnenten/moderations/datenbank'],
9 => ['Administrations-Verzeichnis',
'alternatives Verzeichnis zur Administrationsdatenbank',
'/absoluter/pfad/zur/administrations/datenbank'],
);
# This list defines most of the context sensitive help in ezmlm-web. What
# isn't defined here is the options, which are defined above ... You can
# alter these if you feel something else would make more sense to your users
# Just be careful of what can fit on a screen!
%HELPER = (
# These should be self explainitory
addaddress => 'Eine Mail-Adresse - auch in der Form \'Max Meier <max@meier.de>\'',
addaddressfile => 'alternativ ist auch eine Datei mit je einer Adresse pro Zeile moeglich',
moderator => 'ModeratorInnen kontrollieren, welche Mails weitegeleitet und welche AbonnentInnen akzeptiert werden',
deny => 'Ausschluss: die Mail-Adressen, die NIE an die Liste schreiben duerfen',
allow => 'Zulassung: die Mail-Adressen, die immer an die Liste schreiben duerfen',
digest => 'Zusammenfassung: diese Leute werden regelmaessige Zusammenfassungen der Mailingliste erhalten',
webarch => 'Gehe zum Web-Archiv der Mailingliste',
config => 'Einstellungen zur Mailingliste',
listname => 'Dies ist der eindeutige Name der Mailingliste',
listadd => 'Die Adresse der Mailingliste - nur der lokale Teil kann geaendert werden',
webusers => 'unfertig: derzeit koennen Listen-AdministratorInnen nur manuell festgelegt werden',
prefix => 'Praefix der Betreffzeile',
headerremove => 'Diese Kopfzeilen werden aus den ausgehenden Mails entfernt',
headeradd => 'Diese Kopfzeilen werden zu jeder ausgehenden Mail hinzugefuegt',
mimeremove => 'Alle Mails, die die genannten Anhangs-Typen beinhalten, werden abgewiesen',
allowedit => 'Komma-getrennte Liste von (existierenden) NutzerInnen oder <CODE>ALL</CODE>',
mysqlcreate => 'Anlegen der konfigurierten MySQL-Datenbank'
);
# This defines the captions of each of the buttons in ezmlm-web, and allows
# you to configure them for your own language or taste. Since these are used
# by the switching algorithm it is important that every button has a unique
# caption - ie we can't have two 'Edit' buttons doing different things.
%BUTTON = (
# These MUST all be unique!
create => 'Anlegen',
createlist => 'Liste anlegen',
edit => 'Bearbeiten',
delete => 'Entfernen',
deleteaddress => 'Entferne Adresse',
addaddress => 'Fuege Adresse hinzu',
moderators => 'ModeratorInnen',
denylist => 'Ausschlussliste',
allowlist => 'Zulassungsliste',
digestsubscribers => 'AbonnentInnen der Zusammenfassungen',
configuration => 'Konfiguration',
yes => 'Ja',
no => 'Nein',
updateconfiguration => 'Speichere Konfiguration',
edittexts => 'Bearbeite Texte',
editfile => 'Bearbeite Datei',
savefile => 'Speichere Datei',
webarchive => 'Web-Archiv',
selectlist => 'Listenauswahl',
subscribers => 'AbonnentInnen',
cancel => 'Abbruch',
resetform => 'Reset',
);
# This defines the fixed text strings that are used in ezmlm-web. By editing
# these along with the button labels and help texts, you can convert ezmlm-web
# to another language :-) If anyone gets arround to doing complete templates
# for other languages I would appreciate a copy so that I can include it in
# future releases of ezmlm-web.
%LANGUAGE = (
nop => 'Diese Funktionalitaet ist noch nicht umgesetzt worden',
chooselistinfo => "<UL><LI>Markiere eine Liste in der Auswahlbox oder klicke auf [$BUTTON{'create'}].<LI>Klicke auf den [$BUTTON{'edit'}]-Schalter, falls du die markierte Liste bearbeiten moechtest.<LI>Klicke auf den [$BUTTON{'delete'}]-Schalter, falls du die markierte Liste loeschen moechtest.</UL>",
confirmdelete => 'Bestaetige die Loeschung von ', # list name
subscribersto => 'AbonnentInnen von', # list name
subscribers => 'AbonnentInnen',
additionalparts => 'Weitere Optionen',
posting => 'Einsendungen',
subscription => 'Einschreibung',
remoteadmin => 'Entfernte AdministratorIn',
for => 'fuer', # as in; moderators for blahlist
createnew => 'Lege eine neue Liste an',
listname => 'Name der Liste',
listaddress => 'Adresse der Liste',
listoptions => 'Einstellungen der Liste',
allowedtoedit => 'NutzerInnen, die diese Liste bearbeiten duerfen',
editconfiguration => 'Einstellungen aendern',
prefix => 'Praefix der Betreff-Zeile ausgehender Nachrichten',
headerremove => 'zu entfernende Kopfzeilen',
headeradd => 'einzufuegende Kopfzeilen',
mimeremove => 'abzuweisende Anhangs-Typen',
edittextinfo => "Das Auswahlfeld links enthaelt die Dateien des <BR>Verzeichnisses DIR/text/. Diese Dateien werden als Antwort auf spezifische Nutzer-Anfragen oder als Teil aller ausgehenden Nachrichten versandt.<P>Um diese Dateien zu veraendern, waehle ihren Namen im Auswahlfeld an. Anschliessend klicke auf den [$BUTTON{'editfile'}] Schalter.<P>BetäAege [$BUTTON{'cancel'}] um die Veraenderung zu beenden.",
editingfile => 'Bearbeite Datei',
editfileinfo => '<BIG><STRONG>ezmlm-manage</STRONG></BIG><BR><TT><STRONG>&lt;#l#&gt;</STRONG></TT> Der Name der Liste<BR><TT><STRONG>&lt;#A#&gt;</STRONG></TT> Die Anmeldungs-Adresse<BR><TT><STRONG>&lt;#R#&gt;</STRONG></TT> Die Bestaetigungs-Adresse<P><BIG><STRONG>ezmlm-store</STRONG></BIG><BR><TT><STRONG>&lt;#l#&gt</STRONG></TT> Der Name der Liste<BR><TT><STRONG>&lt;#A#&gt;</STRONG></TT> Die Zusage-Adresse<BR><TT><STRONG>&lt;#R#&gt;</STRONG></TT> Die Ablehungs-Adresse</UL>',
mysqlcreate => 'Lege die MySQL-Datenbank an, falls erforderlich',
);
# === Configuration file ends ===

View file

@ -1,168 +1,224 @@
Language = en
PageTitle = ezmlm-web - a mailinglists' administration interface
LanguageID = en
LanguageName = English
Lang {
Menue {
ListCreate = Create new list
ListDelete = Delete list
Subscribers = Subscribers
AllowList = allow list
DenyList = deny list
DigestList = digest list
ModList = moderators
ConfigMain = Options
ConfigSub = subscription
ConfigPost = posting
ConfigAdmin = administration
ConfigArchive = archive
ConfigProcess = processing
ConfigAll = overview
TextFiles = Text files
ListSelect = Choose a list
Properties = Properties of
Help = Help (external)
}
Title {
ConfigMain = List configuration
ConfigSub = Subscription options
ConfigPosting = Posting options
ConfigAdmin = Remote administration
ConfigArchive = Archive options
ConfigProcess = Message processing
ConfigAll = Complete configuration
SubscriberList = Subscribers of the list
AllowList = Allowed users
DenyList = Blocked users
DigestList = Digest subscribers
ModList = Moderators of the mailinglist
ListCreate = Create a new list
ListSelect = Choose a list
ListDelete = Delete list
FileSelect = Choose a file for editing
FileEdit = Editing file
}
Buttons {
Create = [Create List]
Edit = [Edit]
Delete = [Delete]
Yes = [Yes]
No = [No]
Cancel = [Cancel]
DeleteAddress = [Delete Address]
AddAddress = [Add Address]
Moderators = [Moderators]
DenyList = [Deny List]
AllowList = [Allow List]
DigestSubscribers = [Digest Subscribers]
Configuration = [Configuration]
UpdateConfiguration = [Update Configuration]
EditTexts = [Edit Texts]
EditFile = [Edit File]
SaveFile = [Save File]
WebArchive = [Web Archive]
SelectList = [Select List]
Subscribers = [Subscribers]
ResetForm = [Reset Form]
Create = Create list
ConfirmDeletion = Delete the list
DeleteAddress = Delete address(es)
AddAddress = Add address(es)
UpdateConfiguration = Update configuration
EditFile = Edit file
SaveFile = Save File
}
ErrorMessage {
UnknownAction = this action is undefined
ParameterMissing = this action needs one or more parameters
Forbidden = Error: you are not allowed to do this!
InvalidFileName = The name of the file is invalid!
UnknownConfigPage = The chosen config page is invalid!
}
WarningMessage {
AddAddress = Adding of at least one mail address failed!
DeleteAddress = Removal of at least one mail address failed!
CreateList = Creation of new mailing list failed!
DeleteList = Removal of mailing list failed!
UpdateConfig = Update of configuration failed!
SaveFile = The file could not be saved!
ListNameAlreadyExists = There is already a list with this name!
ListAddressAlreadyExists = There is already a list with this address!
ListDoesNotExist = A list with this name does not exist!
ListDirAccessDenied = Unable to access the list's directory
TextDirAccessDenied = Unable to access the list's directory of text files
SafeRemoveRenameDirFailed = Unable to rename list for safe removal
DotQmailDirAccessDenied = Unable to read the mail user's home directory for .qmail files
SafeRemoveMoveDotQmailFailed = Unable to move .qmail files
UnsafeRemoveListDirFailed = Unable to delete list
UnsafeRemoveDotQmailFailed = Unable to delete .qmail files
InvalidFileFormat = The uploaded file must be a text file
WebUsersUpdate = Could not update the webusers file
WebUsersRead = Could not read the webusers file
InvalidListName = The name of the list contains invalid characters
ReservedListName = This listname may not be used as it is reserved for internal purposes
EmptyListName = The name of the list may not be empty
InvalidLocalPart = The local part of the list address is not valid
}
SuccessMessage {
AddAddress = The address was added to the list.
DeleteAddress = The address was removed from the list.
CreateList = The new mailing list was successfully created.
DeleteList = The mailing list was successfully removed.
UpdateConfig = The mailing list's configuration was successfully changed.
SaveFile = The file was saved.
}
Options {
a.short = Archived
a.long = Ezmlm will archive new messages
b.short = Block archive
b.long = Only moderators are allowed to access the archive
# c => config. This is implicity called, so is not defined here
d.short = Digest
d.long = Set up a digest list to disseminate digest of the list messages
# e => edit. Also implicity called, so not defined here
f.short = Prefix
f.long = Outgoing subject will be prefixed with the list name
g.short = Guard Archive
g.long = Archive access requests from unrecognized SENDERs will be rejected
h.short = Help subscription
h.long = Subscriptions do not require confirmation
i.short = Indexed
i.long = Indexed for WWW archive access
j.short = Jump off
j.long = Unsubscribe does not require confirmation
k.short = Kill
k.long = Posts from addresses in dir/deny/ are rejected
l.short = Subscriber List
l.long = Remote administrators can request a subscriber list
m.short = Message Moderation
m.long = All incoming messages are moderated
n.short = Text Editing
n.long = Allow remote administrators to edit files in dir/text/
o.short = Others rejected
o.long = Posts from addresses other than moderators are rejected
p.short = Public
p.long = List will respond to administrative requests and archive retrieval
q.short = Service Request Address
q.long = Process commands sent in the subject to local-request@host
r.short = Remote Admin
r.long = Enable remote adminstration of the list
s.short = Subscription Moderation
s.long = Subscriptions to the main list and digest will be moderated
t.short = Trailer
t.long = Add a trailer to outgoing messages
u.short = User Posts Only
u.long = Posts from unrecognized SENDER addresses will be rejected
# v => version. I doubt you will really need this ;-)
w.short = Remove Warn
w.long = Remove the ezmlm-warn(1) invocations from the list setup. It is assumed that ezmlm-warn(1) is run by other means
x.short = Extra
x.long = Strip certain mimetypes, etc
# y => not used
# z => not used
a = Archive mailing list messages
b = Only moderators are allowed to access the archive
d = Activate the digest list
f = Add a prefix to the subject line of outgoing messages
g = Archive requests from unrecogniced senders are denied
h = Subscriptions do not require confirmation by the user
i = Index mailing list messages for WWW archive access
j = Unsubscribe does not require confirmation
k = Use deny list to prevent some users from posting
l = Remote administrators (moderators) may request a subscriber list
m = All incoming messages are moderated
n = Remote administrators (moderators) may edit text files in DIR/text
o = Only moderators may post
p = Allow subscription and archive retrieval for everyone
q = Process mailman-style requests (to local-request@domain)
r = Enable remote administration of the list (for moderators)
s = Subscriptions to the main list and the digest list will be moderated
t = Add a trailing text to every message
u = Subscribed users may always post messages (even ignoring moderation)
w = Remove the ezmlm-warn invocations from the list setup (rarely useful)
x = Remove or reject specific mime types in messages
y = Request a confirmation mail for every posted message
}
Settings {
0.short = Sublist
0.long = Make the list a sublist of list mainlist@host
0.default = mainlist@host
# 1 => not used
# 2 => not used
3.short = From Address
3.long = Replace the &quot;From:&quot; header of the message with &quot;From: fromarg&quot;
3.default = fromarg
4.short = Digest Options
4.long = Switches for ezmlm-tstdig(1)
4.default = -t24 -m30 -k64
5.short = List Owner
5.default = The email address of the list owner
6.short = SQL Database
6.long = SQL database connect information. Requires SQL support
6.default = host:port:user:password:datab:table
7.short = Message Moderation Path
7.long = Make /path the path to the database for message moderators, if the list is set up for message moderation
7.default = /some/full/path
8.short = Subscription Moderation Path
8.long = Make /path the path to the database for message moderators, if the list is set up for message moderation
8.default = /some/full/path
9.short = Remote Admin Path
9.long = Make /path the path to the database for message moderators, if the list is set up for message moderation
9.default = /some/full/path
}
Helper {
AddAddress = You may enter any RFC822 compliant email address here, including the comment part. For example; 'J Random User <jru@on.web.za>'
AddAddressFile = or you may enter the filename of a plain text file containing multiple RFC822 email addresses, one per line
Moderator = Moderators: people who control who may subscribe or post to a list
Deny = Deny: A list of addresses that are _never_ allowed to mail the list
Allow = Allow: A list of address that are allowed to mail the list even if the configuration otherwise restricts it
Digest = Digest: People who will recieve a digest of all messages on the list
WebArch = View the web based archive of this list
Config = This lets you alter the way the list is set up
ListName = This is the name of the list as displayed on the Select Lists screen. It is also the name of the subdirectory that contains the list
ListAdd = This is the email address of the list. Note that the defaults come from your qmail config. You should just update the local part (before the @)
WebUsers = NB! At this stage, any users specified here must exist. User creation may be added in future versions
Prefix = Text to add to the subject line of all outgoing messages
HeaderRemove = This is a list of headers to remove from all outgoing mail
HeaderAdd = This is a list of headers to add to all outging mail
MimeRemove = All messages whose Content-Type matches these mime types will be bounced back to sender
AllowEdit = Comma separated list of usernames, or 'ALL' (all valid users)
MysqlCreate = This will create the necessary MySQL tables if the list configuration above requires it
SelectList = Go back to list selection
0 = Make the list a sublist of list mainlist@host
3 = Set a custom "From:" header for outgoing messsages
4 = Define customized setting for digest creation (ezmlm-tstdig)
5 = Define the email address of the list owner
6 = Use a SQL database
7 = Define a custom path to the database for posting moderators
8 = Define a custom path to the database for remote administrators and subscription moderators
# 9 => not used - it is only an alternative to (8)
}
Misc {
ListSelectDescription {
1 = choose a mailing list from the selection box or click on [Create List]
2 = click on the [Edit] button if you want to edit the selected list
3 = click on the [Delete] button if you want to delete the selected list
}
UnknownAction = Action not yet implemented
ConfirmDelete = Confirm deletion of
SubscribersTo = Subscribers to
Subscribers = subscribers
AdditionalParts = Additional list parts
Posting = Posting
HelpLink = The manual page of ezmlm-idx
Subscription = Subscription
Subscribers = subscribers
RemoteAdmin = Remote Admin
For = for
# as in; "moderators for ..."
CreateNew = Create a New List
ListName = List Name
ListAddress = List Address
ListOptions = List Options
AllowedToEdit = Users allowed to edit this list
EditConfiguration = Edit the List Configuration
Prefix = Subject prefex for outgoing messages
HeaderRemove = Headers to strip from all outgoing mail
ListOptions = Basic List Options
AllowedToEdit = Users allowed to edit this list via web interface:
HeaderRemove = Headers to strip from every outgoing mail
HeaderAdd = Headers to add to all outgoing mail
MimeRemove = Mime types to strip from all outgoing mail
EditTextInfo = The box on the left contains a list of files available in the DIR/text directory. These files are sent out in response to specfic user request, or as part of all outgoing messages<br/>To edit a file, select its name from the box. Then click on the [Edit File] button. Press [cancel] when you have finished editing.
EditingFile = Editing File
EditFileInfo = <big><strong>ezmlm-manage</strong></big><br><tt><strong>&lt;#l#&gt;</strong></tt> The list name<br><tt><strong>&lt;#A#&gt;</strong></tt>The subscription address<br><tt><strong>&lt;#R#&gt;</strong></tt> The address a subscriber must reply to<p/><big><strong>ezmlm-store</strong></big><br><tt><strong>&lt;#l#&gt;</strong></tt> The list name<br/><tt><strong>&lt;#A#&gt;</strong></tt>The acceptance address<br/><tt><strong>&lt;#R#&gt;</strong></tt> The rejection address</ul>
mysqlCreate = Create the MySQL database tables if necessary
SuggestEdit = You will have to edit them manually.
PostModPathWarn = Posting Moderators are stored in a non-standard location
SubModPathWarn = Subscriber Moderators are stored in a non-standard location
RemotePathWarn = Remote Administrators are stored in a non-standard location
MimeReject = Messages containing any of these mime type will be rejected
EditFileInfo {
CommonTags = common tags
ListNameLocal = The local part of the list name
ListNameHost = The host name of the list name
MessageNumber = Number of the respective message
SubAddress = The subscription address
SubReplyAddress = The address a subscriber must reply to
AcceptanceAddress = The acceptance address
RejectionAddress = The rejection address
}
SuggestDefaultPath = You will have to manage them manually.
PostModPathWarn = Posting moderators are stored in a non-standard location
SubModPathWarn = Subscription moderators are stored in a non-standard location
RemoteAdminPathWarn = Remote administrators are stored in a non-standard location
MessageSize.Max = Reject messages exceeding a specified value
MessageSize.Min = Reject messages smaller than a specified value
MessageSize.Unit = bytes
NoFiles = There are no files in the text directory of the mailinglist.
AddSubscriberAddress = Add a new mail address:
AddSubscriberFile = Upload a file containing mail addresses to be added:
SuggestDefaultPath = It is recommended to use the default path for the moderation database. Otherwise you cannot manage the moderators' list with ezmlm-web.
FooterText = a web interface for
NoListsAvailable = I could not find any accessible list for you.
ConfirmDelete = Do you really want to remove this list completely?
}
Introduction {
ConfigAdmin = Remote administrators are (by default) also moderators for subscription and for posting. They may have the permission to (un)subscribe users and to change the text files of the list by sending emails to the mailing list software.
ConfigArchive = The mailing list archive can be accessed by mail. Additionally you will want to create a list archive, if you plan to publish it (e.g. with ezmlm-www).
ConfigProcess = Modify some message properties, before they are distributed to the subscribers.
ConfigMain = Here you find some settings, that did not fit into any other category.
ConfigPosting = The posting configuration determines, who is allowed to send messages to the list and how these mails will be processed.
ConfigSub = Here you may define, who is allowed to subscribe to the list and you can set some details of the subscription process.
ConfigAll = This is the complete list of all available properties of the list. Usually it should be easier to use the topic-based configuration pages, but - of course - this is your choice.
ListDelete = This mailinglist and everything inside of it will be removed completely.
AllowList = Members of the allow list will not receive outgoing mails, but they have the same rights, as normal subscribers. Usually the allow list will contain mail aliases of subscribers.
DenyList = If you want to prevent specific mail addresses from using this list (subscription, posting, ...), then you should add them to the deny list and activate it. This can be useful for annoying people and even for notorious vacation reply users. But since it is fairly easy to fake an mail address, this will not really improve security.
DigestList = Some users of your mailing list may prefer to receive a regular digest instead of all mailing list messages. They will usually not take part in discussions, but aret somehow interested anyway.
ModList = Moderators (for posting or subscription) and remote administrators can be allowed to manage the most important parts of mailing list administration: moderating subscription and posting, changing filtering rules, and managing users. Moderators may even be configured to be the only ones, who are allowed to send mails to the mailing list.
SubscriberList = Subscribers of a mailing list will receive all outgoing message of the list. They may also be allowed to post messages directly or moderated. Usually anonymous users are able to subscribe and unsubscribe without the help of an administrator - but of course, you may configure this to suit your needs.
TextFiles = The selection box contains a list of files available in the DIR/text directory. These files are sent out in response to specfic user requests or as part of all outgoing messages. Edit them as necessary.
EditTextFile = Change this text according to your needs. Maybe you would like to use some of the reserved tags, that are described at the bottom of this page.
}
Legend {
ConfigAdmin = Remote administrator's permissions
ConfigArchve = Archive configuration
ConfigPosting = Posting rules
ConfigSub = Subscription details
ConfigMain = General list configuration
ConfigProcess = Processing rules
ConfigAll = Available properties
ListCreate = Properties of the new list
ListDelete = Remove this mailinglist
RelevantOptions = Useful settings
MembersList = Manage subscribers
MembersAllow = Manage allowed users
MembersDeny = Manage blocked users
MembersDigest = Manage digest subscribers
MembersMod = Manage moderators and administrators
TextFiles = Available text files
TextFileEdit = Edit content of text file
TextFileInfo = Useful placeholders
AvailableLists = Available lists
}
}

View file

@ -1,187 +0,0 @@
# language-specific definitions for ezmlm-web
# in english
# The meanings of the various ezmlm-make command line switches. The default
# ones match the ezmlm-idx 0.4 default ezmlmrc ... Alter them to suit your
# own ezmlmrc. Removing options from this list makes them unavailable
# through ezmlm-web - this could be useful for things like -w
%EZMLM_LABELS = (
# option => ['Short Name',
# 'Long Help Description'],
a => ['Archived',
'Ezmlm will archive new messages'],
b => ['Block archive',
'Only moderators are allowed to access the archive'],
# c => config. This is implicity called, so is not defined here
d => ['Digest',
'Set up a digest list to disseminate digest of the list messages'],
# e => edit. Also implicity called, so not defined here
f => ['Prefix',
'Outgoing subject will be prefixed with the list name'],
g => ['Guard Archive',
'Archive access requests from unrecognized SENDERs will be rejected'],
h => ['Help subscription',
'Subscriptions do not require confirmation'],
i => ['Indexed',
'Indexed for WWW archive access'],
j => ['Jump off',
'Unsubscribe does not require confirmation'],
k => ['Kill',
'Posts from addresses in dir/deny/ are rejected'],
l => ['Subscriber List',
'Remote administrators can request a subscriber list'],
m => ['Message Moderation',
'All incoming messages are moderated'],
n => ['Text Editing',
'Allow remote administrators to edit files in dir/text/'],
o => ['Others rejected',
'Posts from addresses other than moderators are rejected'],
p => ['Public',
'List will respond to administrative requests and archive retrieval'],
q => ['Service Request Address',
'Process commands sent in the subject to local-request@host'],
r => ['Remote Admin',
'Enable remote adminstration of the list'],
s => ['Subscription Moderation',
'Subscriptions to the main list and digest will be moderated'],
t => ['Trailer',
'Add a trailer to outgoing messages'],
u => ['User Posts Only',
'Posts from unrecognized SENDER addresses will be rejected'],
# v => version. I doubt you will really need this ;-)
w => ['Remove Warn',
'Remove the ezmlm-warn(1) invocations from the list setup. It is assumed that ezmlm-warn(1) is run by other means'],
x => ['Extra',
'Strip certain mimetypes, etc'],
# y => not used
# z => not used
# These all take an extra argument, which is the default value to use
0 => ['Sublist',
'Make the list a sublist of list mainlist@host',
'mainlist@host'],
# 1 => not used
# 2 => not used
3 => ['From Address',
'Replace the &quot;From:&quot; header of the message with &quot;From: fromarg&quot;',
'fromarg'],
4 => ['Digest Options',
'Switches for ezmlm-tstdig(1)',
'-t24 -m30 -k64'],
5 => ['List Owner',
'The email address of the list owner',
''],
6 => ['SQL Database',
'SQL database connect information. Requires SQL support',
'host:port:user:password:datab:table'],
7 => ['Message Moderation Path',
'Make /path the path to the database for message moderators, if the list is set up for message moderation',
'/some/full/path'],
8 => ['Subscription Moderation Path',
'Make /path the path to the database for message moderators, if the list is set up for message moderation',
'/some/full/path'],
9 => ['Remote Admin Path',
'Make /path the path to the database for message moderators, if the list is set up for message moderation',
'/some/full/path']
);
# This list defines most of the context sensitive help in ezmlm-web. What
# isn't defined here is the options, which are defined above ... You can
# alter these if you feel something else would make more sense to your users
# Just be careful of what can fit on a screen!
%HELPER = (
# These should be self explainitory
addaddress => 'You may enter any RFC822 compliant email address here, including the comment part. For example; J Random User <jru@on.web.za>',
addaddressfile => 'or you may enter the filename of a plain text file containing multiple RFC822 email addresses, one per line',
moderator => 'Moderators: people who control who may subscribe or post to a list',
deny => 'Deny: A list of addresses that are _never_ allowed to mail the list',
allow => 'Allow: A list of address that are allowed to mail the list even if the configuration otherwise restricts it',
digest => 'Digest: People who will recieve a digest of all messages on the list',
webarch => 'View the web based archive of this list',
config => 'This lets you alter the way the list is set up',
listname => 'This is the name of the list as displayed on the Select Lists screen. It is also the name of the subdirectory that contains the list',
listadd => 'This is the email address of the list. Note that the defaults come from your qmail config. You should just update the local part (before the @)',
webusers => 'NB! At this stage, any users specified here must exist. User creation may be added in future versions',
prefix => 'Text to add to the subject line of all outgoing messages',
headerremove => 'This is a list of headers to remove from all outgoing mail',
headeradd => 'This is a list of headers to add to all outging mail',
mimeremove => 'All messages whose Content-Type matches these mime types will be bounced back to sender',
allowedit => 'Comma separated list of usernames, or <CODE>ALL</CODE> (all valid users)',
mysqlcreate => 'This will create the necessary MySQL tables if the list configuration above requires it'
);
# This defines the captions of each of the buttons in ezmlm-web, and allows
# you to configure them for your own language or taste. Since these are used
# by the switching algorithm it is important that every button has a unique
# caption - ie we can't have two 'Edit' buttons doing different things.
%BUTTON = (
# These MUST all be unique!
create => 'Create',
createlist => 'Create List',
edit => 'Edit',
delete => 'Delete',
deleteaddress => 'Delete Address',
addaddress => 'Add Address',
moderators => 'Moderators',
denylist => 'Deny List',
allowlist => 'Allow List',
digestsubscribers => 'Digest Subscribers',
configuration => 'Configuration',
yes => 'Yes',
no => 'No',
updateconfiguration => 'Update Configuration',
edittexts => 'Edit Texts',
editfile => 'Edit File',
savefile => 'Save File',
webarchive => 'Web Archive',
selectlist => 'Select List',
subscribers => 'Subscribers',
cancel => 'Cancel',
resetform => 'Reset Form',
);
# This defines the fixed text strings that are used in ezmlm-web. By editing
# these along with the button labels and help texts, you can convert ezmlm-web
# to another language :-) If anyone gets arround to doing complete templates
# for other languages I would appreciate a copy so that I can include it in
# future releases of ezmlm-web.
%LANGUAGE = (
nop => 'Action not yet implemented',
chooselistinfo => "<UL><LI>Choose a mailing list from the selection box or click on [$BUTTON{'create'}].<LI>Click on the [$BUTTON{'edit'}] button if you want to edit the selected list.<LI>Click on the [$BUTTON{'delete'}] button if you want to delete the selected list.</UL>",
confirmdelete => 'Confirm deletion of', # list name
subscribersto => 'Subscribers to', # list name
subscribers => 'subscribers',
additionalparts => 'Additional list parts',
posting => 'Posting',
subscription => 'Subscription',
remoteadmin => 'Remote Admin',
for => 'for', # as in; moderators for blahlist
createnew => 'Create a New List',
listname => 'List Name',
listaddress => 'List Address',
listoptions => 'List Options',
allowedtoedit => 'Users allowed to edit this list',
editconfiguration => 'Edit the List Configuration',
prefix => 'Subject prefex for outgoing messages',
headerremove => 'Headers to strip from all outgoing mail',
headeradd => 'Headers to add to all outgoing mail',
mimeremove => 'Mime types to strip from all outgoing mail',
edittextinfo => "The box on the left contains a list of files available in the<BR>DIR/text directory. These files are sent out in response to specfic user request, or as part of all outgoing messages<P>To edit a file, select its name from the box. Then click on the [$BUTTON{'editfile'}] button.<P>Press [$BUTTON{'cancel'}] when you have finished editing.",
editingfile => 'Editing File',
editfileinfo => '<BIG><STRONG>ezmlm-manage</STRONG></BIG><BR><TT><STRONG>&lt;#l#&gt;</STRONG></TT> The list name<BR><TT><STRONG>&lt;#A#&gt;</STRONG></TT> The subscription address<BR><TT><STRONG>&lt;#R#&gt;</STRONG></TT> The address a subscriber must reply to<P><BIG><STRONG>ezmlm-store</STRONG></BIG><BR><TT><STRONG>&lt;#l#&gt;</STRONG></TT> The list name<BR><TT><STRONG>&lt;#A#&gt;</STRONG></TT> The acceptance address<BR><TT><STRONG>&lt;#R#&gt;</STRONG></TT> The rejection address</UL>',
mysqlcreate => 'Create the MySQL database tables if necessary',
);
# === Configuration file ends ===

187
lang/jp.pm Normal file
View file

@ -0,0 +1,187 @@
# language-specific definitions for ezmlm-web
# in Japanese
# The meanings of the various ezmlm-make command line switches. The default
# ones match the ezmlm-idx 0.4 default ezmlmrc ... Alter them to suit your
# own ezmlmrc. Removing options from this list makes them unavailable
# through ezmlm-web - this could be useful for things like -w
%EZMLM_LABELS = (
# option => ['Short Name',
# 'Long Help Description'],
a => ['アーカイブ保存',
'メッセージをアーカイブする'],
b => ['アーカイブブロック',
'モデレータのみアーカイブにアクセス可能'],
# c => config. This is implicity called, so is not defined here
d => ['ダイジェスト作成',
'メッセージのダイジェストリストをセットアップする'],
# e => edit. Also implicity called, so not defined here
f => ['件名にPrefixを付加する',
'件名に指定したPrefix文字を付加する'],
g => ['アーカイブ制限',
'送信者が未登録の場合アーカイブのアクセスを拒否する'],
h => ['登録確認をしない',
'メールによる登録時に確認メールを送らない'],
i => ['インデックス作成',
'WWW アーカイブアクセス用インデックスの作成'],
j => ['登録解除確認をしない',
'メールによる登録解除時に確認メールを送らない'],
k => ['拒否リスト有効',
'拒否リストに登録されたアドレスを拒否する'],
l => ['登録者リスト取出',
'遠隔管理者に登録者リストを送る'],
m => ['投稿の審査',
'全ての投稿メッセージを審査する'],
n => ['テキスト編集',
'遠隔管理者にテキスト編集を許可する'],
o => ['モデレータのみ投稿可',
'モデレータ以外の投稿を拒否する'],
p => ['公開する',
'メールによる登録、登録解除などを有効にする'],
q => ['リクエスト形式有効',
'local-request@host のメールを処理する'],
r => ['遠隔管理',
'遠隔管理を有効にする'],
s => ['登録の審査',
'登録を審査する'],
t => ['Trailerを付加する',
'メッセージの末尾にTrailerを付加する'],
u => ['登録者のみ投稿可',
'登録者の投稿のみを受け付ける'],
# v => version. I doubt you will really need this ;-)
w => ['警告を出さない',
'ezmlm-warn(1) の挙動を抑止する'],
x => ['指定mime typeの削除',
'指定したmime typeの貼付ファイルを削除する'],
# y => not used
# z => not used
# These all take an extra argument, which is the default value to use
0 => ['サブリストにする',
'指定したメインリストのサブリストにする',
'mainlist@host'],
# 1 => not used
# 2 => not used
3 => ['送信者アドレス固定',
'指定した Fromアドレスに固定する',
'fromarg'],
4 => ['ダイジェストオプション',
'ezmlm-tstdig(1) のオプションを指定する',
'-t24 -m30 -k64'],
5 => ['オーナーアドレス',
'リストオーナーのアドレスを指定する',
''],
6 => ['SQLデータベース',
'SQLデータベースへの接続情報',
'host:port:user:password:datab:table'],
7 => ['メッセージモデレータのデータベース',
'メッセージモデレータのデータベースへのフルパス',
'/some/full/path'],
8 => ['登録モデレータのデータベース',
'登録モデレータのデータベースへのフルパス',
'/some/full/path'],
9 => ['遠隔管理者データベース',
'遠隔管理者のデータベースへのフルパス',
'/some/full/path']
);
# This list defines most of the context sensitive help in ezmlm-web. What
# isn't defined here is the options, which are defined above ... You can
# alter these if you feel something else would make more sense to your users
# Just be careful of what can fit on a screen!
%HELPER = (
# These should be self explainitory
addaddress => 'RFC822 に準拠したメールアドレスを入れます 例; J Random User <jru@on.web.za>',
addaddressfile => 'または RFC822 に準拠したアドレスを、1行毎に含むテキストファイルを選択します',
moderator => 'モデレータ: 登録や投稿を審査する人のリスト',
deny => '拒絶リスト: メーリングリストへの参加を拒絶する人のリスト',
allow => '許可リスト: メーリングリストへの参加を特に許可する人のリスト',
digest => 'ダイジェストリスト: 全てのメッセージのダイジェストの受け取りを許可された人のリスト',
webarch => 'ウェブベースのアーカイブリストの閲覧',
config => 'メーリングリストの設定の変更',
listname => 'リスト選択時に表示される名前.また、実際に作成されるサブディレクトリの名前.',
listadd => 'メーリングリストの投稿に使用されるアドレス.特殊な場合を除き、- 以前は変更削除しないこと',
webusers => 'NB! 現在は、ここで指定できるユーザーは実在のユーザーに限る. ユーザーの追加は将来の追加課題',
prefix => '件名の先頭に付加される文字列 #で、メッセージ番号がつきます',
headerremove => 'メッセージから取り除くヘッダーを指定する',
headeradd => 'メッセージに追加するヘッダーを指定する',
mimeremove => '指定した mime type の貼付ファイルをメッセージから削除する',
allowedit => 'ユーザー名のカンマ区切りリストまたは、<CODE>ALL</CODE> (有効な全てのユーザー)',
mysqlcreate => 'MySQLに必要なテーブルを作成する'
);
# This defines the captions of each of the buttons in ezmlm-web, and allows
# you to configure them for your own language or taste. Since these are used
# by the switching algorithm it is important that every button has a unique
# caption - ie we can't have two 'Edit' buttons doing different things.
%BUTTON = (
# These MUST all be unique!
create => '作成',
createlist => 'リスト作成',
edit => '編集',
delete => '削除',
deleteaddress => 'アドレス削除',
addaddress => 'アドレス追加',
moderators => 'モデレータ',
denylist => '拒絶リスト',
allowlist => '許可リスト',
digestsubscribers => 'ダイジェスト登録者',
configuration => '設定',
yes => 'はい',
no => 'いいえ',
updateconfiguration => '設定更新',
edittexts => 'テキスト編集',
editfile => 'ファイル編集',
savefile => 'ファイル保存',
webarchive => 'ウェブアーカイブ',
selectlist => 'リスト選択',
subscribers => '登録者編集',
cancel => 'キャンセル',
resetform => 'リセット',
);
# This defines the fixed text strings that are used in ezmlm-web. By editing
# these along with the button labels and help texts, you can convert ezmlm-web
# to another language :-) If anyone gets arround to doing complete templates
# for other languages I would appreciate a copy so that I can include it in
# future releases of ezmlm-web.
%LANGUAGE = (
nop => 'Action not yet implemented',
chooselistinfo => "<UL><LI>メーリングリストを選択するか、または、 [$BUTTON{'create'}] ボタンを押して作成してください.<LI>変更する場合は、選択して、 [$BUTTON{'edit'}] ボタンを押してください.<LI>削除する場合は、選択して、 [$BUTTON{'delete'}] ボタンを押してください.</UL>",
confirmdelete => '削除確認', # list name
subscribersto => '登録者編集', # list name
subscribers => '登録者',
additionalparts => 'リスト付加情報',
posting => '投稿',
subscription => '登録',
remoteadmin => '遠隔管理',
for => 'for', # as in; moderators for blahlist
createnew => '新規リスト作成',
listname => 'リスト名',
listaddress => 'リストアドレス',
listoptions => 'リストオプション',
allowedtoedit => 'リスト編集許可者',
editconfiguration => 'リスト設定編集',
prefix => '件名に付加する文字 prefix',
headerremove => '削除するヘッダー情報',
headeradd => '追加するヘッダー情報',
mimeremove => '削除する貼付ファイルのmime type',
edittextinfo => "左側にある一覧は、DIR/text の中にあるテキストファイルです. <BR>これらのファイルは、ユーザーのリクエストに対する返信内容,または、配信されるメールに付加される内容です.<P>このファイルを編集するには, 左の一覧から選択して、 [$BUTTON{'editfile'}] ボタンを押します.<P>終了または、中止するときは、[$BUTTON{'cancel'}] ボタンを押します.",
editingfile => 'ファイル編集',
editfileinfo => '<BIG><STRONG>マネージ用</STRONG></BIG><BR><TT><STRONG>&lt;#l#&gt;</STRONG></TT> リスト名<BR><TT><STRONG>&lt;#A#&gt;</STRONG></TT> 投稿者アドレス<BR><TT><STRONG>&lt;#R#&gt;</STRONG></TT> 投稿者が返信するアドレス<P><BIG><STRONG>メッセージ埋め込み用</STRONG></BIG><BR><TT><STRONG>&lt;#l#&gt;</STRONG></TT> リスト名<BR><TT><STRONG>&lt;#A#&gt;</STRONG></TT> 受け取りアドレス<BR><TT><STRONG>&lt;#R#&gt;</STRONG></TT> 拒絶アドレス</UL>',
mysqlcreate => '必要ならば MySQL データベースを作成',
);
# === Configuration file ends ===

40
spec/actions-spec.txt Normal file
View file

@ -0,0 +1,40 @@
subscribers
list
[part]
address_add
list
[part]
[mailaddress_add]
[mailaddressfile]
address_del
list
[part]
mailaddress_del
list_select
list_delete_ask
list
list_delete_do
list
list_create_ask
list_create_do
list
inlocal
inhost
[options]
[sql]
config_ask
list
[config_subset]
config_do
list
[config_subset]
[options]
textfiles
list
textfile_edit
list
file
textfile_save
list
file
content

26
spec/check_languages.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/sh
#
# compare the defined fields of a language file with the english translation
#
# nice for finding unavailable definitions
#
# Parameter: LANGUAGE
# (e.g. "de")
#
set -u
LANG_DIR=$(dirname $0)/../lang
DEFAULT_LANG=en
TMP_FILE1=/tmp/$(basename $0)-$$-1
TMP_FILE2=/tmp/$(basename $0)-$$-2
[ $# -ne 1 ] && echo -e "Syntax: $(basename $0) LANGUAGE\n" >&2 && exit 1
grep "=" "$LANG_DIR/${DEFAULT_LANG}.hdf" | grep -v "^[[:space:]]*#" | cut -f 1 -d "=" >"$TMP_FILE1"
grep "=" "$LANG_DIR/${1}.hdf" | grep -v "^[[:space:]]*#" | cut -f 1 -d "=" >"$TMP_FILE2"
diff -wu "$TMP_FILE1" "$TMP_FILE2"
rm "$TMP_FILE1" "$TMP_FILE2"

47
spec/hdf-spec.txt Normal file
View file

@ -0,0 +1,47 @@
ScriptName
TemplateDir
LanguageDir
Stylesheet
HelpIconURL
Config.Title
Data.Action
Data.ErrorMessage
Data.List.Address
Data.List.File.Name
Data.List.File.Content
Data.List.Files.*
Data.List.hasAllowList
Data.List.hasDenyList
Data.List.hasDigestList
Data.List.hasPostMod
Data.List.hasRemoteAdmin
Data.List.hasSubMod
Data.List.HeaderAdd
Data.List.HeaderRemove
Data.List.MimeRemove
Data.List.MimeReject
Data.List.MsgSize.Max
Data.List.MsgSize.Min
Data.List.Name
Data.List.PartType
Data.List.PostModPath
Data.List.Options
Data.List.Options.[0-9]
Data.List.Prefix
Data.List.RemoteAdminPath
Data.List.Settings.[0-9].value
Data.List.Settings.[0-9].state
Data.List.SubModPath
Data.List.Subscribers.*
Data.List.TrailingText
Data.List.WebUsers
Data.Lists.[0-9]+
Data.ListsCount
Data.HostName
Data.Modules.MySQL
Data.Permissions.Create
Data.Permissions.FileUpload
Data.UserName
Data.WebUser.show
Data.WebUser.UserName

39
template/config_admin.cs Normal file
View file

@ -0,0 +1,39 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ConfigAdmin) ?></h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ConfigAdmin) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ConfigAdmin) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="config_subset" value="admin" />
<ul>
<!-- enable remote administration -->
<li><?cs call:checkbox("r") ?>
<ul>
<!-- administrators may request subscribers list -->
<li><?cs call:checkbox("l") ?></li>
<!-- administrators may edit text files via mail -->
<li><?cs call:checkbox("n") ?></li>
<!-- custom path to administrators database -->
<li><?cs call:setting("8") ?></li>
</ul></li>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>

163
template/config_all.cs Normal file
View file

@ -0,0 +1,163 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ConfigAll) ?></h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ConfigAll) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ConfigAll) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="config_subset" value="all" />
<ul>
<!-- public subsccription and archive -->
<li><?cs call:checkbox("p") ?></li>
<!-- do not require confirmation for subscription -->
<li><?cs call:checkbox("h") ?></li>
<!-- do not require confirmation for unsubscribe -->
<li><?cs call:checkbox("j") ?></li>
<!-- moderate subscription -->
<li><?cs call:checkbox("s") ?></li>
<!-- use deny list -->
<li><?cs call:checkbox("k") ?></li>
<!-- only subscribers may post -->
<li><?cs call:checkbox("u") ?></li>
<!-- require confirmation from poster -->
<li><?cs call:checkbox("y") ?></li>
<!-- posted messages are moderated -->
<li><?cs call:checkbox("m") ?></li>
<!-- only moderators may post -->
<li><?cs call:checkbox("o") ?></li>
<!-- process mailman-style requests -->
<li><?cs call:checkbox("q") ?></li>
<!-- remove ezmlm-warn -->
<li><?cs call:checkbox("w") ?></li>
<!-- archive messages -->
<li><?cs call:checkbox("a") ?></li>
<!-- only moderators may access the archive -->
<li><?cs call:checkbox("b") ?></li>
<!-- block unknown users from archive -->
<li><?cs call:checkbox("g") ?></li>
<!-- remove 'no-archive' header -->
<li><?cs call:checkbox("i") ?></li>
<!-- enable remote administration -->
<li><?cs call:checkbox("r") ?></li>
<!-- administrators may request subscribers list -->
<li><?cs call:checkbox("l") ?></li>
<!-- administrators may edit text files via mail -->
<li><?cs call:checkbox("n") ?></li>
<!-- from address -->
<li><?cs call:setting("3") ?></li>
<!-- list owner address -->
<li><?cs call:setting("5") ?></li>
<!-- mysql database -->
<?cs if:Data.Modules.mySQL ?>
<li><?cs call:setting("6") ?></li><?cs /if ?>
<!-- set main list name -->
<li><?cs call:setting("0") ?></li>
<!-- messsage moderator -->
<li><?cs call:setting("7") ?></li>
<!-- custom path to subscription moderators -->
<li><?cs call:setting("8") ?></li>
<!-- subject prefix -->
<li><?cs call:checkbox("f") ?>
<ul><li><input type="text" name="prefix" value="<?cs
var:html_escape(Data.List.Prefix) ?>" size="70" />
</li></ul></li>
<!-- trailing text -->
<li><?cs call:checkbox("t") ?>
<?cs if:(Data.List.Options.t == 1) ?>
<!-- turn off trailaer, if "-t" is not activated, as it will be
removed during the next config_update -->
<ul><li><textarea name="trailing_text" rows="3" cols="72"><?cs
var:html_escape(Data.List.TrailingText) ?></textarea></li>
</ul></li><?cs /if ?>
<!-- message size limit -->
<li><input type="checkbox" name="msgsize_max_state"
value="selected" id="msgsize_max_state" <?cs
if:Data.List.MsgSize.Max>0 ?>checked="checked"<?cs /if ?> />
<label for="msgsize_max_state"><?cs var:html_escape(Lang.Misc.MessageSize.Max) ?></label>
<ul><li><input type="text" name="msgsize_max_value" size="10"
style="text-align:right" value="<?cs
alt:Data.List.MsgSize.Max ?>30000<?cs /alt ?>" /> <?cs
var:html_escape(Lang.Misc.MessageSize.Unit) ?></li></ul></li>
<li><input type="checkbox" name="msgsize_min_state"
value="selected" id="msgsize_min_state" <?cs
if:Data.List.MsgSize.Min>0 ?>checked="checked"<?cs /if ?> />
<label for="msgsize_min_state"><?cs var:html_escape(Lang.Misc.MessageSize.Min) ?></label>
<ul><li><input type="text" name="msgsize_min_value" size="10"
style="text-align:right" value="<?cs
alt:Data.List.MsgSize.Min ?>2<?cs /alt ?>" /> <?cs
var:html_escape(Lang.Misc.MessageSize.Unit) ?></li></ul></li>
<!-- mimeremove and mimereject -->
<li><?cs call:checkbox("x") ?>
<?cs if:(Data.List.Options.x == 1) ?><ul>
<!-- turn off mimermove, if "-x" is not activated, as it will be
removed during the next config_update -->
<li><?cs var:html_escape(Lang.Misc.MimeReject) ?>:<br/>
<textarea name="mimereject" rows="4" cols="70"><?cs
var:html_escape(Data.List.MimeReject) ?></textarea></li>
<li><?cs var:html_escape(Lang.Misc.MimeRemove) ?>:<br/>
<textarea name="mimeremove" rows="4" cols="70"><?cs
var:html_escape(Data.List.MimeRemove) ?></textarea></li>
</ul><?cs /if ?></li>
<!-- headerremove -->
<li><?cs var:html_escape(Lang.Misc.HeaderRemove) ?>:<br/>
<ul><li><textarea name="headerremove" rows="5" cols="70"><?cs
var:html_escape(Data.List.HeaderRemove) ?></textarea></li></ul></li>
<!-- headeradd -->
<li><?cs var:html_escape(Lang.Misc.HeaderAdd) ?>:<br/>
<ul><li><textarea name="headeradd" rows="5" cols="70"><?cs
var:html_escape(Data.List.HeaderAdd) ?></textarea></li></ul></li>
<!-- ezmlm-web administators -->
<?cs if:Data.WebUser.show && Data.List.WebUsers ?>
<li><?cs var:html_escape(Lang.Misc.AllowedToEdit) ?>
<ul><li><input type="text"
name="webusers" value="<?cs var:html_escape(Data.List.WebUsers)
?>" size="40" /><br/>
</li></ul></li><?cs /if ?>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>

View file

@ -0,0 +1,42 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ConfigArchive) ?></h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ConfigArchive) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ConfigArchive) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="config_subset" value="archive" />
<ul>
<!-- archive messages -->
<li><?cs call:checkbox("a") ?>
<ul>
<!-- subscripiton and archive are public -->
<li><?cs call:checkbox("p") ?></li>
<!-- only moderators may access the archive -->
<li><?cs call:checkbox("b") ?></li>
<!-- block unknown users from archive -->
<li><?cs call:checkbox("g") ?></li>
</ul></li>
<!-- remove 'no-archive' header -->
<li><?cs call:checkbox("i") ?></li>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>

View file

@ -1,58 +0,0 @@
<div id="parts" class="container">
<div class="title">
<!-- TODO: einheitliche Formatierung fuer listaddress - span und css -->
<h2><?cs var:Lang.Misc.For <i><?cs var:Data.ListName ?></i></h2>
<h3><?cs var:Data.ListAddress ?></h3>
<hr>
</div>
<!-- Moderation -->
<?cs if:Data.isModerated ?>
<?cs include:TemplateDir + "modpath_info.cs" ?>
<?cs /if ?>
<!-- form -->
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="<?cs var:Data.Form.State ?>">
<input type="hidden" name="list" value="<?cs var:Data.ListName ?>">
<div class="list">
# TODO: the same as of "display_list.cs"
# list of moderators/administrators
<?cs if:Data.ListCount >0 ?>
<!-- Keep selection box a resonable size - suggested by Sebastian Andersson -->
<?cs if:(Data.ListCount > 25) ?>
<?cs set:Data.ScrollSize = 25 ?>
<?cs else ?>
<?cs set:Data.ScrollSize = Data.ListCount ?>
<?cs /if ?>
<select name="delsubscriber" tabindex="1" multiple="true" size="<?cs var:Data.ScrollSize ?>">
<?cs each:item = Data.List ?>
<!-- TODO: pretty names sind notwendig -->
<option><?cs var:item ?></option>
<?cs /each ?>
</select>
<?cs /if ?>
<div class="add_remove">
<?cs if:Data.ListCount > 0) ?>
<span class="button"><input type="submit"
value="<?cs var:Lang.Buttons.DeleteAddress ?>" name="action"/></span>
<?cs /if ?>
<span class="formfield">
<input type="text" name="addsubscriber" size="40"/> <?cs call:help_icon("AddAddress") ?></span>
<?cs if:FileUploadAllowed ?><span class="formfield">
<input type="filefield" name="addfile" size="20" maxlength="100"/> <?cs call:help_icon("AddAddressFile") ?></span><?cs /if ?>
<span class="button">
<input type="submit" name="action" value="<?cs var:Lang.Buttons.AddAddress ?>"/></span>
<span class="button">
<input type="submit" name="action" value="<?cs var:Lang.Buttons.Subscribers ?>"/></span>
</div>
</form>
</div>

50
template/config_main.cs Normal file
View file

@ -0,0 +1,50 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ConfigMain) ?></h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ConfigMain) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ConfigMain) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="config_subset" value="main" />
<ul>
<!-- list owner address -->
<li><?cs call:setting("5") ?></li>
<!-- set main list name -->
<li><?cs call:setting("0") ?></li>
<!-- process mailman-style requests -->
<li><?cs call:checkbox("q") ?></li>
<!-- remove ezmlm-warn -->
<li><?cs call:checkbox("w") ?></li>
<!-- mysql database -->
<?cs if:Data.Modules.mySQL ?>
<li><?cs call:setting("6") ?></li><?cs /if ?>
<!-- ezmlm-web administators -->
<?cs if:Data.WebUser.show && Data.List.WebUsers ?>
<li><?cs var:html_escape(Lang.Misc.AllowedToEdit) ?>
<ul><li><input type="text"
name="webusers" value="<?cs var:html_escape(Data.List.WebUsers)
?>" size="40" /><br/>
</li></ul></li><?cs /if ?>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>

View file

@ -0,0 +1,73 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ConfigPosting) ?></h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ConfigPosting) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ConfigPosting) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="config_subset" value="posting" />
<ul>
<!-- use deny list -->
<li><?cs call:checkbox("k") ?></li>
<!-- only subscribers may post -->
<li><?cs call:checkbox("u") ?></li>
<!-- require confirmation from poster -->
<li><?cs call:checkbox("y") ?></li>
<!-- posted messages are moderated -->
<li><?cs call:checkbox("m") ?>
<ul>
<!-- only moderators may post -->
<li><?cs call:checkbox("o") ?></li>
<!-- nesage moderator -->
<li><?cs call:setting("7") ?></li>
</ul></li>
<!-- message size limit -->
<li><input type="checkbox" name="msgsize_max_state"
value="selected" id="msgsize_max_state" <?cs
if:Data.List.MsgSize.Max>0 ?>checked="checked"<?cs /if ?> />
<label for="msgsize_max_state"><?cs var:html_escape(Lang.Misc.MessageSize.Max) ?></label>
<ul><li><input type="text" name="msgsize_max_value" size="10"
style="text-align:right" value="<?cs
alt:Data.List.MsgSize.Max ?>30000<?cs /alt ?>" /> <?cs
var:html_escape(Lang.Misc.MessageSize.Unit) ?></li></ul></li>
<li><input type="checkbox" name="msgsize_min_state"
value="selected" id="msgsize_min_state" <?cs
if:Data.List.MsgSize.Min>0 ?>checked="checked"<?cs /if ?> />
<label for="msgsize_min_state"><?cs var:html_escape(Lang.Misc.MessageSize.Min) ?></label>
<ul><li><input type="text" name="msgsize_min_value" size="10"
style="text-align:right" value="<?cs
alt:Data.List.MsgSize.Min ?>2<?cs /alt ?>" /> <?cs
var:html_escape(Lang.Misc.MessageSize.Unit) ?></li></ul></li>
<!-- mimeremove and mimereject -->
<li><?cs call:checkbox("x") ?>
<?cs if:(Data.List.Options.x == 1) ?><ul>
<!-- turn off mimermove, if "-x" is not activated, as it will be
removed during the next config_update -->
<li><?cs var:html_escape(Lang.Misc.MimeReject) ?>:<br/>
<textarea name="mimereject" rows="4" cols="70"><?cs
var:html_escape(Data.List.MimeReject) ?></textarea></li>
</ul></li><?cs /if ?>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>

View file

@ -0,0 +1,65 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ConfigProcess) ?></h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ConfigProcess) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ConfigProcess) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="config_subset" value="processing" />
<ul>
<!-- subject prefix -->
<li><?cs call:checkbox("f") ?>
<ul><li><input type="text" name="prefix" value="<?cs
var:html_escape(Data.List.Prefix) ?>" size="70" />
</li></ul></li>
<!-- trailing text -->
<li><?cs call:checkbox("t") ?>
<?cs if:(Data.List.Options.t == 1) ?>
<!-- turn off mimermove, if "-x" is not activated, as it will be
removed during the next config_update -->
<ul><li><textarea name="trailing_text" rows="3" cols="72"><?cs
var:html_escape(Data.List.TrailingText) ?></textarea></li>
</ul></li><?cs /if ?>
<!-- from address -->
<li><?cs call:setting("3") ?></li>
<!-- mimeremove and mimereject -->
<li><?cs call:checkbox("x") ?>
<?cs if:(Data.List.Options.x == 1) ?><ul>
<!-- turn off mimermove, if "-x" is not activated, as it will be
removed during the next config_update -->
<li><?cs var:html_escape(Lang.Misc.MimeRemove) ?>:<br/>
<textarea name="mimeremove" rows="4" cols="70"><?cs
var:html_escape(Data.List.MimeRemove) ?></textarea></li>
</ul></li><?cs /if ?>
<!-- headerremove -->
<li><?cs var:html_escape(Lang.Misc.HeaderRemove) ?>:<br/>
<ul><li><textarea name="headerremove" rows="5" cols="70"><?cs
var:html_escape(Data.List.HeaderRemove) ?></textarea></li></ul></li>
<!-- headeradd -->
<li><?cs var:html_escape(Lang.Misc.HeaderAdd) ?>:<br/>
<ul><li><textarea name="headeradd" rows="5" cols="70"><?cs
var:html_escape(Data.List.HeaderAdd) ?></textarea></li></ul></li>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>
<?cs include:TemplateDir + '/help_tag_susbtitution.cs' ?>

View file

@ -0,0 +1,42 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ConfigSub) ?></h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ConfigSub) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ConfigSub) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="config_subset" value="subscription" />
<ul>
<!-- public subsccription and archive -->
<li><?cs call:checkbox("p") ?></li>
<!-- do not require confirmation for subscription -->
<li><?cs call:checkbox("h") ?></li>
<!-- do not require confirmation for unsubscribe -->
<li><?cs call:checkbox("j") ?></li>
<!-- moderate subscription -->
<li><?cs call:checkbox("s") ?>
<ul>
<!-- custom path to subscription moderators -->
<li><?cs call:setting("8") ?></li>
</ul></li>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>

View file

@ -1,17 +0,0 @@
<div id="delete" class="container">
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="confirm_delete">
<input type="hidden" name="list" value="<?cs var:Data.ListName ?>">
<div class="title">
<h2><?cs var:Lang.Misc.ConfirmDelete ?> <i><?cs var:Data.ListName ?></i></h2>
<div class="question">
<span class="button"><input type="submit" name="confirm"
value="<?cs var:Lang.Buttons.Yes ?>" tabindex="1"></span>
<span class="button"><input type="submit" name="confirm"
value="<?cs var:Lang.Buttons.No ?>" tabindex="2"></span>
</div>
</div>
</form>
</div>

View file

@ -1,43 +0,0 @@
<div id="create" class="container">
<div class="title">
<h2><?cs var:Lang.Misc.CreateNew ?></h2>
<hr>
</div>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="create">
<div class="input">
<span class="formfield"><?cs var:Lang.Misc.ListName ?>: <input type="text" name="list" size="20"><?cs call:help_icon("ListName") ?></span>
<span class="formfield"><?cs var:Lang.Misc.ListAddress ?>: <input type="text" name="inlocal" size="10" value="<?cs var:Data.UserName ?>">
<?cs call:help_icon("ListName") ?> @ <input type="text" name="inhost" value="<?cs var:Data.HostName ?>" size="30"><?cs call:help_icon("ListAdd") ?></span>
<span class="formfield"><?cs var:Lang.Misc.ListOptions ?>:</span>
<?cs include:TemplateDir + "display_options.cs" ?>
<?cs if:Data.mysqlModule ?>
<!-- Allow creation of mysql table if the module allows it -->
<span class="formfield"><input type="checkbox" name="sql"label="<?cs var:Lang.Misc.mysqlCreate ?>" on="1"><?cs call:help_icon("mysqlCreate") ?></span>
<?cs /if ?>
<?cs if:Data.WebUser.show ?>
<span class="formfield"><?cs var:Lang.Misc.AllowedToEdit ?>: <input type="text"
name="webusers" size="30" value="<?cs var:Data.WebUser.UserName ?>">
<?cs call:help_icon("WebUsers") ?></span>
# TODO: the following span is quite unusual
<span class="help"><?cs var:Lang.Helper.AllowEdit ?></span>
<?cs /if ?>
</div>
<div class="question">
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.Create ?>"></span>
<span class="button"><input type="reset" name="action"
value="<?cs var:Lang.Buttons.ResetForm ?>"></span>
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.Cancel ?>"></span>
</div>
</form>
</div>

View file

@ -1,102 +0,0 @@
<div id="edit" class="container">
<div class="title">
<h2><?cs var:Lang.Misc.SubscribersTo ?> <i><?cs var:Data.ListName ?></i></h2>
<h3><?cs var:Data.ListAddress ?></h3>
<hr>
</div>
<div class="list">
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="edit">
<input type="hidden" name="list" value="<?cs var:Data.ListName ?>">
<!-- scrollbox for list's subscribers -->
<!-- Keep selection box a reasonable size - suggested by Sebastian Andersson -->
<?cs if:(Data.SubscribersCount > 25) ?>
<?cs set:Data.ScrollSize = 25 ?>
<?cs else ?>
<?cs set:Data.ScrollSize = Data.SubscribersCount ?>
<?cs /if ?>
<!-- TODO: this div should float to left - the buttons should be at the right -->
<select name="delsubscriber" tabindex="1" size="<?cs var:Data.ScrollSize ?>" multiple="yes">
<?cs each:item = Data.Subscribers ?>
<option><?cs var:item ?></option>
<?cs /each ?>
</select>
<div class="add_remove">
<?cs if:(Data.SubscribersCount > 0) ?>
<p><?cs var:Data.SubscribersCount ?> <?cs var:Lang.Misc.Subscribers ?></p>
<span class="button"><input type="submit" name="action" tabindex="2"
value="<?cs var:Lang.Buttons.DeleteAddress ?>"></span>
<?cs /if ?>
<!-- TODO: das helper icon ist erst in der naechsten Zeile -->
<p class="formfield"><input type="text" name="addsubscriber"
tabindex="3" size="40"/><?cs call:help_icon("AddAddress") ?></p>
<!-- TODO: eventuell ein BR einfuegen -->
<p class="formfield"><input type="file" name="addfile" size="20"
maxlength="100" tabindex="4"/><?cs call:help_icon("AddAddressFile") ?></p>
<p class="button"><input type="submit" tabindex="5" name="action"
value="<?cs var:Lang.Buttons.AddAddress ?>"/></p>
</div>
<div class="options">
<?cs if:Data.ConfigAvail.Extras ?>
<!-- at least one extra config option is available -->
<h3><?cs var:Lang.Misc.AdditionalParts ?>:</h3>
<?cs /if ?>
<p>
<?cs if:Data.ConfigAvail.Moderation ?>
<!-- moderation -->
<span class="button"><input type="submit" tabindex="6" name="action"
value="<?cs var:Lang.Buttons.Moderators ?>"/>
<?cs call:help_icon("Moderator") ?></span>
<?cs /if ?>
<?cs if:Data.ConfigAvail.DenyList ?>
<!-- deny lists -->
<span class="button"><input type="submit" tabindex="7" name="action"
value="<?cs var:Lang.Buttons.DenyList ?>"/>
<?cs call:help_icon("Deny") ?></span>
<?cs /if ?>
<?cs if:Data.ConfigAvail.AllowList ?>
<!-- allow lists -->
<span class="button"><input type="submit" tabindex="8" name="action"
value="<?cs var:Lang.Buttons.AllowList ?>"/>
<?cs call:help_icon("Allow") ?></span>
<?cs /if ?>
<?cs if:Data.ConfigAvail.Digest ?>
<!-- digest subscribers -->
<span class="button"><input type="submit" tabindex="9" name="action"
value="<?cs var:Lang.Buttons.DigestSubscribers ?>"/>
<?cs call:help_icon("Digest") ?></span>
<?cs /if ?>
</p>
<p>
<!-- web archive -->
<?cs if:Data.ConfigAvail.WebArch ?>
<span class="button"><input type="submit" tabindex="10" name="action"
value="<?cs var:Lang.Buttons.WebArchive ?>"/>
<?cs call:help_icon("WebArch") ?></span>
<?cs /if ?>
<!-- extra config options -->
<span class="button"><input type="submit" tabindex="11" name="action"
value="<?cs var:Lang.Buttons.Configuration ?>"/>
<?cs call:help_icon("Config") ?></span>
<span class="button"><input type="submit" tabindex="12" name="action"
value="<?cs var:Lang.Buttons.SelectList ?>"/>
<?cs call:help_icon("SelectList") ?></span>
</p>
</div>
</form>
</div>
</div>

View file

@ -1,23 +0,0 @@
<!-- $opts -->
<p>
<!-- TODO: das sollte so etwas, wie eine Tabelle werden -->
<?cs each:item = Data.ListOptions ?>
<div class="checkbox"><input type="checkbox"
name="<?cs var:item.name ?>" value="<?cs var:item.name ?>"
<?cs if:item.state ?> checked="checked"<?cs /if ?>>
<?cs var:item.short ?><?cs call:generic_icon(item.long) ?></div>
<?cs /each ?>
</p>
<p>
<?cs each:item = Data.ListSettings ?>
<div class="checkbox"><input type="checkbox" name="<?cs var:item.name ?>"
value="<?cs var:item.name ?>"<?cs if:item.state ?> checked="checked"<?cs /if ?>>
<?cs var:item.short ?>
<span class="formfield"><input type="text" name="<?cs var:item.name ?>-value"
value="<?cs var:item.value ?>" size="30">
<?cs call:generic_icon(item.long) ?></div>
<!-- TODO: die indirekte Namensangabe des textfield is unsauber - sollte nicht
mit dem Code vermischt sein -->
<?cs /each ?>
</p>

View file

@ -1,32 +0,0 @@
<div id="edittext" class="container">
<div class="title">
<h2><?cs var:Lang.Misc.EditingFile ?> <?cs var:Data.File.Name ?></h2>
</div>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="edit_text">
<input type="hidden" name="list" value="<?cs var:Data.ListName ?>">
<input type="hidden" name="file" value="<?cs var:Data.File.Name ?>">
<div class="input">
<span class="formfield"><textarea name="content"
rows="20" cols="72"><?cs var:Data.File.Content ?></textarea></span>
</div>
<div class="info">
<?cs var:Lang.Misc.EditFileInfo ?>
</div>
<div class="question">
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.SaveFile ?>"></span>
<span class="button"><input type="reset" name="action"
value="<?cs var:Lang.Buttons.ResetForm ?>"></span>
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.Cancel ?>"></span>
</div>
</form>
</div>

View file

@ -1,9 +1,8 @@
</td></tr></table>
<table border="0" cellpadding="5" cellspacing="5" align="center" width="99%">
<tr><td bgcolor="#e0e0ff"><font size="-1">
<a href="https://systemausfall.org/toolforge/ezmlm-web" target="_blank">ezmlm-web</a> (v2.3) A web interface to <a href="http://www.ezmlm.org/" target="_blank">ezmlm</a></font>
</td></tr></table>
<div id="footer">
<a href="https://systemausfall.org/toolforge/ezmlm-web">ezmlm-web</a> (v3.0) - <?cs var:html_escape(Lang.Misc.FooterText) ?> <a href="http://www.ezmlm.org/" target="_blank">ezmlm</a>
<br />
</div>
</body>
</html>

9
template/form_common.cs Normal file
View file

@ -0,0 +1,9 @@
<!-- this file should be included in every form with checkboxes and settings -->
<input type="hidden" name="list" value="<?cs var:Data.List.Name ?>" />
<!-- "available_options" is filled by the checkbox macro -->
<input type="hidden" name="options_available" value="<?cs var:available_options ?>" />
<!-- "available_settings" is filled by the setting macro -->
<input type="hidden" name="settings_available" value="<?cs var:available_settings ?>" />

View file

@ -5,21 +5,21 @@
<html>
<head>
<title><?cs var:PageTitle ?></title>
<title><?cs var:Config.PageTitle ?></title>
<meta http-equiv="pragma" content="no-cache" /> <!-- for browsers -->
<meta http-equiv="cache-control" content="no-cache" /> <!-- for proxys -->
<meta http-equiv="content-language" content="<?cs var:Language ?>" />
<meta http-equiv="content-language" content="<?cs var:html_escape(Language) ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Author" content="guy-ezmlm[at]rucus.ru.ac.za" />
<meta http-equiv="Author" content="devel[at]sumpfralle.de" />
<meta http-equiv="expire" content="-1d" />
<link rel="stylesheet" type="text/css" href="<?cs var:Stylesheet ?>" />
</head>
<body>
<p>
<center><table border="3" align="center" cellpadding="5"><tr><td bgcolor="#e0e0ff"><font size=+3 color=#000080><strong>E Z Mailing List Manager</strong></font></td></tr></table></center>
</p>
<table border="0" cellpadding="5" cellspacing="5" align="center" width="99%"><tr><td bgcolor="#e0e0ff">
<div id="oben">
<div id="perm_nav">
<?cs var:Config.PageTitle ?>
</div>
<h1 class="oben">ezmlm-web</h1>
</div>

View file

@ -0,0 +1,21 @@
<fieldset class="info">
<legend><?cs var:html_escape(Lang.Legend.TextFileInfo) ?> </legend>
<ul>
<li><?cs var:html_escape(Lang.Misc.EditFileInfo.CommonTags) ?><ul>
<li><tt>&lt;#l#&gt;</tt> <?cs var:html_escape(Lang.Misc.EditFileInfo.ListNameLocal) ?></li>
<li><tt>&lt;#h#&gt;</tt> <?cs var:html_escape(Lang.Misc.EditFileInfo.ListNameHost) ?></li>
<li><tt>&lt;#n#&gt;</tt> <?cs var:html_escape(Lang.Misc.EditFileInfo.ListNameHost) ?></li>
</ul></li>
<li>ezmlm-manage<ul>
<li><tt>&lt;#A#&gt;</tt> <?cs var:html_escape(Lang.Misc.EditFileInfo.SubAddress) ?></li>
<li><tt>&lt;#R#&gt;</tt> <?cs var:html_escape(Lang.Misc.EditFileInfo.SubReplyAddress) ?></li>
</ul></li>
<li>ezmlm-store<ul>
<li><tt>&lt;#A#&gt;</tt> <?cs var:html_escape(Lang.Misc.EditFileInfo.AcceptanceAddress) ?></li>
<li><tt>&lt;#R#&gt;</tt> <?cs var:html_escape(Lang.Misc.EditFileInfo.RejectionAddress) ?></li>
</ul></li>
</ul>
</fieldset>

View file

@ -1,57 +0,0 @@
<div id="config" class="container">
<div class="title">
<h2><?cs var:Lang.Misc.EditConfiguration ?></h2>
<hr>
</div>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="configuration">
<input type="hidden" name="list" value="<?cs var:Data.ListName ?>">
<div class="info">
<p><?cs var:Lang.Misc.ListName ?>: <em><?cs var:Data.ListName ?></em></p>
<p><?cs var:Lang.Misc.ListAddress ?>: <em><?cs var:Data.ListAddress ?></em></p>
</div>
<div class="input">
<h2><?cs var:Lang.Misc.ListOptions ?> :</h2>
<?cs include:TemplateDir + "display_options.cs" ?>
<?cs if:Data.List.Prefix ?>
<div class="formfield"><?cs var:Lang.Misc.Prefix ?>: <input type="text" name="prefix"
value="<?cs var:Data.List.Prefix ?>" size="12"><?cs call:help_icon("Prefix") ?></div>
<?cs /if ?>
<div class="formfield"><?cs var:Lang.Misc.HeaderRemove ?>:<?cs call:help_icon("HeaderRemove") ?>
<br/><textarea name="headerremove" rows="5" cols="70"><?cs var:Data.List.HeaderRemove ?></textarea></div>
<div class="formfield"><?cs var:Lang.Misc.HeaderAdd ?>:<?cs call:help_icon("HeaderAdd") ?>
<br/><textarea name="headeradd" rows="5" cols="70"><?cs var:Data.List.HeaderAdd ?></textarea></div>
<?cs if:Data.List.MimeRemove ?>
<div class="formfield"><?cs var:Lang.Misc.MimeRemove ?>:<?cs call:help_icon("MimeRemove") ?>
<br/><textarea name="mimeremove" rows="5" cols="70"><?cs var:Data.List.MimeRemove ?></textarea></div>
<?cs /if ?>
<?cs if:Data.List.WebUsers ?>
<div>
<span class="formfield"><?cs var:Lang.Misc.AllowedToEdit ?>: <input type="text"
name="webusers" value="<?cs var:Data.List.WebUsers ?>" size="30">
<cs call:help_icon("WebUsers") ?></span>
<span class="help"><?cs var:Lang.Helper.AllowEdit ?></span>
</div>
<?cs /if ?>
</div>
<div class="question">
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.UpdateConfiguration ?>"></span>
<span class="button"><input type="reset" name="action"
value="<?cs var:Lang.Buttons.ResetForm ?>"></span>
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.Cancel ?>"></span>
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.EditTexts ?>"></span>
</div>
</form>
</div>

40
template/list_create.cs Normal file
View file

@ -0,0 +1,40 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ListCreate) ?></h1>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ListCreate) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<ul>
<li><label for="listname"><?cs var:html_escape(Lang.Misc.ListName) ?>:</label>
<input type="text" name="list" id="listname" size="25"></li>
<li><label for="listaddress"><?cs var:html_escape(Lang.Misc.ListAddress) ?>:</label>
<input type="text" id="listaddress" name="inlocal" size="20"
value="<?cs var:html_escape(Data.UserName)
?>"> @ <input type="text" name="inhost" size="30" value="<?cs
var:html_escape(Data.HostName) ?>"></li>
<?cs if:Data.Modules.MySQL ?>
<!-- Allow creation of mysql table if the module allows it -->
<li><?cs call:setting("6") ?></li><?cs /if ?>
<?cs if:Data.WebUser.show ?>
<li><label for="webusers"><?cs var:html_escape(Lang.Misc.AllowedToEdit) ?></label>
<ul><li><input type="text" id="webusers"
name="webusers" size="30" value="<?cs
var:html_escape(Data.WebUser.UserName) ?>"></li></ul></li>
<?cs /if ?>
</ul>
<!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="action" value="list_create_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.Create) ?></button>
</form>
</fieldset>

20
template/list_delete.cs Normal file
View file

@ -0,0 +1,20 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ListDelete) ?> &quot;<?cs var:html_escape(Data.List.Name) ?>&quot;</h1>
</div>
<div class="introduction">
<p><?cs var:html_escape(Lang.Introduction.ListDelete) ?></p>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.ListDelete) ?> </legend>
<p><?cs var:Lang.Misc.ConfirmDelete ?></p>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="list" value="<?cs var:Data.List.Name ?>" />
<input type="hidden" name="action" value="list_delete_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.ConfirmDeletion) ?></button>
</form>
</fieldset>

39
template/list_select.cs Normal file
View file

@ -0,0 +1,39 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.ListSelect) ?></h1>
</div>
<fieldset>
<legend>
<?cs var:html_escape(Lang.Legend.AvailableLists) ?>
</legend>
<!-- to get a multiple-columns-design, we do strange things ... -->
<?cs set:listnum=subcount(Data.Lists) ?>
<?cs if:listnum > 0 ?>
<?cs if:listnum < 15 ?><?cs set:columns=1 ?><?cs
elif:listnum < 30 ?><?cs set:columns=2 ?><?cs
else ?><?cs set:columns=3 ?><?cs /if ?>
<?cs set:col_len=listnum / columns ?>
<?cs if:listnum % columns > 0 ?><?cs set:col_len = col_len + #1 ?><?cs /if ?>
<table class="list_select">
<?cs loop: x = #0, col_len-1, #1 ?>
<tr>
<?cs loop: y = #0, columns-1, #1 ?>
<td>
<?cs set:listname = Data.Lists[y * col_len + x] ?><?cs
if:listname ?><a href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(listname) ?>&amp;action=subscribers" title="<?cs var:html_escape(listname) ?>"><?cs call:limit_string_len(html_escape(listname),18) ?></a>
<?cs /if ?>
</td>
<?cs /loop ?>
</tr>
<?cs /loop ?>
</table>
<?cs else ?>
<p><?cs var:html_escape(Lang.Misc.NoListsAvailable) ?></p>
<?cs /if ?>
</fieldset>

View file

@ -1,28 +0,0 @@
<div id="textfiles" class="container">
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="list_text">
<input type="hidden" name="list" value="<?cs var:Data.ListName ?>">
<div class="list">
<select name="file" tabindex="1" size="25">
<?cs each:item = Data.Files ?>
<option><?cs var:item ?></option>
<?cs /each ?>
</select>
</div>
<div class="info">
<?cs var:Lang.Misc.EditTextInfo ?>
</div>
<div class="question">
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.EditFile ?>"></span>
<span class="button"><input type="submit" name="action"
value="<?cs var:Lang.Buttons.Cancel ?>"></span>
</div>
</form>
</div>

View file

@ -1,11 +1,53 @@
<?cs def:help_icon(helpname) ?>
<?cs each:item = Lang.Helper ?>
<?cs if:(name(item) == helpname) ?>
&nbsp<img src="<?cs var:HelpIconURL ?>" title="<?cs var:item ?>"/>
<?cs /if ?>
<?cs /each ?>
<?cs /def ?>
<?cs def:checkbox(option)
?><?cs if:Lang.Options[option]
?><input type="checkbox" name="option_<?cs var:option ?>"
id="option_<?cs var:option ?>" value="selected" <?cs
if:(Data.List.Options[option] == 1) ?>checked="checked"<?cs /if ?> />
<label for="option_<?cs var:option ?>"><?cs var:html_escape(Lang.Options[option])
?></label><?cs
set:available_options = available_options + option ?><?cs
else ?>unknown option (<?cs var:option ?>)<?cs /if ?><?cs
/def ?>
<?cs def:generic_icon(helptext) ?>
&nbsp<img src="<?cs var:HelpIconURL ?>" title="<?cs var:helptext ?>"/>
<?cs /def ?>
<?cs def:setting(setting)
?><?cs if:Lang.Settings[setting]
?><input type="checkbox" name="setting_state_<?cs var:setting
?>" id="setting_state_<?cs var:setting ?>" value="selected" <?cs
if:(Data.List.Settings[setting].state == 1) ?>checked="checked"<?cs /if ?> />
<label for="setting_state_<?cs var:setting ?>"><?cs
var:html_escape(Lang.Settings[setting]) ?></label>
<ul><li><input type="text" name="setting_value_<?cs var:setting
?>" id="setting_value_<?cs var:setting ?>" value="<?cs
var:html_escape(Data.List.Settings[setting].value) ?>" size="30" /></li></ul><?cs
set:available_settings = available_settings + setting ?><?cs
else ?>unknown setting (<?cs var:setting ?>)<?cs /if ?><?cs
/def ?>
<?cs def:warning(warntext)
?><div class="warning">
<?cs alt:warntext ?>unknown warning message (<?cs
var:Data.Warning ?>)<?cs /alt ?>
</div><?cs
/def ?>
<?cs def:error(errtext)
?><div class="error">
<?cs alt:errtext ?>unknown error message (<?cs
var:Data.Error ?>)<?cs /alt ?>
</div><?cs
/def ?>
<?cs def:success(succtext)
?><div class="success">
<?cs alt:succtext ?>unknown success message (<?cs
var:Data.Success ?>)<?cs /alt ?>
</div><?cs
/def ?>
<?cs def:limit_string_len(text,limit)
?><?cs set:text2 = text ?><?cs set:len = string.length(text2) ?><?cs
if:len > limit ?><?cs
var:string.slice(text,0,limit / #2 + limit % #2 - 1) ?>...<?cs
var:string.slice(text,len - limit / #2 + #3 - #1, len) ?><?cs
else ?><?cs var:text ?><?cs /if ?><?cs
/def ?>

21
template/main.cs Normal file
View file

@ -0,0 +1,21 @@
<!-- $Id$ -->
<?cs include:TemplateDir + '/macros.cs' ?>
<?cs include:TemplateDir + '/header.cs' ?>
<!-- this ezmlm-web template follows: <?cs var:Data.Action ?> -->
<?cs include:TemplateDir + '/nav.cs' ?>
<div id="main_content">
<?cs if:Data.List.Name ?><div id="info_title"><?cs var:Data.List.Name ?> - <?cs
var:Data.List.Address ?></div><?cs /if ?>
<?cs if:Data.Error ?><?cs call:error(Lang.ErrorMessage[Data.Error]) ?><?cs /if ?>
<?cs if:Data.customError ?><?cs call:error(Data.customError) ?><?cs /if ?>
<?cs if:Data.Warning ?><?cs call:warning(Lang.WarningMessage[Data.Warning]) ?><?cs /if ?>
<?cs if:Data.customWarning ?><?cs call:warning(Data.customWarning) ?><?cs /if ?>
<?cs if:Data.Success ?><?cs call:success(Lang.SuccessMessage[Data.Success]) ?><?cs /if ?>
<?cs include:TemplateDir + '/' + Data.Action + '.cs' ?>
</div> <!-- end of main_content -->
<?cs include:TemplateDir + '/footer.cs' ?>

View file

@ -1,30 +1,20 @@
<div class="info">
<!-- posting moderation -->
<?cs if:Data.isPostMod ?>
<p class="<?cs if:Data.PostModPath ?>warning<?cs else ?>ok<?cs /if ?>"><?cs var:Lang.Misc.Posting ?>
<?cs if:Data.PostModPath ?>
<?cs var:Lang.Misc.PostModPathWarn ?>(<?cs var:Data.PostModPath ?>). <?cs var:SuggestEdit ?>
<?cs /if ?>
</p>
<?cs if:Data.List.PostModPath ?>
<div class="warning">
<?cs var:html_escape(Lang.Misc.PostModPathWarn) ?> (<?cs var:Data.List.PostModPath ?>).<br/><?cs var:html_escape(Lang.Misc.SuggestDefaultPath) ?>
</div>
<?cs /if ?>
<!-- subscription moderation -->
<?cs if:Data.isSubMod ?>
<p class="<?cs if:Data.SubModPath ?>warning<?cs else ?>ok<?cs /if ?>"><?cs var:Lang.Misc.Subscription ?>
<?cs if:Data.SubModPath ?>
<?cs var:Lang.Misc.SubModPathWarn ?>(<?cs var:Data.SubModPath ?>). <?cs var:SuggestEdit ?>
<?cs /if ?>
</p>
<?cs if:Data.List.SubModPath ?>
<div class="warning">
<?cs var:html_escape(Lang.Misc.SubModPathWarn) ?> (<?cs var:Data.List.SubModPath ?>).<br/><?cs var:html_escape(Lang.Misc.SuggestDefaultPath) ?>
</div>
<?cs /if ?>
<!-- remote administration -->
<?cs if:Data.isRemote ?>
<p class="<?cs if:Data.RemotePath ?>warning<?cs else ?>ok<?cs /if ?>"><?cs var:Lang.Misc.RemoteAdmin ?>
<?cs if:Data.RemotePath ?>
<?cs var:Lang.Misc.RemotePathWarn ?>(<?cs var:Data.RemotePath ?>). <?cs var:SuggestEdit ?>
<?cs /if ?>
</p>
<?cs if:Data.List.RemoteAdminPath ?>
<div class="warning">
<?cs var:html_escape(Lang.Misc.RemoteAdminPathWarn) ?> (<?cs var:Data.List.RemoteAdminPath ?>).<br/><?cs var:html_escape(Lang.Misc.SuggestDefaultPath) ?>
</div>
<?cs /if ?>
</div>

73
template/nav.cs Normal file
View file

@ -0,0 +1,73 @@
<!-- $Id$ -->
<div id="nav_bar">
<ul>
<?cs if:(subcount(Data.Lists) > 0) ?>
<li><a <?cs if:(Data.Action == "list_select") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?action=list_select"
title="<?cs var:html_escape(Lang.Menue.ListSelect) ?>"><?cs var:html_escape(Lang.Menue.ListSelect) ?></a>
</li>
<?cs /if ?>
<?cs if:Data.Permissions.Create ?>
<li><a <?cs if:(Data.Action == "list_create") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?action=list_create_ask"
title="<?cs var:html_escape(Lang.Menue.ListCreate) ?>"><?cs var:html_escape(Lang.Menue.ListCreate) ?></a>
</li>
<?cs /if ?>
<?cs if:Data.List.Name ?>
<li><font class="no_link"><?cs var:html_escape(Lang.Menue.Properties) ?> <?cs call:limit_string_len(html_escape(Data.List.Name),25) ?></font><ul>
<li><a <?cs if:((Data.Action == "subscribers") && ((Data.List.PartType == "") || !Data.List.PartType)) ?>class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=subscribers" title="<?cs var:html_escape(Lang.Menue.Subscribers) ?>"><?cs var:html_escape(Lang.Menue.Subscribers) ?></a>
<ul>
<li><a <?cs if:((Data.Action == "subscribers") &&
(Data.List.PartType == "allow")) ?>class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=subscribers&amp;part=allow"><?cs var:html_escape(Lang.Menue.AllowList) ?></a></li>
<li><a <?cs if:((Data.Action == "subscribers") &&
(Data.List.PartType == "deny")) ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=subscribers&amp;part=deny"><?cs var:html_escape(Lang.Menue.DenyList) ?></a></li>
<li><a <?cs if:((Data.Action == "subscribers") &&
(Data.List.PartType == "digest")) ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=subscribers&amp;part=digest"><?cs var:html_escape(Lang.Menue.DigestList) ?></a></li>
<li><a <?cs if:((Data.Action == "subscribers") &&
(Data.List.PartType == "mod")) ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=subscribers&amp;part=mod"><?cs var:html_escape(Lang.Menue.ModList) ?></a></li>
</ul>
</li>
<li><a <?cs if:(Data.Action == "config_main") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=config_ask&amp;config_subset=main" title="<?cs var:html_escape(Lang.Menue.ConfigMain) ?>"><?cs var:html_escape(Lang.Menue.ConfigMain) ?></a>
<ul>
<li><a <?cs if:(Data.Action == "config_subscription") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=config_ask&amp;config_subset=subscription" title="<?cs var:html_escape(Lang.Menue.ConfigSub) ?>"><?cs var:html_escape(Lang.Menue.ConfigSub) ?></a></li>
<li><a <?cs if:(Data.Action == "config_posting") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=config_ask&amp;config_subset=posting" title="<?cs var:html_escape(Lang.Menue.ConfigPost) ?>"><?cs var:html_escape(Lang.Menue.ConfigPost) ?></a></li>
<li><a <?cs if:(Data.Action == "config_processing") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=config_ask&amp;config_subset=processing" title="<?cs var:html_escape(Lang.Menue.ConfigProcess) ?>"><?cs var:html_escape(Lang.Menue.ConfigProcess) ?></a></li>
<li><a <?cs if:(Data.Action == "config_archive") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=config_ask&amp;config_subset=archive" title="<?cs var:html_escape(Lang.Menue.ConfigArchive) ?>"><?cs var:html_escape(Lang.Menue.ConfigArchive) ?></a></li>
<li><a <?cs if:(Data.Action == "config_admin") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=config_ask&amp;config_subset=admin" title="<?cs var:html_escape(Lang.Menue.ConfigAdmin) ?>"><?cs var:html_escape(Lang.Menue.ConfigAdmin) ?></a></li>
<li><a <?cs if:(Data.Action == "config_all") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=config_ask&amp;config_subset=all" title="<?cs var:html_escape(Lang.Menue.ConfigAll) ?>"><?cs var:html_escape(Lang.Menue.ConfigAll) ?></a></li>
</ul></li>
<li><a <?cs if:((Data.Action == "textfiles") || (Data.Action == "textfile_edit")) ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=textfiles" title="<?cs var:html_escape(Lang.Menue.TextFiles) ?>"><?cs var:html_escape(Lang.Menue.TextFiles) ?></a></li>
<li><a <?cs if:(Data.Action == "list_delete") ?> class="nav_active"<?cs /if ?>
href="<?cs var:ScriptName ?>?list=<?cs var:url_escape(Data.List.Name) ?>&amp;action=list_delete_ask" title="<?cs var:html_escape(Lang.Menue.ListDelete) ?>"><?cs var:html_escape(Lang.Menue.ListDelete) ?></a></li>
</ul></li>
<?cs /if ?>
<li><a href="http://www.ezmlm.org/ezman/index.html#toc1" target="_blank" title="<?cs var:html_escape(Lang.Misc.HelpLink) ?>"><?cs var:html_escape(Lang.Menue.Help) ?></a></li>
</ul>
<!-- end of navbar div -->
</div>

View file

@ -1,60 +0,0 @@
<?cs if:(Status == "unknown action") ?>
<!-- the chosen action is not specified -->
<div class="error">
<h1><?cs var:Data.Action ?></h1>
<h2><?cs var:Lang.Misc.UnknownAction ?></h2>
</div>
<?cs else ?>
<!-- print available lists and administrative buttons -->
<div id="main" class="container">
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="state" value="select">
<?cs if:(Data.ListsCount > 0) ?>
<!-- scrollbox for available lists -->
<div class="list">
<!-- Keep selection box a resonable size - suggested by Sebastian Andersson -->
<?cs if:(Data.ListsCount > 25) ?>
<?cs set:Data.ScrollSize = 25 ?>
<?cs else ?>
<?cs set:Data.ScrollSize = Data.ListsCount ?>
<?cs /if ?>
<select name="list" tabindex="1" size="<?cs var:Data.ScrollSize ?>">
<?cs each:item = Data.Lists ?>
<option><?cs var:item ?></option>
<?cs /each ?>
</select>
</div>
<?cs /if ?>
<!-- short description -->
<div class="info">
<ul>
<?cs each:item = Lang.Misc.ListSelectDescription ?>
<li><?cs var:item ?></li>
<?cs /each ?>
</ul>
</div>
<!-- the buttons -->
<div class="add_remove">
<?cs if:(Data.Permissions.Create == 1) ?>
<!-- button "create" -->
<span class="button"><input type="submit" tabindex="2" name="action"
value="<?cs var:Lang.Buttons.Create ?>" /></span>
<?cs /if ?>
<?cs if:(Data.ListsCount > 0) ?>
<!-- buttons: "edit" and "delete" -->
<span class="button"><input type="submit" tabindex="3" name="action"
value="<?cs var:Lang.Buttons.Edit ?>" /></span>
<span class="button"><input type="submit" tabindex="4" name="action"
value="<?cs var:Lang.Buttons.Delete ?>" /></span>
<?cs /if ?>
</div>
</form>
</div>
<?cs /if ?>

135
template/subscribers.cs Normal file
View file

@ -0,0 +1,135 @@
<div class="title">
<h1>
<?cs if:(Data.List.PartType == "allow") ?> <?cs var:html_escape(Lang.Title.AllowList) ?>
<?cs elif:(Data.List.PartType == "deny") ?> <?cs var:html_escape(Lang.Title.DenyList) ?>
<?cs elif:(Data.List.PartType == "digest") ?><?cs var:html_escape(Lang.Title.DigestList) ?>
<?cs elif:(Data.List.PartType == "mod") ?> <?cs var:html_escape(Lang.Title.ModList) ?>
<?cs else ?> <?cs var:html_escape(Lang.Title.SubscriberList) ?>
<?cs /if ?>
</h1>
</div>
<div class="introduction">
<p>
<?cs if:(Data.List.PartType == "allow") ?> <?cs var:html_escape(Lang.Introduction.AllowList) ?>
<?cs elif:(Data.List.PartType == "deny") ?> <?cs var:html_escape(Lang.Introduction.DenyList) ?>
<?cs elif:(Data.List.PartType == "digest") ?><?cs var:html_escape(Lang.Introduction.DigestList) ?>
<?cs elif:(Data.List.PartType == "mod") ?> <?cs var:html_escape(Lang.Introduction.ModList) ?>
<?cs else ?> <?cs var:html_escape(Lang.Introduction.SubscriberList) ?>
<?cs /if ?>
</p>
</div>
<?cs if:Data.List.PartType == 'mod' ?>
<!-- show warnings for wrong moderation paths -->
<?cs include:TemplateDir + "modpath_info.cs" ?>
<?cs /if ?>
<?cs if:((Data.List.PartType == "digest") || (Data.List.PartType == "deny") || (Data.List.PartType == 'mod')) ?>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.RelevantOptions) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="part" value="<?cs var:Data.List.PartType ?>" />
<ul>
<?cs if:(Data.List.PartType == "digest") ?>
<li><?cs call:checkbox("d") ?></li>
<li><?cs call:setting("4") ?></li>
<?cs elif:(Data.List.PartType == "deny") ?>
<li><?cs call:checkbox("k") ?></li>
<?cs elif:(Data.List.PartType == "mod") ?>
<li><?cs call:setting("7") ?></li>
<li><?cs call:setting("8") ?></li>
<?cs /if ?>
<li><!-- include default form values -->
<?cs include:TemplateDir + '/form_common.cs' ?>
<input type="hidden" name="config_subset" value="RESERVED-subscribers" />
<input type="hidden" name="list" value="<?cs var:Data.List.Name ?>" />
<input type="hidden" name="action" value="config_do" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.UpdateConfiguration) ?></button></li>
</ul>
</form>
</fieldset>
<?cs /if ?>
<!-- check, if we should display a subscribers list -->
<?cs if:!Data.List.PartType || (Data.List.PartType == '') ||
(Data.List.PartType == 'allow') ||
(Data.List.PartType == 'mod') ||
((Data.List.PartType == 'deny') && (Data.List.Options.k == 1)) ||
((Data.List.PartType == 'digest') && (Data.List.Options.d == 1)) ?>
<fieldset class="form">
<legend>
<?cs if:(Data.List.PartType == "allow") ?> <?cs var:html_escape(Lang.Legend.MembersAllow) ?>
<?cs elif:(Data.List.PartType == "deny") ?> <?cs var:html_escape(Lang.Legend.MembersDeny) ?>
<?cs elif:(Data.List.PartType == "digest") ?><?cs var:html_escape(Lang.Legend.MembersDigest) ?>
<?cs elif:(Data.List.PartType == "mod") ?> <?cs var:html_escape(Lang.Legend.MembersMod) ?>
<?cs else ?> <?cs var:html_escape(Lang.Legend.MembersList) ?>
<?cs /if ?>
</legend>
<table class="subscribers"><tr>
<?cs if:subcount(Data.List.Subscribers) > 0 ?>
<td><form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="list" value="<?cs var:Data.List.Name ?>" />
<?cs if:Data.List.PartType ?>
<input type="hidden" name="part" value="<?cs var:Data.List.PartType ?>" />
<?cs /if ?>
<ul>
<!-- scrollbox for list's subscribers -->
<!-- Keep selection box a reasonable size - suggested by Sebastian Andersson -->
<?cs if:subcount(Data.List.Subscribers) > 15 ?>
<?cs set:Data.ScrollSize = 15 ?>
<?cs else ?>
<?cs set:Data.ScrollSize = subcount(Data.List.Subscribers) ?>
<?cs /if ?>
<li><select name="mailaddress_del"
size="<?cs var:Data.ScrollSize ?>" multiple="multiple">
<?cs each:item = Data.List.Subscribers ?>
<option value="<?cs var:item.address ?>"><?cs var:item.address ?><?cs if:item.name ?> (<?cs var:item.name ?>)<?cs /if ?></option>
<?cs /each ?>
</select></li>
<li><?cs var:subcount(Data.List.Subscribers) ?> <?cs var:html_escape(Lang.Misc.Subscribers) ?></li>
<li><input type="hidden" name="action" value="address_del" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.DeleteAddress) ?></button></li>
</ul></form></td>
<?cs /if ?>
<td><td><form method="post" action="<?cs var:ScriptName ?>" enctype="multipart/form-data">
<!-- this form has to be "multipart/form-data" to make file upload work -->
<input type="hidden" name="list" value="<?cs var:Data.List.Name ?>" />
<?cs if:Data.List.PartType ?>
<input type="hidden" name="part" value="<?cs var:Data.List.PartType ?>" />
<?cs /if ?>
<ul>
<li><?cs var:html_escape(Lang.Misc.AddSubscriberAddress) ?>
<ul><li><input type="text" name="mailaddress_add" size="40" /></li>
</ul></li>
<?cs if:Data.Permissions.FileUpload ?>
<li><?cs var:html_escape(Lang.Misc.AddSubscriberFile) ?>
<ul><li><input type="file" name="mailaddressfile" size="20"
maxlength="200" /></li>
</ul></li>
<?cs /if ?>
<li><input type="hidden" name="action" value="address_add" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.AddAddress) ?></button></li>
</ul>
</form>
</td></tr>
</table>
</fieldset>
<?cs /if ?>

25
template/textfile_edit.cs Normal file
View file

@ -0,0 +1,25 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.FileEdit) ?> &quot;<?cs var:Data.List.File.Name ?>&quot;</h1>
</div>
<div class="introduction">
<?cs var:html_escape(Lang.Introduction.EditTextFile) ?>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.TextFileEdit) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="list" value="<?cs var:Data.List.Name ?>">
<input type="hidden" name="file" value="<?cs var:Data.List.File.Name ?>">
<p><textarea name="content" rows="13"
cols="72"><?cs var:Data.List.File.Content ?></textarea></p>
<input type="hidden" name="action" value="textfile_save" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.SaveFile) ?></button>
</form>
</fieldset>
<?cs include:TemplateDir + '/help_tag_substitution.cs' ?>

39
template/textfiles.cs Normal file
View file

@ -0,0 +1,39 @@
<div class="title">
<h1><?cs var:html_escape(Lang.Title.FileSelect) ?></h1>
</div>
<div class="introduction">
<?cs var:html_escape(Lang.Introduction.TextFiles) ?>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.TextFiles) ?> </legend>
<form method="post" action="<?cs var:ScriptName ?>" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="list" value="<?cs var:Data.List.Name ?>" />
<ul>
<?cs if:subcount(Data.List.Files) > 0 ?>
<!-- scrollbox for list's subscribers -->
<!-- Keep selection box a reasonable size - suggested by Sebastian Andersson -->
<?cs if:subcount(Data.List.Files) > 15 ?>
<?cs set:Data.ScrollSize = 15 ?>
<?cs else ?>
<?cs set:Data.ScrollSize = subcount(Data.List.Files) ?>
<?cs /if ?>
<li><select name="file" size="<?cs var:Data.ScrollSize ?>">
<?cs each:item = Data.List.Files ?>
<option><?cs var:item ?></option>
<?cs /each ?>
</select></li>
<?cs else ?>
<li><?cs var:html_escape(Lang.Misc.NoFiles) ?></li>
<?cs /if ?>
<li><input type="hidden" name="action" value="textfile_edit" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.EditFile) ?></button></li>
</ul>
</form>
</fieldset>

View file

@ -1,5 +1,5 @@
comm: guy, arb
comm: guy arb
users: arb
members: ALL
ALL: root
ALLOW_CREATE: root, guy
ALLOW_CREATE: root guy