- don't delete everything if the path is the domains document-root (protect basedir, awstats|webalizer-dir and place default index), fixes #273

refs #273
This commit is contained in:
Michael Kaufmann (d00p)
2010-06-24 08:11:43 +00:00
parent 67c55c5a25
commit 57124d040d
3 changed files with 25 additions and 5 deletions

View File

@@ -342,7 +342,7 @@ elseif($page == 'htaccess')
else
{
$pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']);
$options_indexes = makeyesno('options_indexes', '1', '0', '1');
$options_indexes = makeyesno('options_indexes', '1', '0', '0');
eval("echo \"" . getTemplate("extras/htaccess_add") . "\";");
}
}