aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 10a93cb8d..219ec16d7 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -140,12 +140,12 @@ function mkgetdir($dir, $flags=MKGETDIR_DEFAULT)
if( $flags&MKGETDIR_PROTECT_HTACCESS )
{
$file = $dir.'/.htaccess';
- file_exists($file) or @file_put_contents( $file, 'deny from all' );
+ file_exists($file) or @file_put_contents( $file, 'DENY FROM all' );
}
if( $flags&MKGETDIR_PROTECT_INDEX )
{
- $file = $dir.'/index.htm';
- file_exists($file) or @file_put_contents( $file, 'Not allowed!' );
+ $file = $dir.'/.htaccess';
+ file_exists($file) or @file_put_contents( $file, 'Options -Indexes' );
}
}
if ( !is_writable($dir) )