]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
PHP updates from Christoph
authormmj <none@none>
Thu, 25 Nov 2004 16:03:18 +0000 (03:03 +1100)
committermmj <none@none>
Thu, 25 Nov 2004 16:03:18 +0000 (03:03 +1100)
contrib/web/php-admin/README
contrib/web/php-admin/conf/tunables.php
contrib/web/php-admin/htdocs/edit.php
contrib/web/php-admin/htdocs/index.php
contrib/web/php-admin/htdocs/save.php

index bf4daf0a5ba6a185acd2b3e09aeae586e761d0e3..855076e3670c057afc23b958a24b95014ede0f35 100644 (file)
@@ -14,6 +14,14 @@ To use this web-interface you have to:
 
      # chown -R wwwrun /var/spool/mlmmj/mlmmj-test/control/
 
+
+3) If the web server does not run as the same user the mailserver writes as
+   you need to create a group (eg. mlmmj) and add both users to it. The
+   subscribers.d directory then needs to be writable by that group:
+
+     # chgrp -R mlmmj /var/spool/mlmmj/mlmmj-test/subscribers.d/
+     # chmod -R g+w /var/spool/mlmmj/mlmmj-test/subscribers.d/
+
 To enable access control on Apache you have to:
 
 3) Rename dot.htaccess to .htaccess and edit the path inside the file to point
index d9809e92998cd15f5ebece2e756e0b9aa439e9fe..c80ef7d637ff718f05bc66f86425de22dc91c979 100644 (file)
 <?php
 
 mlmmj_boolean("closedlist",
-                         "Closed list",
-                         "If this option is set, subscribtion and unsubscription via mail is disabled.");
+             "Closed list",
+             "Is the list is open or closed. If it's closed subscribtion ".
+             "and unsubscription via mail is disabled. Also note that ".
+             "confirmation is disabled too, so the -C option to mlmmj-sub ".
+             "and mlmmj-unsub is of no use with a closed list.");
 
 mlmmj_boolean("moderated",
-                         "Moderated",
-                         "If this option is set, the emailaddresses in the file listdir/control/moderators will act as moderators for the list.");
+             "Moderated",
+             "If this option is set, the emailaddresses in the file listdir".
+             "/control/moderators will act as moderators for the list.");
 
 mlmmj_list("moderators",
-                  "Moderators",
-                  "If the list is moderated, this is the list of moderators.");
+          "Moderators",
+          "If the list is moderated, this is the list of moderators.");
 
 mlmmj_boolean("tocc",
-                         "To: Cc:",
-                         "If this option is set, the list address does not have to be in the To: or Cc: header of the email to the list.");
-
-mlmmj_boolean("addtohdr",
-                         "Add To: header",
-                         "If this option is set, a To: header including the recipients emailaddress will be added to outgoing mail. ".
-                         "Recommended usage is to remove existing To: headers with delheaders (see below) first.");
+             "To: Cc:",
+             "If this option is set, the list address does not have to be ".
+             "in the To: or Cc: header of the email to the list.");
 
 mlmmj_boolean("subonlypost",
-                         "Subscribers only post",
-                         "If this option is set, only people who are subscribed to the list, are allowed to post to it. ".
-                         "The check is made against the \"From:\" header.");
+             "Subscribers only post",
+             "If this option is set, only people who are subscribed to the ".
+             "list, are allowed to post to it. The check is made against ".
+             "the \"From:\" header.");
 
 mlmmj_string("prefix",
-                        "Prefix",
-                        "The prefix for the Subject: line of mails to the list. This will alter the Subject: line, ".
-                        "and add a prefix if it's not present elsewhere.");
+            "Prefix",
+            "The prefix for the Subject: line of mails to the list. This ".
+            "will alter the Subject: line, and add a prefix if it's not ".
+            "present elsewhere.");
 
 mlmmj_list("owner",
-                  "Owner",
-                  "The emailaddresses in this list will get mails to ".htmlentities($list)."+owner");
+          "Owner",
+          "The emailaddresses in this list will get mails to ".
+          htmlentities($list)."+owner@listdomain.tld");
+
+mlmmj_list("customheaders",
+          "Custom headers",
+          "These headers are added to every mail coming through. This is ".
+          "the place you want to add Reply-To: header in case you want ".
+          "such.");
 
 mlmmj_list("delheaders",
-                  "Delete headers",
-                  "In this file is specified *ONE* headertoken to match pr. line. ".
-                  "If the file consists of: Received: Message-ID: Then all occurences of these headers in incoming list mail will be deleted. ".
-                  "\"From \" and \"Return-Path:\" are deleted no matter what.");
+          "Delete headers",
+          "In this file is specified *ONE* headertoken to match pr. line. ".
+          "If the file consists of: Received: Message-ID: Then all ".
+          "occurences of these headers in incoming list mail will be ".
+          "deleted. \"From\" and \"Return-Path:\" are deleted no matter ".
+          "what.");
 
 mlmmj_list("access",
-                  "Access",
-                  "If this option is set, all headers of a post to the list is matched against the rules. The first rule to match wins. ".
-                  "See README.access for syntax and examples. NOTE: If this field is empty access control is *disabled*, ".
-                  "unlike having an empty control/access file.");
+          "Access",
+          "If this option is set, all headers of a post to the list is ".
+          "matched against the rules. The first rule to match wins. See ".
+          "README.access for syntax and examples.");
 
 mlmmj_string("memorymailsize",
-                        "Memory mail size",
-                        "Here is specified in bytes how big a mail can be and still be prepared for sending in memory. ".
-                        "It's greatly reducing the amount of write system calls to prepare it in memory before sending it, ".
-                        "but can also lead to denial of service attacks. Default is 16k (16384 bytes).");
+            "Memory mail size",
+            "Here is specified in bytes how big a mail can be and still be ".
+            "prepared for sending in memory. It's greatly reducing the ".
+            "amount of write system calls to prepare it in memory before ".
+            "sending it, but can also lead to denial of service attacks. ".
+            "Default is 16k (16384 bytes).");
+
+mlmmj_boolean("addtohdr",
+             "Add To: header",
+             "If this option is set, a To: header including the recipients ".
+             "emailaddress will be added to outgoing mail. Recommended ".
+             "usage is to remove existing To: headers with delheaders ".
+             "(see above) first.");
 
 mlmmj_string("relayhost",
-                        "Relay host",
-                        "The host specified (IP address og domainname, both works) in this file will be used for relaying the mail sent to the list. ".
-                        "Defaults to 127.0.0.1.");
+            "Relay host",
+            "The host specified (IP address og domainname, both works) in ".
+            "this file will be used for relaying the mail sent to the list. ".
+            "Defaults to 127.0.0.1.");
 
 mlmmj_boolean("notifysub",
-                         "Notify subscribers",
-                         "If this option is set, the owner(s) will get a mail with the address of someone sub/unsubscribing to a mailinglist.");
+             "Notify subscribers",
+             "If this option is set, the owner(s) will get a mail with the ".
+             "address of someone sub/unsubscribing to a mailinglist.");
+
+mlmmj_string("digestinterval",
+            "Digest interval",
+            "This option specifies how many seconds will pass before the ".
+            "next digest is sent. Defaults to 604800 seconds, which is 7 ".
+            "days.");
+
+mlmmj_string("digestmaxmails",
+            "Max. digest mails",
+            "This option specifies how many mails can accumulate before ".
+            "digest sending is triggered. Defaults to 50 mails, meaning ".
+            "that if 50 mails arrive to the list before digestinterval have ".
+            "passed, the digest is delivered.");
 
 mlmmj_string("bouncelife",
-                         "Bouncing lifetime",
-                         "Here is specified for how long time in seconds an address can bounce before it's unsubscribed. Defaults ".
-                         "to 432000 seconds, which is 5 days.");
+            "Bouncing lifetime",
+            "Here is specified for how long time in seconds an address can ".
+            "bounce before it's unsubscribed. Defaults to 432000 seconds, ".
+            "which is 5 days.");
+
+mlmmj_boolean("noarchive",
+             "No archive",
+             "If this option is set, the mails won't be saved in the ".
+             "archive but simply deleted");
+
+mlmmj_boolean("nosubconfirm",
+             "No confirmation on subscription",
+             "If this option is set, no mail confirmation is needed to ".
+             "subscribe to the list. This should in principle never ever be ".
+             "used, but there is times on local lists etc. where this is ".
+             "useful. HANDLE WITH CARE!");
 
 ?>
index ee5ac2644b6921b9d1cc4590d127b1c6fa1af502..7a1226766a88a70016fecc84e5861c0315659f03 100644 (file)
@@ -97,6 +97,9 @@ $tpl = new FastTemplate($templatedir);
 
 $list = $HTTP_GET_VARS["list"];
 
+if(!isset($list))
+die("no list specified");
+
 if(!is_dir($topdir."/".$list))
 die("non-existent list");
 
index 1ac57aa3aa8f48e29a8d470a056cf88cb347291c..1329c2c90a0259dcb68fa1a29e6232d56a21255e 100644 (file)
@@ -39,7 +39,8 @@ $dir = opendir($topdir);
 while ($file = readdir($dir)) {
     if (!ereg("^\.",$file))
     {
-       $lists .= "<a href=\"edit.php?list=".urlencode($file)."\">".htmlentities($file)."</a><br />\n";
+       $lists .= "<a href=\"edit.php?list=".urlencode($file)."\">".
+           htmlentities($file)."</a><br />\n";
     }
 }
 closedir($dir); 
index 03ac8286dc043038b736195dd2e6730d442e2dbe..22d2bdd15de5b8e0986e413d8f90a3b0e446789e 100644 (file)
@@ -72,6 +72,9 @@ $tpl = new FastTemplate($templatedir);
 
 $list = $HTTP_POST_VARS["list"];
 
+if(!isset($list))
+die("no list specified");
+
 if(!is_dir($topdir."/".$list))
 die("non-existent list");