summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 10:34:15 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 10:34:15 +0000
commite588a9ec13a3884f35804a08e63a617616158a16 (patch)
tree569458d8c15e5c850d2639885b77ba736a6a5b23 /index.php
parentf9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5 (diff)
downloadwordpress-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
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.php b/index.php
index 8e128ce..ff197ee 100644
--- a/index.php
+++ b/index.php
@@ -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;
}