Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
bf159b91
Commit
bf159b91
authored
Mar 15, 2009
by
tbrehm
Browse files
No commit message
No commit message
parent
eed36bdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
bf159b91
...
...
@@ -671,7 +671,7 @@ class apache2_plugin {
}
//* Create .htaccess and .htpasswd file for website statistics
if
(
!
is_file
(
$data
[
"new"
][
"document_root"
]
.
'/web/stats/.htaccess'
)
{
if
(
!
is_file
(
$data
[
"new"
][
"document_root"
]
.
'/web/stats/.htaccess'
)
)
{
$ht_file
=
"AuthType Basic
\n
AuthName
\"
Members Only
\"\n
AuthUserFile "
.
$data
[
"new"
][
"document_root"
]
.
"/.htpasswd_stats
\n
<limit GET PUT POST>
\n
require valid-user
\n
</limit>"
;
file_put_contents
(
$data
[
"new"
][
"document_root"
]
.
'/web/stats/.htaccess'
,
$ht_file
);
chmod
(
$data
[
"new"
][
"document_root"
]
.
'/web/stats/.htaccess'
,
0664
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment