diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-31 10:34:15 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-31 10:34:15 +0000 |
commit | e588a9ec13a3884f35804a08e63a617616158a16 (patch) | |
tree | 569458d8c15e5c850d2639885b77ba736a6a5b23 | |
parent | f9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5 (diff) | |
download | wordpress-mu-e588a9ec13a3884f35804a08e63a617616158a16.tar.gz wordpress-mu-e588a9ec13a3884f35804a08e63a617616158a16.tar.xz wordpress-mu-e588a9ec13a3884f35804a08e63a617616158a16.zip |
Check if .htaccess exists and is writeable on install.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@262 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | index.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -197,6 +197,15 @@ function checkdirs() { print "Refresh this page when you're done!<br></p>"; print "</div>"; } + if( file_exists( "./.htaccess" ) && is_writeable( "./.htaccess" ) == false ) { + $ret = false; + print "<h2>Warning! .htaccess already exists.</h2>"; + print "<div style='border: 1px solid #ccc'>"; + print "<p style='font-weight: bold; padding-left: 10px'>A file with the name '.htaccess' already exists in this directory and I cannot write to it. Please ftp to the server and delete this file from this directory!<br />"; + print "Offending file: " . realpath( '.htaccess' ) . "</p>"; + print "</div>"; + } + return $ret; } |