Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1877-1884 (lines=8) @@
1874
		// Only change something if mod_security hasn't been addressed yet.
1875
		if (strpos($current_htaccess, '<IfModule mod_security.c>') === false)
1876
		{
1877
			if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'a'))
1878
			{
1879
				fwrite($ht_handle, $htaccess_addition);
1880
				fclose($ht_handle);
1881
				return true;
1882
			}
1883
			else
1884
				return false;
1885
		}
1886
		else
1887
			return true;
@@ 1893-1900 (lines=8) @@
1890
		return strpos(implode('', file(dirname(__FILE__) . '/.htaccess')), '<IfModule mod_security.c>') !== false;
1891
	elseif (is_writable(dirname(__FILE__)))
1892
	{
1893
		if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'w'))
1894
		{
1895
			fwrite($ht_handle, $htaccess_addition);
1896
			fclose($ht_handle);
1897
			return true;
1898
		}
1899
		else
1900
			return false;
1901
	}
1902
	else
1903
		return false;