Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 1 location

@@ 183-190 (lines=8) @@
180
	}
181
182
	// Anybody home?
183
	if (!isset($_GET['xml']))
184
	{
185
		$incontext['remote_files_available'] = false;
186
		$test = @fsockopen('www.simplemachines.org', 80, $errno, $errstr, 1);
187
		if ($test)
188
			$incontext['remote_files_available'] = true;
189
		@fclose($test);
190
	}
191
192
	// Add slashes, as long as they aren't already being added.
193
	if (!function_exists('get_magic_quotes_gpc') || @get_magic_quotes_gpc() == 0)

other/upgrade.php 1 location

@@ 552-559 (lines=8) @@
549
	}
550
551
	// Anybody home?
552
	if (!isset($_GET['xml']))
553
	{
554
		$upcontext['remote_files_available'] = false;
555
		$test = @fsockopen('www.simplemachines.org', 80, $errno, $errstr, 1);
556
		if ($test)
557
			$upcontext['remote_files_available'] = true;
558
		@fclose($test);
559
	}
560
561
	// Something is causing this to happen, and it's annoying.  Stop it.
562
	$temp = 'upgrade_php?step';