From 2cb1563f63386b35a69e460051aa9b4a2851d104 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 30 May 2012 07:30:44 -0400
Subject: [PATCH] - Added (clickable) placeholders to client messaging function. - Added check so that the client password isn't inserted into the message (for security reasons).

---
 interface/web/sites/form/webdav_user.tform.php |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/interface/web/sites/form/webdav_user.tform.php b/interface/web/sites/form/webdav_user.tform.php
index 35132fe..5d423b6 100644
--- a/interface/web/sites/form/webdav_user.tform.php
+++ b/interface/web/sites/form/webdav_user.tform.php
@@ -73,10 +73,9 @@
 			'datatype'	=> 'INTEGER',
 			'formtype'	=> 'SELECT',
 			'default'	=> '',
-			'datasource'	=> array ( 	'type'	=> 'SQL',
-										'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain",
-										'keyfield'=> 'domain_id',
-										'valuefield'=> 'domain'
+			'datasource'	=> array ( 	'type'	=> 'CUSTOM',
+										'class'=> 'custom_datasource',
+										'function'=> 'webdav_domains'
 									 ),
 			'value'		=> ''
 		),
@@ -96,8 +95,8 @@
 		),
 		'password' => array (
 			'datatype'	=> 'VARCHAR',
+			'encryption' => 'CLEARTEXT', 
 			'formtype'	=> 'PASSWORD',
-			'encryption' => 'CRYPT',
 			'default'	=> '',
 			'value'		=> '',
 			'width'		=> '30',

--
Gitblit v1.9.1