From: mmj Date: Thu, 25 Nov 2004 16:03:18 +0000 (+1100) Subject: PHP updates from Christoph X-Git-Tag: RELEASE_1_1_0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3783873f6f7a0ecd5699d73bec11a6702b955d2;p=thirdparty%2Fmlmmj.git PHP updates from Christoph --- diff --git a/contrib/web/php-admin/README b/contrib/web/php-admin/README index bf4daf0a..855076e3 100644 --- a/contrib/web/php-admin/README +++ b/contrib/web/php-admin/README @@ -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 diff --git a/contrib/web/php-admin/conf/tunables.php b/contrib/web/php-admin/conf/tunables.php index d9809e92..c80ef7d6 100644 --- a/contrib/web/php-admin/conf/tunables.php +++ b/contrib/web/php-admin/conf/tunables.php @@ -1,70 +1,118 @@ diff --git a/contrib/web/php-admin/htdocs/edit.php b/contrib/web/php-admin/htdocs/edit.php index ee5ac264..7a122676 100644 --- a/contrib/web/php-admin/htdocs/edit.php +++ b/contrib/web/php-admin/htdocs/edit.php @@ -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"); diff --git a/contrib/web/php-admin/htdocs/index.php b/contrib/web/php-admin/htdocs/index.php index 1ac57aa3..1329c2c9 100644 --- a/contrib/web/php-admin/htdocs/index.php +++ b/contrib/web/php-admin/htdocs/index.php @@ -39,7 +39,8 @@ $dir = opendir($topdir); while ($file = readdir($dir)) { if (!ereg("^\.",$file)) { - $lists .= "".htmlentities($file)."
\n"; + $lists .= "". + htmlentities($file)."
\n"; } } closedir($dir); diff --git a/contrib/web/php-admin/htdocs/save.php b/contrib/web/php-admin/htdocs/save.php index 03ac8286..22d2bdd1 100644 --- a/contrib/web/php-admin/htdocs/save.php +++ b/contrib/web/php-admin/htdocs/save.php @@ -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");