equal
deleted
inserted
replaced
1411 |
1411 |
1412 // External links |
1412 // External links |
1413 // $message = preg_replace('#\[(http|ftp|irc):\/\/([a-z0-9\/:_\.\?&%\#@_\\\\-]+?) ([^\]]+)\\]#', '<a href="\\1://\\2">\\3</a><br style="display: none;" />', $message); |
1413 // $message = preg_replace('#\[(http|ftp|irc):\/\/([a-z0-9\/:_\.\?&%\#@_\\\\-]+?) ([^\]]+)\\]#', '<a href="\\1://\\2">\\3</a><br style="display: none;" />', $message); |
1414 // $message = preg_replace('#\[(http|ftp|irc):\/\/([a-z0-9\/:_\.\?&%\#@_\\\\-]+?)\\]#', '<a href="\\1://\\2">\\1://\\2</a><br style="display: none;" />', $message); |
1414 // $message = preg_replace('#\[(http|ftp|irc):\/\/([a-z0-9\/:_\.\?&%\#@_\\\\-]+?)\\]#', '<a href="\\1://\\2">\\1://\\2</a><br style="display: none;" />', $message); |
1415 |
1415 |
1416 preg_match_all('/\[((https?|ftp|irc):\/\/([^@\]"\':]+)?((([a-z0-9-]+\.)*)[a-z0-9-]+)(\/[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]*(\?(([a-z0-9_-]+)(=[A-z0-9_%\|~`\!@#\$\^&\*\(\):;\.,\/-\[\]]+)?((&([a-z0-9_-]+)(=[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]+)?)*))?)?)?) ([^\]]+)\]/is', $message, $ext_link); |
1416 preg_match_all('/\[((https?|ftp|irc):\/\/([^@\s\]"\':]+)?((([a-z0-9-]+\.)*)[a-z0-9-]+)(\/[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]*(\?(([a-z0-9_-]+)(=[A-z0-9_%\|~`\!@#\$\^&\*\(\):;\.,\/-\[\]]+)?((&([a-z0-9_-]+)(=[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]+)?)*))?)?)?) ([^\]]+)\]/is', $message, $ext_link); |
|
1417 |
|
1418 // die('<pre>' . htmlspecialchars( print_r($ext_link, true) ) . '</pre>'); |
1417 |
1419 |
1418 for ( $i = 0; $i < count($ext_link[0]); $i++ ) |
1420 for ( $i = 0; $i < count($ext_link[0]); $i++ ) |
1419 { |
1421 { |
1420 $text_parser->assign_vars(Array( |
1422 $text_parser->assign_vars(Array( |
1421 'HREF' => $ext_link[1][$i], |
1423 'HREF' => $ext_link[1][$i], |
1423 'TEXT' => $ext_link[16][$i] |
1425 'TEXT' => $ext_link[16][$i] |
1424 )); |
1426 )); |
1425 $message = str_replace($ext_link[0][$i], $text_parser->run(), $message); |
1427 $message = str_replace($ext_link[0][$i], $text_parser->run(), $message); |
1426 } |
1428 } |
1427 |
1429 |
1428 preg_match_all('/\[((https?|ftp|irc):\/\/([^@\]"\':]+)?((([a-z0-9-]+\.)*)[a-z0-9-]+)(\/[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]*(\?(([a-z0-9_-]+)(=[A-z0-9_%\|~`\!@#\$\^&\*\(\):;\.,\/-\[\]]+)?((&([a-z0-9_-]+)(=[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]+)?)*))?)?)?)\]/is', $message, $ext_link); |
1430 preg_match_all('/\[((https?|ftp|irc):\/\/([^@\s\]"\':]+)?((([a-z0-9-]+\.)*)[a-z0-9-]+)(\/[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]*(\?(([a-z0-9_-]+)(=[A-z0-9_%\|~`\!@#\$\^&\*\(\):;\.,\/-\[\]]+)?((&([a-z0-9_-]+)(=[A-z0-9_%\|~`!\!@#\$\^&\*\(\):;\.,\/-]+)?)*))?)?)?)\]/is', $message, $ext_link); |
1429 |
1431 |
1430 for ( $i = 0; $i < count($ext_link[0]); $i++ ) |
1432 for ( $i = 0; $i < count($ext_link[0]); $i++ ) |
1431 { |
1433 { |
1432 $text_parser->assign_vars(Array( |
1434 $text_parser->assign_vars(Array( |
1433 'HREF' => $ext_link[1][$i], |
1435 'HREF' => $ext_link[1][$i], |