Changeset 1354 for branches/1.2
- Timestamp:
- 03/20/10 04:35:02 (3 years ago)
- Location:
- branches/1.2
- Files:
-
- 7 edited
-
content/plugins/messaging/libs/MessagingFuncs.php (modified) (1 diff)
-
content/plugins/submit/libs/SubmitFunctions.php (modified) (1 diff)
-
content/plugins/user_signin/readme.txt (modified) (1 diff)
-
content/plugins/user_signin/user_signin.php (modified) (3 diffs)
-
content/plugins/users/libs/UserFunctions.php (modified) (1 diff)
-
functions/funcs.strings.php (modified) (2 diffs)
-
libs/EmailFunctions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/content/plugins/messaging/libs/MessagingFuncs.php
r1253 r1354 195 195 196 196 // Hi username... 197 $email_message = "Hi ". $this->to . "," . $skip_line;197 $email_message = $h->lang['messaging_email_greeting'] . $this->to . "," . $skip_line; 198 198 199 199 // You've been sent a private message from... -
branches/1.2/content/plugins/submit/libs/SubmitFunctions.php
r1208 r1354 703 703 $encoding=trim($matches[1]); 704 704 705 //you need iconv to encode to utf-8 706 if (function_exists("iconv")) 707 { 708 if (strcasecmp($encoding, 'utf-8') != 0) { 709 //convert the html code into utf-8 whatever encoding it is using 710 $string=iconv($encoding, 'UTF-8//IGNORE', $string); 711 } 705 //you need iconv to encode to utf-8 (if not, use custom iconv in funcs.strings.php) 706 if (strcasecmp($encoding, 'utf-8') != 0) { 707 //convert the html code into utf-8 whatever encoding it is using 708 $string=iconv($encoding, 'UTF-8//IGNORE', $string); 712 709 } 713 710 } -
branches/1.2/content/plugins/user_signin/readme.txt
r1247 r1354 15 15 Changelog 16 16 --------- 17 v.0.4 2010/03/20 - Nick - Fix for emails when using SMTP email authentication 17 18 v.0.3 2010/02/26 - Nick - New plugin hook in the registration form; mail sent through Hotaru's email function 18 19 v.0.2 2010/02/23 - Nick - Throws out killspammed, banned or suspended users when checking the cookie -
branches/1.2/content/plugins/user_signin/user_signin.php
r1247 r1354 3 3 * name: User Signin 4 4 * description: Provides user registration and login 5 * version: 0. 35 * version: 0.4 6 6 * folder: user_signin 7 7 * type: signin … … 589 589 $body .= $h->lang['user_signin_register_emailconf_body_sign']; 590 590 $to = $user->email; 591 $headers = "From: " . SITE_EMAIL . "\r\nReply-To: " . SITE_EMAIL . "\r\nX-Priority: 3\r\n";592 591 593 592 /* … … 598 597 */ 599 598 600 $h->email($to, $subject, $body , $headers);599 $h->email($to, $subject, $body); 601 600 } 602 601 -
branches/1.2/content/plugins/users/libs/UserFunctions.php
r1353 r1354 123 123 $to = $mod['email']; 124 124 125 if (SMTP == 'true') { 126 $recipients['To'] = $to; 127 $h->email($recipients, $subject, $body); 128 } else { 129 $h->email($to, $subject, $body); 130 } 125 $h->email($to, $subject, $body); 131 126 } 132 127 -
branches/1.2/functions/funcs.strings.php
r1100 r1354 558 558 559 559 560 if(!function_exists("iconv")) 561 { 562 /** 563 * Convert string to requested character encoding if iconv library not installed 564 * 565 * @param string $from 566 * @param string $to 567 * @param string $string 568 * @return string 569 * @link http://www.jpfox.fr/?post/2007/07/25/165-alternative-a-la-fonction-php-iconv 570 */ 571 function iconv($from, $to, $string) 572 { 573 $converted = htmlentities($string, ENT_NOQUOTES, $from); 574 $converted = html_entity_decode($converted, ENT_NOQUOTES, $to); 575 return $converted; 576 } 577 } 578 579 580 /** 581 * Count urls within a block of text 582 * 583 * @return int 584 * @link http://www.liamdelahunty.com/tips/php_url_count_check_for_comment_spam.php 585 */ 586 function countUrls($text = '') 587 { 588 //$http = substr_count($text, "http"); 589 $href = substr_count($text, "href"); 590 $url = substr_count($text, "[url"); 591 592 return $href + $url; 593 } 594 595 560 596 /** 561 597 * Strip foreign characters from latin1/utf8 database yuckiness … … 573 609 return $str; 574 610 } 575 576 577 /**578 * Count urls within a block of text579 *580 * @return int581 * @link http://www.liamdelahunty.com/tips/php_url_count_check_for_comment_spam.php582 */583 function countUrls($text = '')584 {585 //$http = substr_count($text, "http");586 $href = substr_count($text, "href");587 $url = substr_count($text, "[url");588 589 return $href + $url;590 }591 611 ?> -
branches/1.2/libs/EmailFunctions.php
r1353 r1354 66 66 if (SMTP == 'true') { 67 67 // note: this overwrites headers passed to this function: 68 $this->headers = array ('From' => $this->from, 'To' => $this->to['To'], 'Subject' => $this->subject); 68 if (is_array($this->to)) { $to = $this->to['To']; } else { $to = $this->to; } 69 $this->headers = array ('From' => $this->from, 'To' => $to, 'Subject' => $this->subject); 69 70 } else { 70 71 // if not using SMTP and no headers passed to this function, use default
Note: See TracChangeset
for help on using the changeset viewer.