X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=3136193f179e33533107384c33939658f36f82eb;hb=3bb684f59f04511ed157833d3d9552ee0e65d980;hp=747f113a339b808e34979933ad0e613020cb7584;hpb=e7416aba2c7a06fc96e37700f555c2b70a5ac859;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 747f113a..3136193f 100644 --- a/index.php +++ b/index.php @@ -88,13 +88,6 @@ header("Pragma: no-cache"); // Directories creations (Note that your web host may require differents rights than 705.) if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); -if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. -// Second check to see if Shaarli can write in its directory, because on some hosts is_writable() is not reliable. -if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) die('
ERROR: Shaarli does not have the right to write in its data directory ('.realpath($GLOBALS['config']['DATADIR']).').
'); -if ($GLOBALS['config']['ENABLE_LOCALCACHE']) -{ - if (!is_file($GLOBALS['config']['CACHEDIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['CACHEDIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. -} // Handling of old config file which do not have the new parameters. if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl());