Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1764-1771 (lines=8) @@
1761
		// Only change something if mod_security hasn't been addressed yet.
1762
		if (strpos($current_htaccess, '<IfModule mod_security.c>') === false)
1763
		{
1764
			if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'a'))
1765
			{
1766
				fwrite($ht_handle, $htaccess_addition);
1767
				fclose($ht_handle);
1768
				return true;
1769
			}
1770
			else
1771
				return false;
1772
		}
1773
		else
1774
			return true;
@@ 1780-1787 (lines=8) @@
1777
		return strpos(implode('', file(dirname(__FILE__) . '/.htaccess')), '<IfModule mod_security.c>') !== false;
1778
	elseif (is_writable(dirname(__FILE__)))
1779
	{
1780
		if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'w'))
1781
		{
1782
			fwrite($ht_handle, $htaccess_addition);
1783
			fclose($ht_handle);
1784
			return true;
1785
		}
1786
		else
1787
			return false;
1788
	}
1789
	else
1790
		return false;