Vergleich inc/functions_post.php - 1.10 - 1.16

  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 205Zeile 206
{
$fullurl = $url;
// attempt to make a bit of sense out of their url if they dont type it properly

{
$fullurl = $url;
// attempt to make a bit of sense out of their url if they dont type it properly

	if(strpos($url, "www.") === 0)

	if(!preg_match("#[a-z0-9]+://#i", $fullurl))

	{
$fullurl = "http://".$fullurl;
}

	{
$fullurl = "http://".$fullurl;
}

	if(strpos($url, "ftp.") === 0)
{
$fullurl = "ftp://".$fullurl;
}
if(strpos($fullurl, "://") === false)
{
$fullurl = "http://".$fullurl;
}
if(!$name)
{

	if(!$name)
{









		$name = $url;
}
$name = stripslashes($name);
$url = stripslashes($url);
$fullurl = stripslashes($fullurl);
if($name == $url)

		$name = $url;
}
$name = stripslashes($name);
$url = stripslashes($url);
$fullurl = stripslashes($fullurl);
if($name == $url)

	{

	{

		if(strlen($url) > 55)
{
$name = substr($url, 0, 40)."...".substr($url, -10);

		if(strlen($url) > 55)
{
$name = substr($url, 0, 40)."...".substr($url, -10);

Zeile 240Zeile 233
	{
$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;

	}
}


	}
}