phpBB

Code Changes

File: includes/functions_convert.php

  Unmodified   Added   Modified   Removed
Line 479Line 479
				$dir->close();
}


				$dir->close();
}


			for ($i = 0; $i < sizeof($dirlist); ++$i)

			for ($i = 0, $end = sizeof($dirlist); $i < $end; ++$i)

			{
$dir = $dirlist[$i];


			{
$dir = $dirlist[$i];


Line 1427Line 1427
		$path_array = array();

$phpbb_parts = explode('/', $script_path);

		$path_array = array();

$phpbb_parts = explode('/', $script_path);

		for ($i = 0; $i < sizeof($url_parts); ++$i)

		for ($i = 0, $end = sizeof($url_parts); $i < $end; ++$i)

		{
if ($i < sizeof($phpbb_parts[$i]) && $url_parts[$i] == $phpbb_parts[$i])
{

		{
if ($i < sizeof($phpbb_parts[$i]) && $url_parts[$i] == $phpbb_parts[$i])
{

Line 1437Line 1437
			else
{
$path = '';

			else
{
$path = '';

				for ($j = $i; $j < sizeof($phpbb_parts); ++$j)

				for ($j = $i, $end2 = sizeof($phpbb_parts); $j < $end2; ++$j)

				{
$path .= '../';
}

				{
$path .= '../';
}

Line 2269Line 2269
			"\n\n"
);


			"\n\n"
);


		for ($i = 0; $i < sizeof($str_from); ++$i)

		for ($i = 0, $end = sizeof($str_from); $i < $end; ++$i)

		{
$origx[] = '#\\' . str_replace(']', '\\]', $str_from[$i]) . '#is';
$replx[] = $str_to[$i];

		{
$origx[] = '#\\' . str_replace(']', '\\]', $str_from[$i]) . '#is';
$replx[] = $str_to[$i];

Line 2278Line 2278

if (preg_match_all('#\[email=([^\]]+)\](.*?)\[/email\]#i', $message, $m))
{


if (preg_match_all('#\[email=([^\]]+)\](.*?)\[/email\]#i', $message, $m))
{

		for ($i = 0; $i < sizeof($m[1]); ++$i)

		for ($i = 0, $end = sizeof($m[1]); $i < $end; ++$i)

		{
if ($m[1][$i] == $m[2][$i])
{

		{
if ($m[1][$i] == $m[2][$i])
{

Line 2339Line 2339
	$parts = explode('/', $trg);
unset($parts[sizeof($parts) - 1]);


	$parts = explode('/', $trg);
unset($parts[sizeof($parts) - 1]);


	for ($i = 0; $i < sizeof($parts); ++$i)

	for ($i = 0, $end = sizeof($parts); $i < $end; ++$i)

	{
$path .= $parts[$i] . '/';


	{
$path .= $parts[$i] . '/';


Line 2436Line 2436

if ($copy_subdirs)
{


if ($copy_subdirs)
{

		for ($i = 0; $i < sizeof($dirlist); ++$i)

		for ($i = 0, $end = sizeof($dirlist); $i < $end; ++$i)

		{
$dir = $dirlist[$i];


		{
$dir = $dirlist[$i];


Line 2471Line 2471
		$convert->p_master->error(sprintf($str, implode('<br />', $bad_dirs)), __LINE__, __FILE__);
}


		$convert->p_master->error(sprintf($str, implode('<br />', $bad_dirs)), __LINE__, __FILE__);
}


	for ($i = 0; $i < sizeof($filelist); ++$i)

	for ($i = 0, $end = sizeof($filelist); $i < $end; ++$i)

	{
copy_file($src . $filelist[$i], $trg . $filelist[$i], $overwrite, $die_on_failure, $source_relative_path);
}

	{
copy_file($src . $filelist[$i], $trg . $filelist[$i], $overwrite, $die_on_failure, $source_relative_path);
}