Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1797-1804 (lines=8) @@
1794
		// Only change something if mod_security hasn't been addressed yet.
1795
		if (strpos($current_htaccess, '<IfModule mod_security.c>') === false)
1796
		{
1797
			if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'a'))
1798
			{
1799
				fwrite($ht_handle, $htaccess_addition);
1800
				fclose($ht_handle);
1801
				return true;
1802
			}
1803
			else
1804
				return false;
1805
		}
1806
		else
1807
			return true;
@@ 1813-1820 (lines=8) @@
1810
		return strpos(implode('', file(dirname(__FILE__) . '/.htaccess')), '<IfModule mod_security.c>') !== false;
1811
	elseif (is_writable(dirname(__FILE__)))
1812
	{
1813
		if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'w'))
1814
		{
1815
			fwrite($ht_handle, $htaccess_addition);
1816
			fclose($ht_handle);
1817
			return true;
1818
		}
1819
		else
1820
			return false;
1821
	}
1822
	else
1823
		return false;