Vergleich inc/functions_post.php - 1.10 - 1.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 97Zeile 97
		$message = preg_replace("#\[list=(a|A|i|I|1)\](.*?)\[/list\]#esi", "dolist('$2', '$1')", $message);
}


		$message = preg_replace("#\[list=(a|A|i|I|1)\](.*?)\[/list\]#esi", "dolist('$2', '$1')", $message);
}


	if($allowimgcode)

	if($allowimgcode != "no")

	{

	{

		$message = preg_replace("#\[img\]([a-z]+?://){1}(.+?)\[/img\]#i", "<img src=\"$1$2\" border=\"0\" alt=\"\" />", $message);
$message = preg_replace("#\[img=([0-9]{1,3})x([0-9]{1,3})\]([a-z]+?://){1}(.+?)\[/img\]#i", "<img src=\"$3$4\" style=\"border: 0; width: $1px; height: $2px;\" alt=\"\" />", $message);

		$message = preg_replace("#\[img\](https?://([^<>\"']+?))\[/img\]#i", "<img src=\"$1\" border=\"0\" alt=\"\" />", $message);
$message = preg_replace("#\[img=([0-9]{1,3})x([0-9]{1,3})\](https?://([^<>\"']+?))\[/img\]#i", "<img src=\"$3\" style=\"border: 0; width: $1px; height: $2px;\" alt=\"\" />", $message);

	}
$message = doautourl($message);
/* Used to be <hr size="1"> but users should get the chance to set the size in their CSS */

	}
$message = doautourl($message);
/* Used to be <hr size="1"> but users should get the chance to set the size in their CSS */

Zeile 130Zeile 130
{
global $lang;
$message = preg_replace('#^/me (.*)$#im', "<span style=\"color: red;\">* $username \\1</span>", $message);

{
global $lang;
$message = preg_replace('#^/me (.*)$#im', "<span style=\"color: red;\">* $username \\1</span>", $message);

 
	$username = str_replace("'", "\\'", $username);

	$message = preg_replace('#^/slap (.*)#iem', "'<span style=\"color: red;\">* $username $lang->slaps '.str_replace('<br />', '', '\\1').' $lang->with_trout</span><br />'", $message);
return $message;
}

	$message = preg_replace('#^/slap (.*)#iem', "'<span style=\"color: red;\">* $username $lang->slaps '.str_replace('<br />', '', '\\1').' $lang->with_trout</span><br />'", $message);
return $message;
}

Zeile 240Zeile 241
	{
$name = $email;
}

	{
$name = $email;
}

	if(preg_match("/^(.+)@[a-zA-Z0-9-]+\.[a-zA-Z0-9.-]+$/si", $email))

	if(preg_match("/^([a-zA-Z0-9-_\+\.]+?)@[a-zA-Z0-9-]+\.[a-zA-Z0-9\.-]+$/si", $email))

	{
return "<a href=\"mailto:$email\">".$name."</a>";

	{
return "<a href=\"mailto:$email\">".$name."</a>";

 
	}
else
{
return $name;

	}
}


	}
}