| @@ 1009-1022 (lines=14) @@ | ||
| 1006 | // ... and all HTML ones. |
|
| 1007 | preg_match_all('~<img\s+src=(?:")?((?:http://|ftp://|https://|ftps://).+?)(?:")?(?:\s+alt=(?:")?(.*?)(?:")?)?(?:\s?/)?>~i', $sig, $matches2, PREG_PATTERN_ORDER); |
|
| 1008 | // And stick the HTML in the BBC. |
|
| 1009 | if (!empty($matches2)) |
|
| 1010 | { |
|
| 1011 | foreach ($matches2[0] as $ind => $dummy) |
|
| 1012 | { |
|
| 1013 | $matches[0][] = $matches2[0][$ind]; |
|
| 1014 | $matches[1][] = ''; |
|
| 1015 | $matches[2][] = ''; |
|
| 1016 | $matches[3][] = ''; |
|
| 1017 | $matches[4][] = ''; |
|
| 1018 | $matches[5][] = ''; |
|
| 1019 | $matches[6][] = ''; |
|
| 1020 | $matches[7][] = $matches2[1][$ind]; |
|
| 1021 | } |
|
| 1022 | } |
|
| 1023 | // Try to find all the images! |
|
| 1024 | if (!empty($matches)) |
|
| 1025 | { |
|
| @@ 3502-3515 (lines=14) @@ | ||
| 3499 | // ... and all HTML ones. |
|
| 3500 | preg_match_all('~<img\s+src=(?:")?((?:http://|ftp://|https://|ftps://).+?)(?:")?(?:\s+alt=(?:")?(.*?)(?:")?)?(?:\s?/)?' . '>~i', $unparsed_signature, $matches2, PREG_PATTERN_ORDER); |
|
| 3501 | // And stick the HTML in the BBC. |
|
| 3502 | if (!empty($matches2)) |
|
| 3503 | { |
|
| 3504 | foreach ($matches2[0] as $ind => $dummy) |
|
| 3505 | { |
|
| 3506 | $matches[0][] = $matches2[0][$ind]; |
|
| 3507 | $matches[1][] = ''; |
|
| 3508 | $matches[2][] = ''; |
|
| 3509 | $matches[3][] = ''; |
|
| 3510 | $matches[4][] = ''; |
|
| 3511 | $matches[5][] = ''; |
|
| 3512 | $matches[6][] = ''; |
|
| 3513 | $matches[7][] = $matches2[1][$ind]; |
|
| 3514 | } |
|
| 3515 | } |
|
| 3516 | ||
| 3517 | $replaces = array(); |
|
| 3518 | // Try to find all the images! |
|