Changeset 901


Ignore:
Timestamp:
Oct 18, 2005, 11:37:08 PM (19 years ago)
Author:
plg
Message:
  • bug 159 and 166 fixed: parameter "options" for mail() function disabled by default.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/ChangeLog

    r900 r901  
     12005-10-18 Pierrick LE GALL
     2
     3        * bug 159 and 166 fixed: parameter "options" for mail() function
     4        disabled by default.
     5
    162005-10-18 chrisaga
    27
  • trunk/include/config_default.inc.php

    r900 r901  
    179179$conf['users_page'] = 20;
    180180
     181// mail_options: only set it true if you have a send mail warning with
     182// "options" parameter missing on mail() function execution.
     183$conf['mail_options'] = false;
     184
    181185// +-----------------------------------------------------------------------+
    182186// |                               metadata                                |
     
    362366
    363367// +-----------------------------------------------------------------------+
    364 // |                               history                                   |
     368// |                               history                                 |
    365369// +-----------------------------------------------------------------------+
    366370
     
    368372$conf['nb_logs_page'] = 300;
    369373
    370 // history__admin : history admin visits  ?
     374// history_admin : history admin visits  ?
    371375$conf['history_admin'] = false;
    372376
  • trunk/password.php

    r866 r901  
    5353  $content = $infos;
    5454  $content.= "\n\n-- \nPhpWebGallery ".PHPWG_VERSION;
    55  
    56   return mail($to, $subject, $content, $headers, $options);
     55
     56  if ($conf['mail_options'])
     57  {
     58    return mail($to, $subject, $content, $headers, $options);
     59  }
     60  else
     61  {
     62    return mail($to, $subject, $content, $headers);
     63  }
    5764}
    5865
Note: See TracChangeset for help on using the changeset viewer.