mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
- bug 159 and 166 fixed: parameter "options" for mail() function disabled by
default. git-svn-id: http://piwigo.org/svn/trunk@901 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2005-10-18 Pierrick LE GALL
|
||||
|
||||
* bug 159 and 166 fixed: parameter "options" for mail() function
|
||||
disabled by default.
|
||||
|
||||
2005-10-18 chrisaga
|
||||
|
||||
* display : smaller font-size and, as requested, fonts more like 1.4
|
||||
|
||||
@@ -178,6 +178,10 @@ $conf['prefix_thumbnail'] = 'TN-';
|
||||
// Administration>Identification>Users?
|
||||
$conf['users_page'] = 20;
|
||||
|
||||
// mail_options: only set it true if you have a send mail warning with
|
||||
// "options" parameter missing on mail() function execution.
|
||||
$conf['mail_options'] = false;
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | metadata |
|
||||
// +-----------------------------------------------------------------------+
|
||||
@@ -361,13 +365,13 @@ $conf['upload_maxheight_thumbnail'] = 100;
|
||||
$conf['upload_maxwidth_thumbnail'] = 150;
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | history |
|
||||
// | history |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
// nb_logs_page : how many logs to display on a page
|
||||
$conf['nb_logs_page'] = 300;
|
||||
|
||||
// history__admin : history admin visits ?
|
||||
// history_admin : history admin visits ?
|
||||
$conf['history_admin'] = false;
|
||||
|
||||
?>
|
||||
|
||||
11
password.php
11
password.php
@@ -52,8 +52,15 @@ function pwg_mail($to, $from, $infos = '')
|
||||
|
||||
$content = $infos;
|
||||
$content.= "\n\n-- \nPhpWebGallery ".PHPWG_VERSION;
|
||||
|
||||
return mail($to, $subject, $content, $headers, $options);
|
||||
|
||||
if ($conf['mail_options'])
|
||||
{
|
||||
return mail($to, $subject, $content, $headers, $options);
|
||||
}
|
||||
else
|
||||
{
|
||||
return mail($to, $subject, $content, $headers);
|
||||
}
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user