Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1788-1795 (lines=8) @@
1785
		// Only change something if mod_security hasn't been addressed yet.
1786
		if (strpos($current_htaccess, '<IfModule mod_security.c>') === false)
1787
		{
1788
			if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'a'))
1789
			{
1790
				fwrite($ht_handle, $htaccess_addition);
1791
				fclose($ht_handle);
1792
				return true;
1793
			}
1794
			else
1795
				return false;
1796
		}
1797
		else
1798
			return true;
@@ 1804-1811 (lines=8) @@
1801
		return strpos(implode('', file(dirname(__FILE__) . '/.htaccess')), '<IfModule mod_security.c>') !== false;
1802
	elseif (is_writable(dirname(__FILE__)))
1803
	{
1804
		if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'w'))
1805
		{
1806
			fwrite($ht_handle, $htaccess_addition);
1807
			fclose($ht_handle);
1808
			return true;
1809
		}
1810
		else
1811
			return false;
1812
	}
1813
	else
1814
		return false;