Advertisement
lucasgautheron

Untitled

Mar 17th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. $message = preg_replace("#\[img\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#ise", "\$this->mycode_parse_img('http://ac-akimbo.net/rehosts/$2')\n", $message);
  2.             $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);
  3.             $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);
  4.             $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