Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1754-1761 (lines=8) @@
1751
		// Only change something if mod_security hasn't been addressed yet.
1752
		if (strpos($current_htaccess, '<IfModule mod_security.c>') === false)
1753
		{
1754
			if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'a'))
1755
			{
1756
				fwrite($ht_handle, $htaccess_addition);
1757
				fclose($ht_handle);
1758
				return true;
1759
			}
1760
			else
1761
				return false;
1762
		}
1763
		else
1764
			return true;
@@ 1770-1777 (lines=8) @@
1767
		return strpos(implode('', file(dirname(__FILE__) . '/.htaccess')), '<IfModule mod_security.c>') !== false;
1768
	elseif (is_writable(dirname(__FILE__)))
1769
	{
1770
		if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'w'))
1771
		{
1772
			fwrite($ht_handle, $htaccess_addition);
1773
			fclose($ht_handle);
1774
			return true;
1775
		}
1776
		else
1777
			return false;
1778
	}
1779
	else
1780
		return false;