Code Duplication    Length = 8-8 lines in 2 locations

other/install.php 2 locations

@@ 1874-1881 (lines=8) @@
1871
		// Only change something if mod_security hasn't been addressed yet.
1872
		if (strpos($current_htaccess, '<IfModule mod_security.c>') === false)
1873
		{
1874
			if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'a'))
1875
			{
1876
				fwrite($ht_handle, $htaccess_addition);
1877
				fclose($ht_handle);
1878
				return true;
1879
			}
1880
			else
1881
				return false;
1882
		}
1883
		else
1884
			return true;
@@ 1890-1897 (lines=8) @@
1887
		return strpos(implode('', file(dirname(__FILE__) . '/.htaccess')), '<IfModule mod_security.c>') !== false;
1888
	elseif (is_writable(dirname(__FILE__)))
1889
	{
1890
		if ($ht_handle = fopen(dirname(__FILE__) . '/.htaccess', 'w'))
1891
		{
1892
			fwrite($ht_handle, $htaccess_addition);
1893
			fclose($ht_handle);
1894
			return true;
1895
		}
1896
		else
1897
			return false;
1898
	}
1899
	else
1900
		return false;