From a391f3af31677a53e2a689a313739c9bf806da99 Mon Sep 17 00:00:00 2001 From: tokul Date: Wed, 9 Feb 2005 15:16:43 +0000 Subject: [PATCH] vmailmgrd backend site configuration is in config.php. some documentation updates git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8829 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/change_password/README | 33 +++++++++++++++++-- plugins/change_password/backend/vmailmgrd.php | 15 ++++++++- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/plugins/change_password/README b/plugins/change_password/README index 778ef34c..e1a683ce 100644 --- a/plugins/change_password/README +++ b/plugins/change_password/README @@ -27,12 +27,39 @@ BACKENDS $mysql['server'] = 'remote_servername'; to config.php. -- -- +- merak -AUTHORS + Default settings are supplied in backends/merak.php. +- poppassd + + Default settings are supplied in backends/poppassd.php. + + +- vmailmgrd + + Default settings are supplied in backends/vmailmgrd.php. + + Site configuration is controlled in config.php $vmailmgrd + array. Backend uses 'vmail_inc_path', 'vm_tcphost', + 'vm_tcphost_port' and 'cpw_vmailmgrd_8bitpw' array keys. + + 'vmail_inc_path' sets path to vmail.inc. 'vm_tcphost' sets + vmailmgrd tcp service ip address or dns name. Plugin uses + vmailmgrd socket, if it is not set. 'vm_tcphost_port' sets + port of vmailmrgd service. Plugin uses port 322, if it is + not set. 'cpw_vmailmgrd_8bitpw' controls use of 8bit + passwords. If it is not set, interface does not allow new + passwords with 8bit symbols. + + $vmailmgrd['vmail_inc_path'] setting is required. + +AUTHORS: +merak backend - Edwin van Elk +mysql backend - Thijs Kinkhorst +poppassd backend - Seth Randall +vmailmgrd backend - Tomas Kuliavas $Id$ diff --git a/plugins/change_password/backend/vmailmgrd.php b/plugins/change_password/backend/vmailmgrd.php index 208a677f..17ba19ff 100644 --- a/plugins/change_password/backend/vmailmgrd.php +++ b/plugins/change_password/backend/vmailmgrd.php @@ -20,13 +20,14 @@ * Backend might require functions, that are available only in SquirrelMail * v.1.5.1 and v.1.4.4. * + * @author Tomas Kuliavas * @version $Id$ * @link http://www.vmailmgr.org vmailmgr site * @package plugins * @subpackage change_password */ -/* Backend configuration */ +/* Default backend configuration */ /** * path to vmail.inc @@ -71,6 +72,18 @@ $cpw_vmailmgrd_8bitpw=false; /* end of backend configuration */ +/** load configuration from config.php */ +if ( isset($vmailmgrd) && is_array($vmailmgrd) && !empty($vmailmgrd) ) { + if (isset($vmailmgrd['vmail_inc_path'])) + $vmail_inc_path=$vmailmgrd['vmail_inc_path']; + if (isset($vmailmgrd['vm_tcphost'])) + $vm_tcphost=$vmailmgrd['vm_tcphost']; + if (isset($vmailmgrd['vm_tcphost_port'])) + $vm_tcphost_port=$vmailmgrd['vm_tcphost_port']; + if (isset($vmailmgrd['cpw_vmailmgrd_8bitpw'])) + $cpw_vmailmgrd_8bitpw=$vmailmgrd['cpw_vmailmgrd_8bitpw']; +} + /** * Init change_password plugin hooks. -- 2.25.1