Code Duplication    Length = 6-9 lines in 2 locations

other/install.php 1 location

@@ 2043-2048 (lines=6) @@
2040
	}
2041
2042
	// Uh oh... the file wasn't empty... was it?
2043
	if (!empty($vars))
2044
	{
2045
		$settingsArray[$i++] = '';
2046
		foreach ($vars as $var => $val)
2047
			$settingsArray[$i++] = '$' . $var . ' = \'' . $val . '\';' . "\n";
2048
	}
2049
2050
	// Blank out the file - done to fix a oddity with some servers.
2051
	$fp = @fopen(dirname(__FILE__) . '/Settings.php', 'w');

other/upgrade.php 1 location

@@ 2376-2384 (lines=9) @@
2373
	if (empty($end) || $end < 10)
2374
		$end = count($settingsArray);
2375
2376
	if (!empty($config_vars))
2377
	{
2378
		$settingsArray[$end++] = '';
2379
		foreach ($config_vars as $var => $val)
2380
		{
2381
			if ($val != '#remove#')
2382
				$settingsArray[$end++] = '$' . $var . ' = ' . $val . ';' . "\n";
2383
		}
2384
	}
2385
	// This should be the last line and even last bytes of the file.
2386
	$settingsArray[$end] = '?' . '>';
2387