Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1861-1868 (lines=8) @@
1858
		// Only change something if mod_security hasn't been addressed yet.
1859
		if (strpos($current_htaccess, '<IfModule mod_security.c>') === false)
1860
		{
1861
			if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'a'))
1862
			{
1863
				fwrite($ht_handle, $htaccess_addition);
1864
				fclose($ht_handle);
1865
				return true;
1866
			}
1867
			else
1868
				return false;
1869
		}
1870
		else
1871
			return true;
@@ 1877-1884 (lines=8) @@
1874
		return strpos(implode('', file(dirname(__FILE__) . '/.htaccess')), '<IfModule mod_security.c>') !== false;
1875
	elseif (is_writable(dirname(__FILE__)))
1876
	{
1877
		if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'w'))
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 false;