Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 1 location

@@ 194-201 (lines=8) @@
191
	}
192
193
	// Anybody home?
194
	if (!isset($_GET['xml']))
195
	{
196
		$incontext['remote_files_available'] = false;
197
		$test = @fsockopen('www.simplemachines.org', 80, $errno, $errstr, 1);
198
		if ($test)
199
			$incontext['remote_files_available'] = true;
200
		@fclose($test);
201
	}
202
203
	// Add slashes, as long as they aren't already being added.
204
	if (!function_exists('get_magic_quotes_gpc') || @get_magic_quotes_gpc() == 0)

other/upgrade.php 1 location

@@ 574-581 (lines=8) @@
571
	}
572
573
	// Anybody home?
574
	if (!isset($_GET['xml']))
575
	{
576
		$upcontext['remote_files_available'] = false;
577
		$test = @fsockopen('www.simplemachines.org', 80, $errno, $errstr, 1);
578
		if ($test)
579
			$upcontext['remote_files_available'] = true;
580
		@fclose($test);
581
	}
582
583
	// Something is causing this to happen, and it's annoying.  Stop it.
584
	$temp = 'upgrade_php?step';