includes/functions.php
changeset 472 bc4b58034f4d
parent 468 194a19711346
child 473 518bc2b214f1
equal deleted inserted replaced
471:7906fb190fc1 472:bc4b58034f4d
  1023     // Something we really didn't take into consideration originally
  1023     // Something we really didn't take into consideration originally
  1024     $header_array = explode("\r\n", $headers);
  1024     $header_array = explode("\r\n", $headers);
  1025     @reset($header_array);
  1025     @reset($header_array);
  1026 
  1026 
  1027     $headers = '';
  1027     $headers = '';
       
  1028     $cc = '';
       
  1029     $bcc = '';
  1028     while(list(, $header) = each($header_array))
  1030     while(list(, $header) = each($header_array))
  1029     {
  1031     {
  1030       if (preg_match('#^cc:#si', $header))
  1032       if (preg_match('#^cc:#si', $header))
  1031       {
  1033       {
  1032         $cc = preg_replace('#^cc:(.*)#si', '\1', $header);
  1034         $cc = preg_replace('#^cc:(.*)#si', '\1', $header);
  3099  * @param string Password to test
  3101  * @param string Password to test
  3100  * @param null Will be filled with an array of debugging info
  3102  * @param null Will be filled with an array of debugging info
  3101  * @return int
  3103  * @return int
  3102  */
  3104  */
  3103 
  3105 
  3104 function password_score($password, &$debug)
  3106 function password_score($password, &$debug = false)
  3105 {
  3107 {
  3106   if ( !is_string($password) )
  3108   if ( !is_string($password) )
  3107   {
  3109   {
  3108     return -10;
  3110     return -10;
  3109   }
  3111   }