Vergleich inc/functions_posting.php - 1.8.9 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49
	foreach($smatches[0] as $id => $match)
{
$soffsets[] = $match[1];

	foreach($smatches[0] as $id => $match)
{
$soffsets[] = $match[1];

 
	}
$first_token = 0;
if(isset($soffsets[0])) {
$first_token = $soffsets[0];

	}
// whilst we loop, also remove unnecessary end tokens at the start of string

	}
// whilst we loop, also remove unnecessary end tokens at the start of string

	$first_token = $soffsets[0];

 
	foreach($ematches[0] as $id => $match)
{
if($match[1] > $first_token)

	foreach($ematches[0] as $id => $match)
{
if($match[1] > $first_token)

Zeile 111Zeile 114
	}
ksort($good_offsets);


	}
ksort($good_offsets);






	// we now have a list of all the ordered tokens, ready to go through
$depth = 0;
$remove_regions = array();

	// we now have a list of all the ordered tokens, ready to go through
$depth = 0;
$remove_regions = array();

Zeile 142Zeile 145
		$newtext .= substr($text, $cpy_start, $region[0]-$cpy_start);
$cpy_start = $region[1]+8; // 8 = strlen('[/quote]')
// clean up newlines

		$newtext .= substr($text, $cpy_start, $region[0]-$cpy_start);
$cpy_start = $region[1]+8; // 8 = strlen('[/quote]')
// clean up newlines

		$next_char = $text{$region[1]+8};

		$next_char = $text[$region[1]+8];

		if($next_char == "\r" || $next_char == "\n")
{
++$cpy_start;

		if($next_char == "\r" || $next_char == "\n")
{
++$cpy_start;

			if($next_char == "\r" && $text{$region[1]+9} == "\n")

			if($next_char == "\r" && $text[$region[1]+9] == "\n")

			{
++$cpy_start;
}

			{
++$cpy_start;
}

		}
}

		}
}

	// append remaining end text
if(strlen($text) != $cpy_start)
{

	// append remaining end text
if(strlen($text) != $cpy_start)
{

Zeile 180Zeile 183
	}

// Swap username over if we have a registered user

	}

// Swap username over if we have a registered user

	if($quoted_post['userusername'])

	if(isset($quoted_post['userusername']))

	{
$quoted_post['username'] = $quoted_post['userusername'];
}

	{
$quoted_post['username'] = $quoted_post['userusername'];
}

Zeile 214Zeile 217
		$extra = " pid='{$quoted_post['pid']}' dateline='{$quoted_post['dateline']}'";
}


		$extra = " pid='{$quoted_post['pid']}' dateline='{$quoted_post['dateline']}'";
}


	return "[quote='{$quoted_post['username']}'{$extra}]\n{$quoted_post['message']}\n[/quote]\n\n";







	$quote_char = '"';
if(strpos($quoted_post['username'], '"') !== false)
{
$quote_char = "'";
}

return "[quote={$quote_char}{$quoted_post['username']}{$quote_char}{$extra}]\n{$quoted_post['message']}\n[/quote]\n\n";

}

}