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 966Line 966
	$protocol = (isset($url_info['scheme'])) ? $url_info['scheme'] : 'http';
if (empty($port))
{

	$protocol = (isset($url_info['scheme'])) ? $url_info['scheme'] : 'http';
if (empty($port))
{

		switch(strtolower($protocol))

		switch (strtolower($protocol))

		{
case 'ftp':
$port = 21;

		{
case 'ftp':
$port = 21;

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 2148Line 2148
	}

$sql = 'SELECT user_id FROM ' . USER_GROUP_TABLE . ' WHERE group_id = ' . get_group_id('global_moderators');

	}

$sql = 'SELECT user_id FROM ' . USER_GROUP_TABLE . ' WHERE group_id = ' . get_group_id('global_moderators');

 
	$result = $db->sql_query($sql);


$user_ids = array();
while ($row = $db->sql_fetchrow($result))


$user_ids = array();
while ($row = $db->sql_fetchrow($result))

Line 2268Line 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 2277Line 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 2338Line 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 2435Line 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 2470Line 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);
}