$img_exp = '((https?:)?//[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png)([a-z0-9/?&%;][^\[\]]*)?';
$img_exp = '[^\s\?&;=\#\"<>]+?\.(jpg|jpeg|gif|png)([a-z0-9/?&%;][^\[\]]*)?';
[img]/data/pictures/2/e787eca7f84a6c63b62f05f3009b21f9.jpg[/img]
UPDATE `bb_posts_text` SET `post_text` = REPLACE (post_text, "http://10.86.147.98/picture/", "/picture/");
UPDATE `bb_posts_text` SET `post_text` = REPLACE (post_text, "http://10.86.147.98/data/pictures", "/data/pictures");
UPDATE `bb_posts_html` SET `post_html` = REPLACE (post_html, "http://10.86.147.98/data/pictures", "/data/pictures");
UPDATE `bb_posts_html` SET `post_html` = REPLACE (post_html, "http://10.86.147.98/picture/", "/picture/");
1. [url=/viewtopic.php?t=827]FlylinkDC++[/url]
2. [url=/doc/strongdc_2.42_x64.exe]StrongDC++[/url]
if (!preg_match("#^https?://#isu", $url) && !preg_match("/^#/", $url)) $url = 'http://' . $url;
$text = preg_replace_callback("#\[url\]((?:https?://)?$url_exp)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$text = preg_replace_callback("#\[url\](www\.$url_exp)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$text = preg_replace_callback("#\[url=((?:https?://)?$url_exp)\]([^?\n\t].*?)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$text = preg_replace_callback("#\[url=(www\.$url_exp)\]([^?\n\t].*?)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$text = preg_replace_callback("#\[url\]($url_exp)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$text = preg_replace_callback("#\[url\](www\.$url_exp)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$text = preg_replace_callback("#\[url=($url_exp)\]([^?\n\t].*?)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$text = preg_replace_callback("#\[url=(www\.$url_exp)\]([^?\n\t].*?)\[/url\]#isu", array(&$this, 'url_callback'), $text);
$ann_url = $bb_cfg['bt_announce_url'];
$ann2_url = 'http://torrenthub.ddns.net/bt/announce.php';
$announce = $bb_cfg['ocelot']['enabled'] ? strval($bb_cfg['ocelot']['url'] .$passkey_val. "/announce") : strval($ann_url . "?$passkey_key=$passkey_val");
$announce2 = $bb_cfg['ocelot']['enabled'] ? strval($bb_cfg['ocelot']['url'] .$passkey_val. "/announce") : strval($ann2_url . "?$passkey_key=$passkey_val");
$tor['announce'] = $announce;
$tor['announce'] = $announce2;
array($announce),
array($announce2),