Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $message = preg_replace("#\[img\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#ise", "\$this->mycode_parse_img('http://ac-akimbo.net/rehosts/$2')\n", $message);
- $message = preg_replace("#\[img=([0-9]{1,3})x([0-9]{1,3})\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#ise", "\$this->mycode_parse_img('http://ac-akimbo.net/rehosts/$4', array('$1', '$2'));", $message);
- $message = preg_replace("#\[img align=([a-z]+)\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#ise", "\$this->mycode_parse_img('http://ac-akimbo.net/rehosts/$3', array(), '$1');", $message);
- $message = preg_replace("#\[img=([0-9]{1,3})x([0-9]{1,3}) align=([a-z]+)\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#ise", "\$this->mycode_parse_img('http://ac-akimbo.net/rehosts/$5', array('$1', '$2'), '$3');", $message);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement