[Openupload-svn-update] SF.net SVN: openupload:[219] trunk
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2009-01-15 12:56:36
|
Revision: 219
http://openupload.svn.sourceforge.net/openupload/?rev=219&view=rev
Author: tsdogs
Date: 2009-01-15 12:12:21 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
Add option to not send password in the notification e-mail.
Modified Paths:
--------------
trunk/plugins/password.inc.php
trunk/templates/default/plugins/password/uploadOptions.tpl
Modified: trunk/plugins/password.inc.php
===================================================================
--- trunk/plugins/password.inc.php 2009-01-15 11:55:11 UTC (rev 218)
+++ trunk/plugins/password.inc.php 2009-01-15 12:12:21 UTC (rev 219)
@@ -17,8 +17,12 @@
global $_POST;
if (isset($_POST['protect']) and $acl=='enable') {
- $finfo[0]['plainpassword'] = $_POST['protect'];
$finfo[0]['password'] = crypt($_POST['protect']);
+ if (isset($_POST['protect_notify'])) { /* want the e-mail to include the password? */
+ $finfo[0]['plainpassword'] = $_POST['protect'];
+ } else {
+ $finfo[0]['plainpassword']='';
+ }
} else {
$finfo[0]['password'] = crypt("");
$finfo[0]['plainpassword'] = "";
Modified: trunk/templates/default/plugins/password/uploadOptions.tpl
===================================================================
--- trunk/templates/default/plugins/password/uploadOptions.tpl 2009-01-15 11:55:11 UTC (rev 218)
+++ trunk/templates/default/plugins/password/uploadOptions.tpl 2009-01-15 12:12:21 UTC (rev 219)
@@ -1 +1,2 @@
-<tr><td>{tr}Password protect{/tr}:</td><td><input type="password" size="30" name="protect"></td></tr>
\ No newline at end of file
+<tr><td>{tr}Password protect{/tr}:</td><td><input type="password" size="30" name="protect"></td></tr>
+<tr><td>{tr}Send password in e-mail{/tr}:</td><td><input type="checkbox" value="1" name="protect_notify" checked></td></tr>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|