summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
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;
}