SF.net SVN: postfixadmin:[482] trunk
Brought to you by:
christian_boltz,
gingerdog
|
From: <Gin...@us...> - 2008-11-13 11:56:56
|
Revision: 482
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=482&view=rev
Author: GingerDog
Date: 2008-11-13 11:56:52 +0000 (Thu, 13 Nov 2008)
Log Message:
-----------
patch from int on irc - if $CONF[show_passwords] then do so
Modified Paths:
--------------
trunk/edit-mailbox.php
trunk/templates/edit-mailbox.php
Modified: trunk/edit-mailbox.php
===================================================================
--- trunk/edit-mailbox.php 2008-11-12 22:57:30 UTC (rev 481)
+++ trunk/edit-mailbox.php 2008-11-13 11:56:52 UTC (rev 482)
@@ -20,6 +20,7 @@
*
* tMessage
* tName
+ * tPassword
* tQuota
*
* Form POST \ GET Variables:
@@ -75,7 +76,11 @@
if ('pgsql'==$CONF['database_type']) {
$tActive = ('t'==$user_details['active']) ? 1 : 0;
}
-
+ $tPassword = '';
+ if ($CONF['show_password'] == "YES")
+ {
+ $tPassword = $user_details['password'];
+ }
$result = db_query ("SELECT * FROM $table_domain WHERE domain='$fDomain'");
if ($result['rows'] == 1)
{
Modified: trunk/templates/edit-mailbox.php
===================================================================
--- trunk/templates/edit-mailbox.php 2008-11-12 22:57:30 UTC (rev 481)
+++ trunk/templates/edit-mailbox.php 2008-11-13 11:56:52 UTC (rev 482)
@@ -12,7 +12,7 @@
</tr>
<tr>
<td><?php print $PALANG['pEdit_mailbox_password'] . ":"; ?></td>
- <td><input class="flat" type="password" name="fPassword" /></td>
+ <td><input class="flat" type="password" name="fPassword" value="<?php print htmlspecialchars ($tPassword,ENT_QUOTES); ?>"/></td>
<td><?php print $pEdit_mailbox_password_text; ?></td>
</tr>
<tr>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|