- 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:
plegall 2005-10-18 21:37:08 +00:00
parent 7a37fded51
commit 0aa1bcc73c
3 changed files with 20 additions and 4 deletions

View file

@ -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

View file

@ -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;
?>

View file

@ -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);
}
}
// +-----------------------------------------------------------------------+