| @@ 1003-1016 (lines=14) @@ | ||
| 1000 | // ... and all HTML ones. |
|
| 1001 | preg_match_all('~<img\s+src=(?:")?((?:http://|ftp://|https://|ftps://).+?)(?:")?(?:\s+alt=(?:")?(.*?)(?:")?)?(?:\s?/)?>~i', $sig, $matches2, PREG_PATTERN_ORDER); |
|
| 1002 | // And stick the HTML in the BBC. |
|
| 1003 | if (!empty($matches2)) |
|
| 1004 | { |
|
| 1005 | foreach ($matches2[0] as $ind => $dummy) |
|
| 1006 | { |
|
| 1007 | $matches[0][] = $matches2[0][$ind]; |
|
| 1008 | $matches[1][] = ''; |
|
| 1009 | $matches[2][] = ''; |
|
| 1010 | $matches[3][] = ''; |
|
| 1011 | $matches[4][] = ''; |
|
| 1012 | $matches[5][] = ''; |
|
| 1013 | $matches[6][] = ''; |
|
| 1014 | $matches[7][] = $matches2[1][$ind]; |
|
| 1015 | } |
|
| 1016 | } |
|
| 1017 | // Try to find all the images! |
|
| 1018 | if (!empty($matches)) |
|
| 1019 | { |
|
| @@ 3477-3490 (lines=14) @@ | ||
| 3474 | // ... and all HTML ones. |
|
| 3475 | preg_match_all('~<img\s+src=(?:")?((?:http://|ftp://|https://|ftps://).+?)(?:")?(?:\s+alt=(?:")?(.*?)(?:")?)?(?:\s?/)?>~i', $unparsed_signature, $matches2, PREG_PATTERN_ORDER); |
|
| 3476 | // And stick the HTML in the BBC. |
|
| 3477 | if (!empty($matches2)) |
|
| 3478 | { |
|
| 3479 | foreach ($matches2[0] as $ind => $dummy) |
|
| 3480 | { |
|
| 3481 | $matches[0][] = $matches2[0][$ind]; |
|
| 3482 | $matches[1][] = ''; |
|
| 3483 | $matches[2][] = ''; |
|
| 3484 | $matches[3][] = ''; |
|
| 3485 | $matches[4][] = ''; |
|
| 3486 | $matches[5][] = ''; |
|
| 3487 | $matches[6][] = ''; |
|
| 3488 | $matches[7][] = $matches2[1][$ind]; |
|
| 3489 | } |
|
| 3490 | } |
|
| 3491 | ||
| 3492 | $replaces = array(); |
|
| 3493 | // Try to find all the images! |
|