ik krijg sinds kort een error: Deprecated: Function eregi_replace() is deprecated in /home/zeewaterforum.biz/public_html/prof/classes/ubb.php on line 112
dit is de regel 112
$this->output = eregi_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]", "<a href=\"http://\\2\" onclick=\"target='_blank';\">http://\\2</a>", $this->output);
en dit een stukje omringend script
$this->output = preg_replace('!\[u\](.*?)\[/u\]!', "<u>\\1</u>", $this->output);
$this->output = preg_replace('!\[b\](.*?)\[/b\]!', "<strong>\\1</strong>", $this->output);
$this->output = preg_replace('!\[i\](.*?)\[/i\]!', "<i>\\1</i>", $this->output);
$this->output = preg_replace('!\[s\](.*?)\[/s\]!', "<s>\\1</s>", $this->output);
$this->output = preg_replace('!\[sup\](.*?)\[/sup\]!', "<sup>\\1</sup>", $this->output);
$this->output = preg_replace('!\[sub\](.*?)\[/sub\]!', "<sub>\\1</sub>", $this->output);
$this->output = preg_replace('!\[small\](.*?)\[/small\]!', "<small>\\1</small>", $this->output);
$this->output = preg_replace("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "<span class='color: \\1'>\\2</span>", $this->output);
$this->output = eregi_replace("\[url\][[:space:]]*(http://)?([^\\[]*)[[:space:]]*\[/url\]", "<a href=\"http://\\2\" onclick=\"target='_blank';\">http://\\2</a>", $this->output);
//$this->output = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" onclick=\"target='_blank';\">\\2</a>",$this->output);
$this->output = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href=\"$1\" onclick=\"target='_blank';\">$2</a>", $this->output);
$this->output = preg_replace("#([\n ])([a-z]+?)://([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+]+)#i", "\\1<a href=\"\\2://\\3\" onclick=\"target='_blank';\">\\2://\\3</a>", $this->output);
$this->output = preg_replace("#([\n ])www\.([a-z0-9\-]+)\.([a-z0-9\-.\~]+)((?:/[a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+]*)?)#i", "\\1<a href=\"http://www.\\2.\\3\\4/\" onclick=\"target='_blank';\">www.\\2.\\3\\4</a>", $this->output);
$this->output = preg_replace("#([\n ])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)?[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $this->output);
$this->output = str_replace("[hr]", "<hr style=\"width: 75%\" />", $this->output);
$this->output = str_replace("[line]", "<hr style=\"width: 75%\" />", $this->output);
if($sStatus != 1) $this->output = preg_replace("/\[img](.+?)\[\/img\]/ie", "\$this->image('\\1')", $this->output);
mijn php kennis is gering en heb normaal iemand die dit voor mij doet ( nu dus even niet ) maar als iemand mij een duwtje in de goede richting kan geven of een tip die naar het oplossen leid dan hoor ik dat graag! alvast bedankt
Toevoeging op 26/01/2014 02:34:51:
de rest van de txt zie ik niet staan vandaar dit extra bericht : ik heb gekeken op internet en daar leek het te komen door de php update. ik heb normaal een vriend die mij hier mee helpt aangezien ik nog niet erg veel php kennis heb vergaard. helaas is het voor hem nu even niet mogelijk vandaar deze shout out naar jullie kennis ! alvast bedankt voor de moeite ! mvg rick
1.787 views